-
- All Known Implementing Classes:
ExecutionContextImpl
,ExecutionContextThreadedImpl
public interface TransactionEventListener
Listener of events raised on transaction begin, commit, rollback and flush.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
transactionCommitted()
Method invoked when the transaction is committed.void
transactionEnded()
Method invoked when the transaction is ended (Using XA).void
transactionFlushed()
Method invoked when the transaction is flushed (happens before commit, rollback).void
transactionPreCommit()
Method invoked before the transaction commit.void
transactionPreFlush()
Method invoked just before a flush.void
transactionPreRollBack()
Method invoked before the transaction is rolledback.void
transactionReleaseSavepoint(String name)
Savepoint to be released for this name.void
transactionRollbackToSavepoint(String name)
Invoke a rollback to this savepoint name.void
transactionRolledBack()
Method invoked when the transaction is rolled back.void
transactionSetSavepoint(String name)
Savepoint to be registered under this name.void
transactionStarted()
Method invoked when the transaction is started.
-
-
-
Method Detail
-
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
void transactionSetSavepoint(String name)
Savepoint to be registered under this name. Do nothing if not supported- Parameters:
name
- Name of the savepoint
-
transactionReleaseSavepoint
void transactionReleaseSavepoint(String name)
Savepoint to be released for this name. Do nothing if not supported- Parameters:
name
- Name of the savepoint
-
transactionRollbackToSavepoint
void transactionRollbackToSavepoint(String name)
Invoke a rollback to this savepoint name. Do nothing if not supported.- Parameters:
name
- Name of the savepoint
-
-