|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.ConfigurationEventTypeLegacy
public class ConfigurationEventTypeLegacy
Configuration information for legacy (non-JavaBean) event types.
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 |
---|
public ConfigurationEventTypeLegacy()
Method Detail |
---|
public void setAccessorStyle(ConfigurationEventTypeLegacy.AccessorStyle accessorStyle)
accessorStyle
- is the style enumpublic void setCodeGeneration(ConfigurationEventTypeLegacy.CodeGeneration codeGeneration)
codeGeneration
- is the code generation enumpublic ConfigurationEventTypeLegacy.AccessorStyle getAccessorStyle()
public ConfigurationEventTypeLegacy.CodeGeneration getCodeGeneration()
public java.util.List<ConfigurationEventTypeLegacy.LegacyMethodPropDesc> getMethodProperties()
public java.util.List<ConfigurationEventTypeLegacy.LegacyFieldPropDesc> getFieldProperties()
public void addMethodProperty(java.lang.String name, java.lang.String accessorMethod)
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.
name
- is the event property nameaccessorMethod
- is the accessor method name.public void addFieldProperty(java.lang.String name, java.lang.String accessorField)
name
- is the event property nameaccessorField
- is the accessor field underlying the namepublic Configuration.PropertyResolutionStyle getPropertyResolutionStyle()
public void setPropertyResolutionStyle(Configuration.PropertyResolutionStyle propertyResolutionStyle)
propertyResolutionStyle
- is the property resolution style to use for the typepublic java.lang.String getFactoryMethod()
public void setFactoryMethod(java.lang.String factoryMethod)
factoryMethod
- factory methodspublic java.lang.String getCopyMethod()
public void setCopyMethod(java.lang.String copyMethod)
copyMethod
- method namepublic java.lang.String getStartTimestampPropertyName()
public void setStartTimestampPropertyName(java.lang.String startTimestampPropertyName)
startTimestampPropertyName
- start timestamp property namepublic java.lang.String getEndTimestampPropertyName()
public void setEndTimestampPropertyName(java.lang.String endTimestampPropertyName)
endTimestampPropertyName
- start timestamp property name
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |