com.espertech.esper.event.property
Interface Property

All Known Implementing Classes:
DynamicIndexedProperty, DynamicMappedProperty, DynamicSimpleProperty, IndexedProperty, MappedProperty, NestedProperty, PropertyBase, SimpleProperty

public interface Property

Interface for a property of an event of type BeanEventType (JavaBean event). Properties are designed to handle the different types of properties for such events: indexed, mapped, simple, nested, or a combination of those.


Method Summary
 EventPropertyGetter getGetter(BeanEventType eventType)
          Returns value getter for the property of an event of the given event type.
 EventPropertyGetter getGetterMap(Map optionalMapPropTypes)
          Returns the getter-method for use with Map event representations.
 Class getPropertyType(BeanEventType eventType)
          Returns the property type.
 Class getPropertyTypeMap(Map optionalMapPropTypes)
          Returns the property type for use with Map event representations.
 void toPropertyEPL(StringWriter writer)
          Write the EPL-representation of the property.
 

Method Detail

getPropertyType

Class getPropertyType(BeanEventType eventType)
Returns the property type.

Parameters:
eventType - is the event type representing the JavaBean
Returns:
property type class

getGetter

EventPropertyGetter getGetter(BeanEventType eventType)
Returns value getter for the property of an event of the given event type.

Parameters:
eventType - is the type of event to make a getter for
Returns:
fast property value getter for property

getPropertyTypeMap

Class getPropertyTypeMap(Map optionalMapPropTypes)
Returns the property type for use with Map event representations.

Parameters:
optionalMapPropTypes - a map-within-map type definition, if supplied, or null if not supplied
Returns:
property type @param optionalMapPropTypes

getGetterMap

EventPropertyGetter getGetterMap(Map optionalMapPropTypes)
Returns the getter-method for use with Map event representations.

Parameters:
optionalMapPropTypes - a map-within-map type definition, if supplied, or null if not supplied
Returns:
getter for maps @param optionalMapPropTypes

toPropertyEPL

void toPropertyEPL(StringWriter writer)
Write the EPL-representation of the property.

Parameters:
writer - to write to

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