|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TInvocation
TInvocation defines operations needed to invoke a command statement on Tamino. Such command statements are reflected by TCommandStatement instances. By abstracting the invocation of a command statement, the client is not concerned with implementing communication specific code once it comes up to the invocation of a TCommandStatement instance. Each invocation leads to a TInputStream that represents the obtained input input stream.
Method Summary | |
---|---|
void |
close()
Closes the invocation capability on Tamino. |
TUri |
getDatabaseUri()
Gets the database uri of this invocation. |
TCommandStatement |
getLastExecutedCommandStatement()
Gets the last executed command statement! |
long |
getLastNonActivityTimeoutRelevantInvokeTimeMillis()
Gets the time of the last invoke which is relevant for the nonActivityTimeout! |
java.util.Locale |
getLocale()
Gets Locale |
TPooledConnectionReconnectHandler |
getPooledConnectionReconnectHandler()
Gets the handler for automatic reconnects of pooled connections |
int |
getSocketTimeout()
|
TInputStream |
invoke(TCommandStatement commandStatement)
Invokes a specific command given by a TCommandStatement on an underlying Tamino database. |
TInputStream |
invoke(TCommandStatement commandStatement,
java.lang.String collection)
Invokes a specific command given by a TCommandStatement on an underlying Tamino database. |
TInputStream |
invoke(TCommandStatement commandStatement,
java.lang.String collection,
java.lang.String doctype,
java.lang.String docname)
Invokes a specific command given by a TCommandStatement on an underlying Tamino database. |
boolean |
isClosed()
Indicates if the invocation is closed. |
void |
setLocale(java.util.Locale locale)
Sets Locale |
void |
setPooledConnectionReconnectHandler(TPooledConnectionReconnectHandler handler)
Sets the handler for automatic reconnects of pooled connections |
void |
setSocketTimeout(int timeout)
This value indicates to use Tamino default values for the timeout parameters. |
void |
setTransactionModeCoordinator(TTransactionModeCoordinator transactionModeCoordinator)
Sets a TTransactionModeCoordinator on the instance. |
boolean |
supports(TCommand command)
Indicates if the given command is supported for invocation in the current state. |
Method Detail |
---|
TInputStream invoke(TCommandStatement commandStatement) throws TInvocationException
commandStatement
- spcifies the concrete XML specific action that should be fullfilled.
TInvocationException
- due to any problems that can occur when performing the
invocation on Tamino.TInputStream invoke(TCommandStatement commandStatement, java.lang.String collection) throws TInvocationException
commandStatement
- spcifies the concrete action that should be fullfilled.collection
- is the collection of the Tamino DB where the object is contained in.
TInvocationException
- due to any problems that can occur when performing the
invocation on Tamino.TInputStream invoke(TCommandStatement commandStatement, java.lang.String collection, java.lang.String doctype, java.lang.String docname) throws TInvocationException
commandStatement
- spcifies the concrete action that should be fullfilled.collection
- is the collection of the Tamino DB where the object is contained in.doctype
- within a schema of a collection to which the statement is related.docname
- denotes the docname under which a specific document might be accessible.
TInvocationException
- due to any problems that can occur when performing the
invocation on Tamino.boolean supports(TCommand command)
command
- is checked wheter it can be invoked the current state of the TInvocation instance.
void setTransactionModeCoordinator(TTransactionModeCoordinator transactionModeCoordinator)
TTransactionModeCoordinator
- needed to update session state for session specific operations.void close() throws TInvocationException
TInvocationException
- due to any problems that can occur when performing the
invocation on Tamino.boolean isClosed()
TUri getDatabaseUri()
long getLastNonActivityTimeoutRelevantInvokeTimeMillis()
TCommandStatement getLastExecutedCommandStatement()
void setPooledConnectionReconnectHandler(TPooledConnectionReconnectHandler handler)
TPooledConnectionReconnectHandler getPooledConnectionReconnectHandler()
void setLocale(java.util.Locale locale)
java.util.Locale getLocale()
void setSocketTimeout(int timeout)
int getSocketTimeout()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |