|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl
public class JdbcCoordinatorImpl
Standard Hibernate implementation of JdbcCoordinator
| Constructor Summary | |
|---|---|
JdbcCoordinatorImpl(Connection userSuppliedConnection,
TransactionCoordinatorImpl transactionCoordinator)
|
|
| Method Summary | ||
|---|---|---|
void |
abortBatch()
Abort the currently managed batch (if any) |
|
void |
afterDeserialize(TransactionCoordinatorImpl transactionCoordinator)
|
|
void |
afterTransaction()
Signals the end of transaction. |
|
protected BatchBuilder |
batchBuilder()
|
|
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. |
|
static JdbcCoordinatorImpl |
deserialize(ObjectInputStream ois,
TransactionContext transactionContext)
|
|
int |
determineRemainingTransactionTimeOutPeriod()
Calculate the amount of time, in seconds, still remaining before transaction timeout occurs. |
|
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. |
|
StatementPreparer |
getStatementPreparer()
Obtain the statement preparer associated with this JDBC coordinator. |
|
TransactionCoordinator |
getTransactionCoordinator()
Retrieve the transaction coordinator associated with this JDBC coordinator. |
|
void |
serialize(ObjectOutputStream oos)
|
|
protected SessionFactoryImplementor |
sessionFactory()
|
|
void |
setTransactionTimeOut(int seconds)
Set the effective transaction timeout period for the current transaction, in seconds. |
|
protected TransactionEnvironment |
transactionEnvironment()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcCoordinatorImpl(Connection userSuppliedConnection,
TransactionCoordinatorImpl transactionCoordinator)
| Method Detail |
|---|
public TransactionCoordinator getTransactionCoordinator()
JdbcCoordinator
getTransactionCoordinator in interface JdbcCoordinatorpublic LogicalConnectionImplementor getLogicalConnection()
JdbcCoordinator
getLogicalConnection in interface JdbcCoordinatorprotected TransactionEnvironment transactionEnvironment()
protected SessionFactoryImplementor sessionFactory()
protected BatchBuilder batchBuilder()
public void flushBeginning()
JdbcCoordinatorJdbcCoordinator.flushEnding()
flushBeginning in interface JdbcCoordinatorpublic void flushEnding()
JdbcCoordinator
flushEnding in interface JdbcCoordinatorpublic Connection close()
JdbcCoordinator
close in interface JdbcCoordinatorConnection associated with the managed logical connectionLogicalConnection#close()}public Batch getBatch(BatchKey key)
JdbcCoordinator
getBatch in interface JdbcCoordinatorkey - The unique batch key.
public void executeBatch()
JdbcCoordinator
executeBatch in interface JdbcCoordinatorpublic void abortBatch()
JdbcCoordinator
abortBatch in interface JdbcCoordinatorpublic StatementPreparer getStatementPreparer()
JdbcCoordinator
getStatementPreparer in interface JdbcCoordinatorpublic void setTransactionTimeOut(int seconds)
JdbcCoordinator
setTransactionTimeOut in interface JdbcCoordinatorseconds - The number of seconds before a time out should occur.public int determineRemainingTransactionTimeOutPeriod()
JdbcCoordinator
determineRemainingTransactionTimeOutPeriod in interface JdbcCoordinatorpublic void afterTransaction()
JdbcCoordinator
afterTransaction in interface JdbcCoordinatorpublic <T> T coordinateWork(WorkExecutorVisitable<T> work)
JdbcCoordinator
coordinateWork in interface JdbcCoordinatorT - The result type.work - The work to be performed.
public void cancelLastQuery()
JdbcCoordinator
cancelLastQuery in interface JdbcCoordinator
public void serialize(ObjectOutputStream oos)
throws IOException
IOException
public static JdbcCoordinatorImpl deserialize(ObjectInputStream ois,
TransactionContext transactionContext)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundExceptionpublic void afterDeserialize(TransactionCoordinatorImpl transactionCoordinator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||