com.espertech.esper.core.service
Class StatementContextFactoryDefault

java.lang.Object
  extended by com.espertech.esper.core.service.StatementContextFactoryDefault
All Implemented Interfaces:
StatementContextFactory

public class StatementContextFactoryDefault
extends java.lang.Object
implements StatementContextFactory

Default implementation for making a statement-specific context class.


Nested Class Summary
static class StatementContextFactoryDefault.AnnotationAnalysisResult
          Analysis result of analysing annotations for a statement.
 
Constructor Summary
StatementContextFactoryDefault(PluggableObjectCollection viewPlugIns, PluggableObjectCollection plugInPatternObj, java.lang.Class systemVirtualDWViewFactory)
          Ctor.
 
Method Summary
static StatementContextEngineServices getStmtCtxEngineServices(EPServicesContext services)
           
 StatementContext makeContext(int statementId, java.lang.String statementName, java.lang.String expression, StatementType statementType, EPServicesContext engineServices, java.util.Map<java.lang.String,java.lang.Object> optAdditionalContext, boolean isFireAndForget, java.lang.annotation.Annotation[] annotations, EPIsolationUnitServices isolationUnitServices, boolean stateless, StatementSpecRaw statementSpecRaw, java.util.List<ExprSubselectNode> subselectNodes, boolean writesToTables, java.lang.Object statementUserObject)
          Create a new statement context consisting of statement-level services.
 void setStmtEngineServices(EPServicesContext services)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementContextFactoryDefault

public StatementContextFactoryDefault(PluggableObjectCollection viewPlugIns,
                                      PluggableObjectCollection plugInPatternObj,
                                      java.lang.Class systemVirtualDWViewFactory)
Ctor.

Parameters:
viewPlugIns - is the view plug-in object descriptions
plugInPatternObj - is the pattern plug-in object descriptions
Method Detail

setStmtEngineServices

public void setStmtEngineServices(EPServicesContext services)
Specified by:
setStmtEngineServices in interface StatementContextFactory

getStmtCtxEngineServices

public static StatementContextEngineServices getStmtCtxEngineServices(EPServicesContext services)

makeContext

public StatementContext makeContext(int statementId,
                                    java.lang.String statementName,
                                    java.lang.String expression,
                                    StatementType statementType,
                                    EPServicesContext engineServices,
                                    java.util.Map<java.lang.String,java.lang.Object> optAdditionalContext,
                                    boolean isFireAndForget,
                                    java.lang.annotation.Annotation[] annotations,
                                    EPIsolationUnitServices isolationUnitServices,
                                    boolean stateless,
                                    StatementSpecRaw statementSpecRaw,
                                    java.util.List<ExprSubselectNode> subselectNodes,
                                    boolean writesToTables,
                                    java.lang.Object statementUserObject)
Description copied from interface: StatementContextFactory
Create a new statement context consisting of statement-level services.

Specified by:
makeContext in interface StatementContextFactory
Parameters:
statementId - is the statement is
statementName - is the statement name
expression - is the statement expression
engineServices - is engine services
optAdditionalContext - addtional context to pass to the statement
isFireAndForget - if the statement context is for a fire-and-forget statement
annotations - statement annotations
isolationUnitServices - for isolation units
Returns:
statement context

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