|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionCoordinator
Acts as the coordinator between the Hibernate engine and physical transactions.
Method Summary | |
---|---|
void |
addObserver(TransactionObserver observer)
Adds an observer to the coordinator. |
void |
afterNonTransactionalQuery(boolean success)
Performs actions needed after execution of a non-transactional query. |
void |
afterTransaction(TransactionImplementor hibernateTransaction,
int status)
|
Connection |
close()
Close the transaction context, returning any user supplied connection from the underlying JDBC coordinator. |
JdbcCoordinator |
getJdbcCoordinator()
Retrieves the JDBC coordinator currently operating within this transaction coordinator. |
SynchronizationCallbackCoordinator |
getSynchronizationCallbackCoordinator()
|
SynchronizationRegistry |
getSynchronizationRegistry()
Obtain the Synchronization registry associated with this coordinator. |
TransactionImplementor |
getTransaction()
Get the Hibernate transaction facade object currently associated with this coordinator. |
TransactionContext |
getTransactionContext()
Retrieves the context in which this coordinator operates. |
boolean |
isSynchronizationRegistered()
|
boolean |
isTransactionInProgress()
Are we "in" an active and joined transaction |
boolean |
isTransactionJoinable()
Can we join to the underlying transaction? |
boolean |
isTransactionJoined()
Is the underlying transaction already joined? |
void |
pulse()
Attempts to register JTA synchronization if possible and needed. |
void |
removeObserver(TransactionObserver observer)
Removed an observer from the coordinator. |
void |
resetJoinStatus()
Reset the transaction's join status. |
void |
sendAfterTransactionBeginNotifications(TransactionImplementor hibernateTransaction)
|
void |
sendAfterTransactionCompletionNotifications(TransactionImplementor hibernateTransaction,
int status)
|
void |
sendBeforeTransactionCompletionNotifications(TransactionImplementor hibernateTransaction)
|
void |
setRollbackOnly()
|
boolean |
takeOwnership()
|
Method Detail |
---|
TransactionContext getTransactionContext()
JdbcCoordinator getJdbcCoordinator()
TransactionImplementor getTransaction()
SynchronizationRegistry getSynchronizationRegistry()
Synchronization
registry associated with this coordinator.
void addObserver(TransactionObserver observer)
registry
, observers are not to be
cleared on transaction completion.
observer
- The observer to add.void removeObserver(TransactionObserver observer)
observer
- The observer to remove.boolean isTransactionJoinable()
TransactionFactory.isJoinableJtaTransaction(TransactionCoordinator, TransactionImplementor)
boolean isTransactionJoined()
void resetJoinStatus()
boolean isTransactionInProgress()
void pulse()
Connection close()
void afterNonTransactionalQuery(boolean success)
success
- Was the query successfully performedvoid setRollbackOnly()
SynchronizationCallbackCoordinator getSynchronizationCallbackCoordinator()
boolean isSynchronizationRegistered()
boolean takeOwnership()
void afterTransaction(TransactionImplementor hibernateTransaction, int status)
void sendAfterTransactionBeginNotifications(TransactionImplementor hibernateTransaction)
void sendBeforeTransactionCompletionNotifications(TransactionImplementor hibernateTransaction)
void sendAfterTransactionCompletionNotifications(TransactionImplementor hibernateTransaction, int status)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |