com.espertech.esper.client
Class ConfigurationEventTypeLegacy

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

public class ConfigurationEventTypeLegacy
extends java.lang.Object
implements java.io.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(java.lang.String name, java.lang.String accessorField)
          Adds the named event property backed by the named accessor field.
 void addMethodProperty(java.lang.String name, java.lang.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.
 java.lang.String getCopyMethod()
          Returns the method name of the method to use to copy the underlying event object.
 java.lang.String getEndTimestampPropertyName()
          Returns the property name of the property providing the end timestamp value.
 java.lang.String getFactoryMethod()
          Returns the name of the factory method, either fully-qualified or just a method name if the method is on the same class as the configured class, to use when instantiating objects of the type.
 java.util.List<ConfigurationEventTypeLegacy.LegacyFieldPropDesc> getFieldProperties()
          Returns a list of descriptors specifying explicitly configured field names and their property name.
 java.util.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.
 java.lang.String getStartTimestampPropertyName()
          Returns the property name of the property providing the start timestamp value.
 void setAccessorStyle(ConfigurationEventTypeLegacy.AccessorStyle accessorStyle)
          Sets the accessor style.
 void setCodeGeneration(ConfigurationEventTypeLegacy.CodeGeneration codeGeneration)
          Sets the code generation flags.
 void setCopyMethod(java.lang.String copyMethod)
          Sets the method name of the method to use to copy the underlying event object.
 void setEndTimestampPropertyName(java.lang.String endTimestampPropertyName)
          Sets the property name of the property providing the end timestamp value.
 void setFactoryMethod(java.lang.String factoryMethod)
          Returns the name of the factory method, either fully-qualified or just a method name if the method is on the same class as the configured class, to use when instantiating objects of the type.
 void setPropertyResolutionStyle(Configuration.PropertyResolutionStyle propertyResolutionStyle)
          Sets the type's property resolution style to use.
 void setStartTimestampPropertyName(java.lang.String startTimestampPropertyName)
          Sets the property name of the property providing the start timestamp value.
 
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 java.util.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 java.util.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(java.lang.String name,
                              java.lang.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(java.lang.String name,
                             java.lang.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

getFactoryMethod

public java.lang.String getFactoryMethod()
Returns the name of the factory method, either fully-qualified or just a method name if the method is on the same class as the configured class, to use when instantiating objects of the type.

Returns:
factory methods

setFactoryMethod

public void setFactoryMethod(java.lang.String factoryMethod)
Returns the name of the factory method, either fully-qualified or just a method name if the method is on the same class as the configured class, to use when instantiating objects of the type.

Parameters:
factoryMethod - factory methods

getCopyMethod

public java.lang.String getCopyMethod()
Returns the method name of the method to use to copy the underlying event object.

Returns:
method name

setCopyMethod

public void setCopyMethod(java.lang.String copyMethod)
Sets the method name of the method to use to copy the underlying event object.

Parameters:
copyMethod - method name

getStartTimestampPropertyName

public java.lang.String getStartTimestampPropertyName()
Returns the property name of the property providing the start timestamp value.

Returns:
start timestamp property name

setStartTimestampPropertyName

public void setStartTimestampPropertyName(java.lang.String startTimestampPropertyName)
Sets the property name of the property providing the start timestamp value.

Parameters:
startTimestampPropertyName - start timestamp property name

getEndTimestampPropertyName

public java.lang.String getEndTimestampPropertyName()
Returns the property name of the property providing the end timestamp value.

Returns:
end timestamp property name

setEndTimestampPropertyName

public void setEndTimestampPropertyName(java.lang.String endTimestampPropertyName)
Sets the property name of the property providing the end timestamp value.

Parameters:
endTimestampPropertyName - start timestamp property name

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com