|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JdbcCoordinator
Coordinates JDBC-related activities.
| Method Summary | ||
|---|---|---|
void |
abortBatch()
Abort the currently managed batch (if any) |
|
void |
afterStatementExecution()
Used to signify that a statement has completed execution which may indicate that this logical connection need to perform an aggressive release of its physical connection. |
|
void |
afterTransaction()
Signals the end of transaction. |
|
void |
cancelLastQuery()
Attempt to cancel the last query sent to the JDBC driver. |
|
Connection |
close()
Close this coordinator and release and resources. |
|
|
coordinateWork(WorkExecutorVisitable<T> work)
Perform the requested work handling exceptions, coordinating and handling return processing. |
|
int |
determineRemainingTransactionTimeOutPeriod()
Calculate the amount of time, in seconds, still remaining before transaction timeout occurs. |
|
void |
disableReleases()
|
|
void |
enableReleases()
|
|
void |
executeBatch()
Execute the currently managed batch (if any) |
|
void |
flushBeginning()
Callback to let us know that a flush is beginning. |
|
void |
flushEnding()
Callback to let us know that a flush is ending. |
|
Batch |
getBatch(BatchKey key)
Get a batch instance. |
|
LogicalConnectionImplementor |
getLogicalConnection()
Retrieves the logical connection associated with this JDBC coordinator. |
|
ResultSetReturn |
getResultSetReturn()
Obtain the resultset extractor associated with this JDBC coordinator. |
|
StatementPreparer |
getStatementPreparer()
Obtain the statement preparer associated with this JDBC coordinator. |
|
TransactionCoordinator |
getTransactionCoordinator()
Retrieve the transaction coordinator associated with this JDBC coordinator. |
|
boolean |
hasRegisteredResources()
Does this registry currently have any registered resources? |
|
boolean |
isReadyForSerialization()
|
|
void |
register(ResultSet resultSet,
Statement statement)
Register a JDBC result set. |
|
void |
register(Statement statement)
Register a JDBC statement. |
|
void |
registerLastQuery(Statement statement)
Register a query statement as being able to be cancelled. |
|
void |
release(ResultSet resultSet,
Statement statement)
Release a previously registered result set. |
|
void |
release(Statement statement)
Release a previously registered statement. |
|
void |
releaseResources()
Release all registered resources. |
|
void |
setTransactionTimeOut(int seconds)
Set the effective transaction timeout period for the current transaction, in seconds. |
|
| Method Detail |
|---|
TransactionCoordinator getTransactionCoordinator()
LogicalConnectionImplementor getLogicalConnection()
Batch getBatch(BatchKey key)
key - The unique batch key.
void executeBatch()
void abortBatch()
StatementPreparer getStatementPreparer()
ResultSetReturn getResultSetReturn()
void flushBeginning()
flushEnding()
void flushEnding()
Connection close()
Connection associated with the managed logical connectionLogicalConnection.close()void afterTransaction()
void afterStatementExecution()
<T> T coordinateWork(WorkExecutorVisitable<T> work)
T - The result type.work - The work to be performed.
void cancelLastQuery()
void setTransactionTimeOut(int seconds)
seconds - The number of seconds before a time out should occur.int determineRemainingTransactionTimeOutPeriod()
TransactionException - Indicates the time out period has already been exceeded.void register(Statement statement)
statement - The statement to register.void release(Statement statement)
statement - The statement to release.
void register(ResultSet resultSet,
Statement statement)
ResultSet.getStatement()
does not return original Statement object.
resultSet - The result set to register.statement - Statement from which ResultSet has been generated.
void release(ResultSet resultSet,
Statement statement)
resultSet - The result set to release.statement - Statement from which ResultSet has been generated.boolean hasRegisteredResources()
void releaseResources()
void enableReleases()
void disableReleases()
void registerLastQuery(Statement statement)
statement - The cancel-able query statement.boolean isReadyForSerialization()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||