com.espertech.esper.event.vaevent
Class RevisionEventBeanMerge

java.lang.Object
  extended by com.espertech.esper.event.vaevent.RevisionEventBeanMerge
All Implemented Interfaces:
EventBean

public class RevisionEventBeanMerge
extends java.lang.Object
implements EventBean

Merge-event for event revisions.


Constructor Summary
RevisionEventBeanMerge(RevisionEventType revisionEventType, EventBean underlyingFull)
          Ctor.
 
Method Summary
 java.lang.Object get(java.lang.String property)
          Returns the value of an event property for the given property name or property expression.
 java.lang.Object getBaseEventValue(RevisionGetterParameters parameters)
          Returns base event value.
 EventType getEventType()
          Return the EventType instance that describes the set of properties available for this event.
 java.lang.Object getFragment(java.lang.String propertyExpression)
          Returns event beans or array of event bean for a property name or property expression.
 java.lang.Object getKey()
          Returns the key.
 EventBean getLastBaseEvent()
          Returns last base event.
 java.lang.Object[] getOverlay()
          Returns overlay values.
 java.lang.Object getUnderlying()
          Get the underlying data object to this event wrapper.
 EventBean getUnderlyingFullOrDelta()
          Returns wrapped event
 java.lang.Object getVersionedValue(RevisionGetterParameters parameters)
          Returns a versioned value.
 boolean isLatest()
          Returns flag indicated latest or not.
 void setKey(java.lang.Object key)
          Sets the key.
 void setLastBaseEvent(EventBean lastBaseEvent)
          Sets last base event.
 void setLatest(boolean latest)
          Sets flag indicating latest or not.
 void setOverlay(NullableObject<java.lang.Object>[] overlay)
          Sets merged values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevisionEventBeanMerge

public RevisionEventBeanMerge(RevisionEventType revisionEventType,
                              EventBean underlyingFull)
Ctor.

Parameters:
revisionEventType - type
underlyingFull - event wrapped
Method Detail

setOverlay

public void setOverlay(NullableObject<java.lang.Object>[] overlay)
Sets merged values.

Parameters:
overlay - merged values

isLatest

public boolean isLatest()
Returns flag indicated latest or not.

Returns:
latest flag

setLatest

public void setLatest(boolean latest)
Sets flag indicating latest or not.

Parameters:
latest - flag

getKey

public java.lang.Object getKey()
Returns the key.

Returns:
key

setKey

public void setKey(java.lang.Object key)
Sets the key.

Parameters:
key - to set

getOverlay

public java.lang.Object[] getOverlay()
Returns overlay values.

Returns:
overlay

getLastBaseEvent

public EventBean getLastBaseEvent()
Returns last base event.

Returns:
base event

setLastBaseEvent

public void setLastBaseEvent(EventBean lastBaseEvent)
Sets last base event.

Parameters:
lastBaseEvent - to set

getEventType

public EventType getEventType()
Description copied from interface: EventBean
Return the EventType instance that describes the set of properties available for this event.

Specified by:
getEventType in interface EventBean
Returns:
event type

get

public java.lang.Object get(java.lang.String property)
                     throws PropertyAccessException
Description copied from interface: EventBean
Returns the value of an event property for the given property name or property expression.

Returns null if the property value is null. Throws an exception if the expression is not valid against the event type.

The method takes a property name or property expression as a parameter. Property expressions may include indexed properties via the syntax "name[index]", mapped properties via the syntax "name('key')", nested properties via the syntax "outer.inner" or combinations thereof.

Specified by:
get in interface EventBean
Parameters:
property - - name or expression of the property whose value is to be retrieved
Returns:
the value of a property with the specified name.
Throws:
PropertyAccessException - - if there is no property of the specified name, or the property cannot be accessed

getUnderlying

public java.lang.Object getUnderlying()
Description copied from interface: EventBean
Get the underlying data object to this event wrapper.

Specified by:
getUnderlying in interface EventBean
Returns:
underlying data object, usually either a Map or a Java bean instance.

getUnderlyingFullOrDelta

public EventBean getUnderlyingFullOrDelta()
Returns wrapped event

Returns:
event

getBaseEventValue

public java.lang.Object getBaseEventValue(RevisionGetterParameters parameters)
Returns base event value.

Parameters:
parameters - supplies getter
Returns:
value

getVersionedValue

public java.lang.Object getVersionedValue(RevisionGetterParameters parameters)
Returns a versioned value.

Parameters:
parameters - getter and indexes
Returns:
value

getFragment

public java.lang.Object getFragment(java.lang.String propertyExpression)
Description copied from interface: EventBean
Returns event beans or array of event bean for a property name or property expression.

For use with properties whose value is itself an event or whose value can be represented as an event by the underlying event representation.

The EventType of the event bean instance(s) returned by this method can be determined by EventType.getFragmentType(String). Use EventPropertyDescriptor to obtain a list of properties that return fragments from an event type.

Returns null if the property value is null or the property value cannot be represented as a fragment by the underlying representation.

The method takes a property name or property expression as a parameter. Property expressions may include indexed properties via the syntax "name[index]", mapped properties via the syntax "name('key')", nested properties via the syntax "outer.inner" or combinations thereof.

Specified by:
getFragment in interface EventBean
Parameters:
propertyExpression - - name or expression of the property whose value is to be presented as an EventBean or array of EventBean
Returns:
the value of a property as an EventBean or array of EventBean

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com