|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutionContext
The security context provides information about the user context in which this query is being run. As of 4.2, the SecurityContext is a sub-interface of ExecutionContext such that both interfaces contain all of the methods from the prior independent interfaces. Thus, these interfaces can now be used interchangeably.
Method Summary | |
---|---|
void |
addWarning(java.lang.Exception ex)
Add an exception as a warning to this Execution. |
java.lang.Object |
get(java.lang.Object key)
Get a item that has been placed previously from cache. |
int |
getBatchSize()
Return the current connector batch size. |
java.lang.String |
getConnectionIdentifier()
Get the identifier for the connection through which the command is being executed. |
java.lang.String |
getConnectorIdentifier()
Get the identifier for the current connector running the command |
ConnectorIdentity |
getConnectorIdentity()
Get the ConnectorIdentity created by the Connector's ConnectorIdentityFactory |
java.lang.String |
getExecutionCountIdentifier()
Execution count defines an id; where every access to the connector from the MetaMatrix server in a given command execution boundary is uniquely defined; Like for example in the case of "batched execution" of commands, each execution of command gets new identifier. |
java.io.Serializable |
getExecutionPayload()
Get the trusted payload passed when the user statement was executed. |
java.lang.String |
getPartIdentifier()
This specifies the node id for the atomic request in the relational plan of query. |
java.lang.String |
getRequestIdentifier()
Get the identifier for the MetaMatrix command being executed. |
java.io.Serializable |
getTrustedPayload()
Get the trusted payload passed when the user connected. |
java.lang.String |
getUser()
Get the user name for the user running this query. |
java.lang.String |
getVirtualDatabaseName()
Get the name of the VDB this query is being run against. |
java.lang.String |
getVirtualDatabaseVersion()
Get the version of the VDB this query is being run against. |
boolean |
isTransactional()
|
void |
keepExecutionAlive(boolean alive)
When the execution is turned on with "alive=true", the execution object will not be implicitly closed at the end of the last batch. |
void |
put(java.lang.Object key,
java.lang.Object value)
Place a item in the Cache in CacheScope.REQUEST scope. |
Method Detail |
---|
ConnectorIdentity getConnectorIdentity()
ConnectorIdentity
created by the Connector's ConnectorIdentityFactory
ConnectorIdentity
or SingleIdentity
if the
Connector does not implement ConnectorIdentityFactory
java.lang.String getConnectorIdentifier()
java.lang.String getRequestIdentifier()
java.lang.String getPartIdentifier()
java.lang.String getExecutionCountIdentifier()
java.lang.String getVirtualDatabaseName()
java.lang.String getVirtualDatabaseVersion()
java.lang.String getUser()
java.io.Serializable getTrustedPayload()
java.io.Serializable getExecutionPayload()
The execution payload differs from the Trusted Payload in that it is set on the Statement and so may not be constant over the Connection lifecycle and may be changed upon each statement execution. The Execution Payload is not authenticated or validated by the MetaMatrix system.
Given that the Execution Payload is not authenticated by the MetaMatrix system, connector writers are responsible for ensuring its validity. This can possibly be accomplished by comparing it against the Trusted Payload.
java.lang.String getConnectionIdentifier()
void keepExecutionAlive(boolean alive)
alive
- int getBatchSize()
void addWarning(java.lang.Exception ex)
ex
- boolean isTransactional()
java.lang.Object get(java.lang.Object key)
CacheScope.REQUEST
scope.
key
-
void put(java.lang.Object key, java.lang.Object value)
CacheScope.REQUEST
scope.
key
- value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |