com.espertech.esper.event.vaevent
Class RevisionEventBeanDeclared

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

public class RevisionEventBeanDeclared
extends Object
implements EventBean

Revision event bean for the overlayed scheme.


Constructor Summary
RevisionEventBeanDeclared(RevisionEventType eventType, EventBean underlying)
          Ctor.
 
Method Summary
 Object get(String property)
          Returns the value of an event property.
 EventType getEventType()
          Return the EventType instance that describes the set of properties available for this event.
 MultiKeyUntyped getKey()
          Returns the key.
 EventBean getLastBaseEvent()
          Returns last base event.
 RevisionEventType getRevisionEventType()
          Returns the revision event type.
 Object getUnderlying()
          Get the underlying data object to this event wrapper.
 EventBean getUnderlyingFullOrDelta()
          Returns wrapped event.
 Object getVersionedValue(RevisionGetterParameters params)
          Returns a versioned value.
 boolean isLatest()
          Returns true if latest event, or false if not.
 void setHolders(RevisionBeanHolder[] holders)
          Sets versions.
 void setKey(MultiKeyUntyped key)
          Sets the key value.
 void setLastBaseEvent(EventBean lastBaseEvent)
          Sets the last base event.
 void setLatest(boolean latest)
          Set flag to indicate there is a later event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevisionEventBeanDeclared

public RevisionEventBeanDeclared(RevisionEventType eventType,
                                 EventBean underlying)
Ctor.

Parameters:
eventType - revision event type
underlying - event wrapped
Method Detail

isLatest

public boolean isLatest()
Returns true if latest event, or false if not.

Returns:
indicator if latest

setLatest

public void setLatest(boolean latest)
Set flag to indicate there is a later event.

Parameters:
latest - flag to set

setKey

public void setKey(MultiKeyUntyped key)
Sets the key value.

Parameters:
key - value

setLastBaseEvent

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

Parameters:
lastBaseEvent - base event

setHolders

public void setHolders(RevisionBeanHolder[] holders)
Sets versions.

Parameters:
holders - versions

getLastBaseEvent

public EventBean getLastBaseEvent()
Returns last base event.

Returns:
base event

getUnderlyingFullOrDelta

public EventBean getUnderlyingFullOrDelta()
Returns wrapped event.

Returns:
wrapped event

getKey

public MultiKeyUntyped getKey()
Returns the key.

Returns:
key

getRevisionEventType

public RevisionEventType getRevisionEventType()
Returns the revision event type.

Returns:
type

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 Object get(String property)
           throws PropertyAccessException
Description copied from interface: EventBean
Returns the value of an event property.

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

getUnderlying

public 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.

getVersionedValue

public Object getVersionedValue(RevisionGetterParameters params)
Returns a versioned value.

Parameters:
params - getter parameters
Returns:
value

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com