Package org.datanucleus
Interface TransactionEventListener
-
- All Known Implementing Classes:
ExecutionContextImpl,ExecutionContextThreadedImpl
public interface TransactionEventListenerListener of events raised on transaction begin, commit, rollback and flush.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidtransactionCommitted()Method invoked when the transaction is committed.voidtransactionEnded()Method invoked when the transaction is ended (Using XA).voidtransactionFlushed()Method invoked when the transaction is flushed (happens before commit, rollback).voidtransactionPreCommit()Method invoked before the transaction commit.voidtransactionPreFlush()Method invoked just before a flush.voidtransactionPreRollBack()Method invoked before the transaction is rolledback.voidtransactionReleaseSavepoint(String name)Savepoint to be released for this name.voidtransactionRollbackToSavepoint(String name)Invoke a rollback to this savepoint name.voidtransactionRolledBack()Method invoked when the transaction is rolled back.voidtransactionSetSavepoint(String name)Savepoint to be registered under this name.voidtransactionStarted()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
-
-