|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.event.BeanEventBean
public class BeanEventBean
Wrapper for Java bean (POJO or regular) Java objects the represent events.
Allows access to event properties, which is done through the getter supplied by the event type.
EventType
instances containing type information are obtained from BeanEventAdapter
.
Two BeanEventBean instances are equal if they have the same event type and refer to the same instance of event object.
Clients that need to compute equality between Java beans wrapped by this class need to obtain the underlying object.
Constructor Summary | |
---|---|
BeanEventBean(Object event,
EventType eventType,
Object eventId)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
Object |
get(String property)
Returns the value of an event property. |
Object |
getEventBeanId()
Returns the event id object. |
EventType |
getEventType()
Return the EventType instance that describes the set of properties available for this event. |
Object |
getUnderlying()
Get the underlying data object to this event wrapper. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BeanEventBean(Object event, EventType eventType, Object eventId)
event
- is the event objecteventId
- is an optional event id for the eventeventType
- is the schema information for the event object.Method Detail |
---|
public Object getEventBeanId()
EventBeanSPI
getEventBeanId
in interface EventBeanSPI
public Object getUnderlying()
EventBean
getUnderlying
in interface EventBean
public EventType getEventType()
EventBean
EventType
instance that describes the set of properties available for this event.
getEventType
in interface EventBean
public final boolean equals(Object other)
equals
in class Object
public Object get(String property) throws IllegalArgumentException, PropertyAccessException
EventBean
get
in interface EventBean
property
- - name of the property whose value is to be retrieved
PropertyAccessException
- - if there is no property of the specified name, or the property cannot be accessed
IllegalArgumentException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |