|
||||||||||
| 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 |
java.lang.String |
getExecutionCountIdentifier()
Execution count defines an id; where every access to the connector from the 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.Object |
getFromCache(CacheScope scope,
java.lang.Object key)
Get a item that has been placed previously from cache. |
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 command being executed. |
javax.security.auth.Subject |
getSubject()
Get the user for the user running this query. |
java.lang.String |
getVirtualDatabaseName()
Get the name of the VDB this query is being run against. |
int |
getVirtualDatabaseVersion()
Get the version of the VDB this query is being run against. |
boolean |
isTransactional()
Flag indicates that the operation needs to be executed in a XA transaction. |
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. |
void |
storeInCache(CacheScope scope,
java.lang.Object key,
java.lang.Object value)
Place a item in the Cache in the given scope. |
| Method Detail |
|---|
java.lang.String getConnectorIdentifier()
java.lang.String getRequestIdentifier()
java.lang.String getPartIdentifier()
java.lang.String getExecutionCountIdentifier()
java.lang.String getVirtualDatabaseName()
int getVirtualDatabaseVersion()
javax.security.auth.Subject getSubject()
java.io.Serializable getExecutionPayload()
Given that the Execution Payload is not authenticated by the Teiid system, connector writers are responsible for ensuring its validity.
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 -
java.lang.Object getFromCache(CacheScope scope,
java.lang.Object key)
scope - key -
void storeInCache(CacheScope scope,
java.lang.Object key,
java.lang.Object value)
scope - key - value -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||