|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.util.CommandContext
public class CommandContext
Defines the context that a command is processing in. For example, this defines who is processing the command and why. Also, this class (or subclasses) provide a means to pass context-specific information between users of the query processor framework.
Constructor Summary | |
---|---|
|
CommandContext()
|
protected |
CommandContext(CommandContext context)
|
|
CommandContext(java.lang.Object processorID,
java.lang.String connectionID,
java.lang.String userName,
java.io.Serializable commandPayload,
java.lang.String vdbName,
java.lang.String vdbVersion,
java.util.Properties envProperties,
boolean processDebug,
boolean collectNodeStatistics)
Construct a new context. |
|
CommandContext(java.lang.Object processorID,
java.lang.String connectionID,
java.lang.String userName,
java.lang.String vdbName,
java.lang.String vdbVersion)
Construct a new context. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
int |
getCallStackDepth()
|
boolean |
getCollectNodeStatistics()
|
java.io.Serializable |
getCommandPayload()
|
java.lang.String |
getConnectionID()
|
int |
getConnectorBatchSize()
|
java.util.Properties |
getEnvironmentProperties()
|
java.lang.Object |
getFromContext(Expression expression)
|
double |
getNextRand()
|
double |
getNextRand(long seed)
|
PlanToProcessConverter |
getPlanToProcessConverter()
|
boolean |
getProcessDebug()
|
int |
getProcessorBatchSize()
|
java.lang.Object |
getProcessorID()
|
QueryProcessor.ProcessorFactory |
getQueryProcessorFactory()
|
SecurityFunctionEvaluator |
getSecurityFunctionEvaluator()
|
java.util.TimeZone |
getServerTimeZone()
|
int |
getStreamingBatchSize()
|
java.lang.Object |
getTempTableStore()
|
java.lang.String |
getUserName()
|
VariableContext |
getVariableContext()
|
java.lang.String |
getVdbName()
|
java.lang.String |
getVdbVersion()
|
boolean |
isOptimisticTransaction()
|
boolean |
isSessionFunctionEvaluated()
|
void |
popCall()
|
void |
pushCall(java.lang.String value)
|
void |
pushVariableContext(VariableContext toPush)
|
void |
setCollectNodeStatistics(boolean collectNodeStatistics)
|
void |
setCommandPayload(java.io.Serializable commandPayload)
|
void |
setConnectionID(java.lang.String connectionID)
Sets the connectionID. |
void |
setConnectorBatchSize(int connectorBatchSize)
|
void |
setEnvironmentProperties(java.util.Properties properties)
|
void |
setOptimisticTransaction(boolean optimisticTransaction)
|
void |
setPlanToProcessConverter(PlanToProcessConverter planToProcessConverter)
|
void |
setProcessDebug(boolean processDebug)
|
void |
setProcessorBatchSize(int processorBatchSize)
|
void |
setProcessorID(java.lang.Object object)
|
void |
setQueryProcessorFactory(QueryProcessor.ProcessorFactory queryProcessorFactory)
|
void |
setSecurityFunctionEvaluator(SecurityFunctionEvaluator securityFunctionEvaluator)
|
void |
setSessionFunctionEvaluated(boolean sessionFunctionEvaluated)
|
void |
setStreamingBatchSize(int streamingBatchSize)
|
void |
setTempTableStore(java.lang.Object tempTableStore)
|
void |
setUserName(java.lang.String userName)
Sets the userName. |
void |
setVariableContext(VariableContext variableContext)
|
void |
setVdbName(java.lang.String vdbName)
Sets the vdbName. |
void |
setVdbVersion(java.lang.String vdbVersion)
Sets the vdbVersion. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommandContext(java.lang.Object processorID, java.lang.String connectionID, java.lang.String userName, java.io.Serializable commandPayload, java.lang.String vdbName, java.lang.String vdbVersion, java.util.Properties envProperties, boolean processDebug, boolean collectNodeStatistics)
collectNodeStatistics
- TODOpublic CommandContext(java.lang.Object processorID, java.lang.String connectionID, java.lang.String userName, java.lang.String vdbName, java.lang.String vdbVersion)
protected CommandContext(CommandContext context)
public CommandContext()
Method Detail |
---|
public boolean isSessionFunctionEvaluated()
public void setSessionFunctionEvaluated(boolean sessionFunctionEvaluated)
public java.lang.Object getProcessorID()
public boolean getProcessDebug()
public void setProcessDebug(boolean processDebug)
public void setProcessorID(java.lang.Object object)
object
- public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getConnectionID()
public java.lang.String getUserName()
public java.lang.String getVdbName()
public java.lang.String getVdbVersion()
public void setConnectionID(java.lang.String connectionID)
connectionID
- The connectionID to setpublic void setUserName(java.lang.String userName)
userName
- The userName to setpublic void setVdbName(java.lang.String vdbName)
vdbName
- The vdbName to setpublic void setVdbVersion(java.lang.String vdbVersion)
vdbVersion
- The vdbVersion to setpublic java.util.Properties getEnvironmentProperties()
public void setEnvironmentProperties(java.util.Properties properties)
public java.io.Serializable getCommandPayload()
public void setCommandPayload(java.io.Serializable commandPayload)
public void setCollectNodeStatistics(boolean collectNodeStatistics)
collectNodeStatistics
- The collectNodeStatistics to set.public boolean getCollectNodeStatistics()
public int getStreamingBatchSize()
public void setStreamingBatchSize(int streamingBatchSize)
public int getConnectorBatchSize()
public void setConnectorBatchSize(int connectorBatchSize)
public int getProcessorBatchSize()
public void setProcessorBatchSize(int processorBatchSize)
public double getNextRand()
public double getNextRand(long seed)
public void pushCall(java.lang.String value) throws QueryProcessingException
QueryProcessingException
public int getCallStackDepth()
public void popCall()
public void setOptimisticTransaction(boolean optimisticTransaction)
optimisticTransaction
- The optimisticTransaction to set.public boolean isOptimisticTransaction()
public SecurityFunctionEvaluator getSecurityFunctionEvaluator()
public void setSecurityFunctionEvaluator(SecurityFunctionEvaluator securityFunctionEvaluator)
securityFunctionEvaluator
- The securityFunctionEvaluator to set.public java.lang.Object getTempTableStore()
public void setTempTableStore(java.lang.Object tempTableStore)
public java.util.TimeZone getServerTimeZone()
public void setPlanToProcessConverter(PlanToProcessConverter planToProcessConverter)
public PlanToProcessConverter getPlanToProcessConverter()
public QueryProcessor.ProcessorFactory getQueryProcessorFactory()
public void setQueryProcessorFactory(QueryProcessor.ProcessorFactory queryProcessorFactory)
public VariableContext getVariableContext()
public void setVariableContext(VariableContext variableContext)
public void pushVariableContext(VariableContext toPush)
public java.lang.Object getFromContext(Expression expression) throws MetaMatrixComponentException
MetaMatrixComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |