com.espertech.esper.client
Class ConfigurationEventTypeLegacy

java.lang.Object
  extended by com.espertech.esper.client.ConfigurationEventTypeLegacy
All Implemented Interfaces:
Serializable

public class ConfigurationEventTypeLegacy
extends Object
implements Serializable

Configuration information for legacy (non-JavaBean) event types.

See Also:
Serialized Form

Nested Class Summary
static class ConfigurationEventTypeLegacy.AccessorStyle
          Accessor style defines the methods of a class that are automatically exposed via event property.
static class ConfigurationEventTypeLegacy.CodeGeneration
          Enum to control code generation.
static class ConfigurationEventTypeLegacy.LegacyFieldPropDesc
          Encapsulates information about an accessor field backing a named event property.
static class ConfigurationEventTypeLegacy.LegacyMethodPropDesc
          Encapsulates information about an accessor method backing a named event property.
 
Constructor Summary
ConfigurationEventTypeLegacy()
          Ctor.
 
Method Summary
 void addFieldProperty(String name, String accessorField)
          Adds the named event property backed by the named accessor field.
 void addMethodProperty(String name, String accessorMethod)
          Adds the named event property backed by the named accessor method.
 ConfigurationEventTypeLegacy.AccessorStyle getAccessorStyle()
          Returns the accessor style.
 ConfigurationEventTypeLegacy.CodeGeneration getCodeGeneration()
          Returns the code generation flag.
 List<ConfigurationEventTypeLegacy.LegacyFieldPropDesc> getFieldProperties()
          Returns a list of descriptors specifying explicitly configured field names and their property name.
 List<ConfigurationEventTypeLegacy.LegacyMethodPropDesc> getMethodProperties()
          Returns a list of descriptors specifying explicitly configured method names and their property name.
 Configuration.PropertyResolutionStyle getPropertyResolutionStyle()
          Returns the type's property resolution style to use.
 void setAccessorStyle(ConfigurationEventTypeLegacy.AccessorStyle accessorStyle)
          Sets the accessor style.
 void setCodeGeneration(ConfigurationEventTypeLegacy.CodeGeneration codeGeneration)
          Sets the code generation flags.
 void setPropertyResolutionStyle(Configuration.PropertyResolutionStyle propertyResolutionStyle)
          Sets the type's property resolution style to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationEventTypeLegacy

public ConfigurationEventTypeLegacy()
Ctor.

Method Detail

setAccessorStyle

public void setAccessorStyle(ConfigurationEventTypeLegacy.AccessorStyle accessorStyle)
Sets the accessor style. Thus controls how the engine exposes event properties based on a Java class's public methods and public member variables.

Parameters:
accessorStyle - is the style enum

setCodeGeneration

public void setCodeGeneration(ConfigurationEventTypeLegacy.CodeGeneration codeGeneration)
Sets the code generation flags. Thus controls whether or not the engine generates code for access to event property values.

Parameters:
codeGeneration - is the code generation enum

getAccessorStyle

public ConfigurationEventTypeLegacy.AccessorStyle getAccessorStyle()
Returns the accessor style.

Returns:
accessor style

getCodeGeneration

public ConfigurationEventTypeLegacy.CodeGeneration getCodeGeneration()
Returns the code generation flag.

Returns:
code generation flag

getMethodProperties

public List<ConfigurationEventTypeLegacy.LegacyMethodPropDesc> getMethodProperties()
Returns a list of descriptors specifying explicitly configured method names and their property name.

Returns:
list of explicit method-access descriptors

getFieldProperties

public List<ConfigurationEventTypeLegacy.LegacyFieldPropDesc> getFieldProperties()
Returns a list of descriptors specifying explicitly configured field names and their property name.

Returns:
list of explicit field-access descriptors

addMethodProperty

public void addMethodProperty(String name,
                              String accessorMethod)
Adds the named event property backed by the named accessor method.

The accessor method is expected to be a public method with no parameters for simple event properties, or with a single integer parameter for indexed event properties, or with a single String parameter for mapped event properties.

Parameters:
name - is the event property name
accessorMethod - is the accessor method name.

addFieldProperty

public void addFieldProperty(String name,
                             String accessorField)
Adds the named event property backed by the named accessor field.

Parameters:
name - is the event property name
accessorField - is the accessor field underlying the name

getPropertyResolutionStyle

public Configuration.PropertyResolutionStyle getPropertyResolutionStyle()
Returns the type's property resolution style to use.

Returns:
property resolution style

setPropertyResolutionStyle

public void setPropertyResolutionStyle(Configuration.PropertyResolutionStyle propertyResolutionStyle)
Sets the type's property resolution style to use.

Parameters:
propertyResolutionStyle - is the property resolution style to use for the type

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