Package org.datanucleus.transaction
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 TypeMethodDescriptionvoid
Method invoked when the transaction is committed.void
Method invoked when the transaction is ended (Using XA).void
Method invoked when the transaction is flushed (happens before commit, rollback).void
Method invoked before the transaction commit.void
Method invoked just before a flush.void
Method invoked before the transaction is rolledback.void
Savepoint to be released for this name.void
Invoke a rollback to this savepoint name.void
Method invoked when the transaction is rolled back.void
Savepoint to be registered under this name.void
Method 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
-