Interface TransactionEventListener
- All Known Implementing Classes:
ExecutionContextImpl, ExecutionContextThreadedImpl
public interface TransactionEventListener
Listener of events raised on transaction begin, commit, rollback and flush.
-
Method Summary
Modifier and TypeMethodDescriptionvoidMethod invoked when the transaction is committed.voidMethod invoked when the transaction is ended (Using XA).voidMethod invoked when the transaction is flushed (happens before commit, rollback).voidMethod invoked before the transaction commit.voidMethod invoked just before a flush.voidMethod invoked before the transaction is rolledback.voidSavepoint to be released for this name.voidInvoke a rollback to this savepoint name.voidMethod invoked when the transaction is rolled back.voidSavepoint to be registered under this name.voidMethod invoked when the transaction is started.
-
Method Details
-
transactionStarted
void transactionStarted()Method invoked when the transaction is started. -
transactionEnded
void transactionEnded()Method invoked when the transaction is ended (Using XA). -
transactionPreFlush
void transactionPreFlush()Method invoked just before a flush. -
transactionFlushed
void transactionFlushed()Method invoked when the transaction is flushed (happens before commit, rollback). -
transactionPreCommit
void transactionPreCommit()Method invoked before the transaction commit. -
transactionCommitted
void transactionCommitted()Method invoked when the transaction is committed. -
transactionPreRollBack
void transactionPreRollBack()Method invoked before the transaction is rolledback. -
transactionRolledBack
void transactionRolledBack()Method invoked when the transaction is rolled back. -
transactionSetSavepoint
Savepoint to be registered under this name. Do nothing if not supported- Parameters:
name- Name of the savepoint
-
transactionReleaseSavepoint
Savepoint to be released for this name. Do nothing if not supported- Parameters:
name- Name of the savepoint
-
transactionRollbackToSavepoint
Invoke a rollback to this savepoint name. Do nothing if not supported.- Parameters:
name- Name of the savepoint
-