Class AbstractTransactionListener
java.lang.Object
org.apache.openjpa.event.AbstractTransactionListener
- All Implemented Interfaces:
BeginTransactionListener, EndTransactionListener, FlushTransactionListener, TransactionListener
Abstract implementation of the
TransactionListener interface
that provides no-op implementations of all methods.- Since:
- 0.3.0
- Author:
- Abe White
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterBegin(TransactionEvent event) Notification that a transaction has begun.voidafterCommit(TransactionEvent event) Notification that a transaction has successfully committed.voidNotification that a transaction has successfully committed and the transaction is no longer active.voidafterFlush(TransactionEvent event) Notification that a transaction has flushed all object changes.voidafterRollback(TransactionEvent event) Notification that a transaction has been rolled back.voidNotification that a transaction has been rolled back and the transaction is no longer active.voidNotification that state transitions are complete.voidbeforeCommit(TransactionEvent event) Notification that the next flush is for the transaction commit.voidbeforeFlush(TransactionEvent event) Notification that a transaction is about to flush all object changes.protected voideventOccurred(TransactionEvent event) Catch-all for unhandled events.
-
Constructor Details
-
AbstractTransactionListener
public AbstractTransactionListener()
-
-
Method Details
-
eventOccurred
Catch-all for unhandled events. This method is called by all other event methods if you do not override them. Does nothing by default. -
afterBegin
Description copied from interface:BeginTransactionListenerNotification that a transaction has begun.- Specified by:
afterBeginin interfaceBeginTransactionListener- See Also:
-
beforeFlush
Description copied from interface:FlushTransactionListenerNotification that a transaction is about to flush all object changes.- Specified by:
beforeFlushin interfaceFlushTransactionListener- See Also:
-
afterFlush
Description copied from interface:FlushTransactionListenerNotification that a transaction has flushed all object changes.- Specified by:
afterFlushin interfaceFlushTransactionListener- See Also:
-
beforeCommit
Description copied from interface:EndTransactionListenerNotification that the next flush is for the transaction commit.- Specified by:
beforeCommitin interfaceEndTransactionListener- See Also:
-
afterCommit
Description copied from interface:EndTransactionListenerNotification that a transaction has successfully committed.- Specified by:
afterCommitin interfaceEndTransactionListener- See Also:
-
afterRollback
Description copied from interface:EndTransactionListenerNotification that a transaction has been rolled back.- Specified by:
afterRollbackin interfaceEndTransactionListener- See Also:
-
afterStateTransitions
Description copied from interface:EndTransactionListenerNotification that state transitions are complete.- Specified by:
afterStateTransitionsin interfaceEndTransactionListener- See Also:
-
afterCommitComplete
Description copied from interface:EndTransactionListenerNotification that a transaction has successfully committed and the transaction is no longer active.- Specified by:
afterCommitCompletein interfaceEndTransactionListener- See Also:
-
afterRollbackComplete
Description copied from interface:EndTransactionListenerNotification that a transaction has been rolled back and the transaction is no longer active.- Specified by:
afterRollbackCompletein interfaceEndTransactionListener- See Also:
-