com.espertech.esper.event.property
Class DynamicMappedProperty

java.lang.Object
  extended by com.espertech.esper.event.property.PropertyBase
      extended by com.espertech.esper.event.property.DynamicMappedProperty
All Implemented Interfaces:
DynamicProperty, Property

public class DynamicMappedProperty
extends PropertyBase
implements DynamicProperty

Represents a dynamic mapped property of a given name.

Dynamic properties always exist, have an Object type and are resolved to a method during runtime.


Field Summary
 
Fields inherited from class com.espertech.esper.event.property.PropertyBase
propertyNameAtomic
 
Constructor Summary
DynamicMappedProperty(String propertyName, String key)
          Ctor.
 
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.
 
Methods inherited from class com.espertech.esper.event.property.PropertyBase
getPropertyNameAtomic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicMappedProperty

public DynamicMappedProperty(String propertyName,
                             String key)
Ctor.

Parameters:
propertyName - is the property name
key - is the mapped access key
Method Detail

getGetter

public EventPropertyGetter getGetter(BeanEventType eventType)
Description copied from interface: Property
Returns value getter for the property of an event of the given event type.

Specified by:
getGetter in interface Property
Parameters:
eventType - is the type of event to make a getter for
Returns:
fast property value getter for property

getPropertyType

public Class getPropertyType(BeanEventType eventType)
Description copied from interface: Property
Returns the property type.

Specified by:
getPropertyType in interface Property
Parameters:
eventType - is the event type representing the JavaBean
Returns:
property type class

getPropertyTypeMap

public Class getPropertyTypeMap(Map optionalMapPropTypes)
Description copied from interface: Property
Returns the property type for use with Map event representations.

Specified by:
getPropertyTypeMap in interface Property
Parameters:
optionalMapPropTypes - a map-within-map type definition, if supplied, or null if not supplied
Returns:
property type @param optionalMapPropTypes

getGetterMap

public EventPropertyGetter getGetterMap(Map optionalMapPropTypes)
Description copied from interface: Property
Returns the getter-method for use with Map event representations.

Specified by:
getGetterMap in interface Property
Parameters:
optionalMapPropTypes - a map-within-map type definition, if supplied, or null if not supplied
Returns:
getter for maps @param optionalMapPropTypes

toPropertyEPL

public void toPropertyEPL(StringWriter writer)
Description copied from interface: Property
Write the EPL-representation of the property.

Specified by:
toPropertyEPL in interface Property
Parameters:
writer - to write to

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