com.espertech.esper.event
Class EventTypeMetadata

java.lang.Object
  extended by com.espertech.esper.event.EventTypeMetadata

public class EventTypeMetadata
extends java.lang.Object

Provides metadata for event types.


Nested Class Summary
static class EventTypeMetadata.ApplicationType
          Application type.
static class EventTypeMetadata.TypeClass
          Metatype.
 
Constructor Summary
protected EventTypeMetadata(java.lang.String primaryName, java.util.Set<java.lang.String> secondaryNames, EventTypeMetadata.TypeClass typeClass, boolean isApplicationPreConfiguredStatic, boolean applicationPreConfigured, boolean applicationConfigured, EventTypeMetadata.ApplicationType applicationType, boolean isPropertyAgnostic)
          Ctor.
 
Method Summary
static EventTypeMetadata createAnonymous(java.lang.String associationName)
          Factory for an anonymous type.
static EventTypeMetadata createBeanType(java.lang.String name, java.lang.Class clazz, boolean isPreConfiguredStatic, boolean isPreConfigured, boolean isConfigured, EventTypeMetadata.TypeClass typeClass)
          Factory for a bean type.
static EventTypeMetadata createNonPojoApplicationType(EventTypeMetadata.ApplicationType providedType, java.lang.String name, boolean preconfiguredStatic, boolean preconfigured, boolean configured, boolean namedWindow, boolean insertInto)
          Factory for a map type.
static EventTypeMetadata createTable(java.lang.String tableName)
          Factory for an table type.
static EventTypeMetadata createValueAdd(java.lang.String name, EventTypeMetadata.TypeClass typeClass)
          Factory for a value-add type.
static EventTypeMetadata createWrapper(java.lang.String eventTypeName, boolean namedWindow, boolean insertInto, boolean isPropertyAgnostic)
          Factory for a wrapper type.
static EventTypeMetadata createXMLType(java.lang.String name, boolean isPreconfiguredStatic, boolean isPropertyAgnostic)
          Factory for a XML type.
 EventTypeMetadata.ApplicationType getOptionalApplicationType()
          The type of the application event type or null if not an application event type.
 java.util.Set<java.lang.String> getOptionalSecondaryNames()
          Returns second names or null if none found.
 java.lang.String getPrimaryName()
          Returns the name.
 java.lang.String getPublicName()
          Returns the name provided through #EventType.getName.
 EventTypeMetadata.TypeClass getTypeClass()
          Returns the type of the type.
 boolean isApplicationConfigured()
          Returns true if the type originates in a configuration.
 boolean isApplicationPreConfigured()
          Returns true to indicate the type is pre-configured, i.e.
 boolean isApplicationPreConfiguredStatic()
          Returns true to indicate the type is pre-configured, i.e.
 boolean isPropertyAgnostic()
          Returns true for types that accept any property name as a valid property (unchecked type).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventTypeMetadata

protected EventTypeMetadata(java.lang.String primaryName,
                            java.util.Set<java.lang.String> secondaryNames,
                            EventTypeMetadata.TypeClass typeClass,
                            boolean isApplicationPreConfiguredStatic,
                            boolean applicationPreConfigured,
                            boolean applicationConfigured,
                            EventTypeMetadata.ApplicationType applicationType,
                            boolean isPropertyAgnostic)
Ctor.

Parameters:
primaryName - the primary name by which the type became known.
secondaryNames - a list of additional names for the type, such as fully-qualified class name
typeClass - type of the type
applicationConfigured - true if configured by the application
applicationType - type of application class or null if not an application type
isPropertyAgnostic - true for types that accept any property name as a valid property (unchecked type)
Method Detail

createValueAdd

public static EventTypeMetadata createValueAdd(java.lang.String name,
                                               EventTypeMetadata.TypeClass typeClass)
Factory for a value-add type.

Parameters:
name - type name
typeClass - type of type
Returns:
instance

createBeanType

public static EventTypeMetadata createBeanType(java.lang.String name,
                                               java.lang.Class clazz,
                                               boolean isPreConfiguredStatic,
                                               boolean isPreConfigured,
                                               boolean isConfigured,
                                               EventTypeMetadata.TypeClass typeClass)
Factory for a bean type.

Parameters:
name - type name
clazz - java class
isConfigured - whether the class was made known or is discovered
Returns:
instance

createXMLType

public static EventTypeMetadata createXMLType(java.lang.String name,
                                              boolean isPreconfiguredStatic,
                                              boolean isPropertyAgnostic)
Factory for a XML type.

Parameters:
name - type name
isPropertyAgnostic - true for types that accept any property name as a valid property (unchecked type)
Returns:
instance

createAnonymous

public static EventTypeMetadata createAnonymous(java.lang.String associationName)
Factory for an anonymous type.

Parameters:
associationName - what the type is associated with
Returns:
instance

createTable

public static EventTypeMetadata createTable(java.lang.String tableName)
Factory for an table type.

Parameters:
tableName - what the type is associated with
Returns:
instance

createWrapper

public static EventTypeMetadata createWrapper(java.lang.String eventTypeName,
                                              boolean namedWindow,
                                              boolean insertInto,
                                              boolean isPropertyAgnostic)
Factory for a wrapper type.

Parameters:
eventTypeName - insert-into of create-window name
namedWindow - true for named window
insertInto - true for insert-into
isPropertyAgnostic - true for types that accept any property name as a valid property (unchecked type)
Returns:
instance

createNonPojoApplicationType

public static EventTypeMetadata createNonPojoApplicationType(EventTypeMetadata.ApplicationType providedType,
                                                             java.lang.String name,
                                                             boolean preconfiguredStatic,
                                                             boolean preconfigured,
                                                             boolean configured,
                                                             boolean namedWindow,
                                                             boolean insertInto)
Factory for a map type.

Parameters:
name - insert-into of create-window name
namedWindow - true for named window
insertInto - true for insert-into
configured - whether the made known or is discovered
Returns:
instance

getPrimaryName

public java.lang.String getPrimaryName()
Returns the name.

Returns:
name

getOptionalSecondaryNames

public java.util.Set<java.lang.String> getOptionalSecondaryNames()
Returns second names or null if none found.

Returns:
further names

getTypeClass

public EventTypeMetadata.TypeClass getTypeClass()
Returns the type of the type.

Returns:
meta type

isApplicationConfigured

public boolean isApplicationConfigured()
Returns true if the type originates in a configuration.

Returns:
indicator whether configured or not

getOptionalApplicationType

public EventTypeMetadata.ApplicationType getOptionalApplicationType()
The type of the application event type or null if not an application event type.

Returns:
application event type

getPublicName

public java.lang.String getPublicName()
Returns the name provided through #EventType.getName.

Returns:
name or null if no public name

isPropertyAgnostic

public boolean isPropertyAgnostic()
Returns true for types that accept any property name as a valid property (unchecked type).

Returns:
indicator whether type is unchecked (agnostic to property)

isApplicationPreConfigured

public boolean isApplicationPreConfigured()
Returns true to indicate the type is pre-configured, i.e. added through static or runtime configuration.

Returns:
indicator

isApplicationPreConfiguredStatic

public boolean isApplicationPreConfiguredStatic()
Returns true to indicate the type is pre-configured, i.e. added through static configuration but not runtime configuation.

Returns:
indicator

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