Package org.alfresco.util.transaction
Class TransactionListenerAdapter
- java.lang.Object
-
- org.alfresco.util.transaction.TransactionListenerAdapter
-
- All Implemented Interfaces:
TransactionListener
public abstract class TransactionListenerAdapter extends Object implements TransactionListener
NO-OP listener.- Since:
- 5.0
- Author:
- Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description TransactionListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterCommit()Invoked after transaction commit.voidafterRollback()Invoked after transaction rollback.voidbeforeCommit(boolean readOnly)Called before a transaction is committed.voidbeforeCompletion()Invoked before transaction commit/rollback.
-
-
-
Method Detail
-
beforeCommit
public void beforeCommit(boolean readOnly)
Called before a transaction is committed.All transaction resources are still available.
- Specified by:
beforeCommitin interfaceTransactionListener- Parameters:
readOnly- true if the transaction is read-only
-
beforeCompletion
public void beforeCompletion()
Invoked before transaction commit/rollback. Will be called afterTransactionListener.beforeCommit(boolean)even ifTransactionListener.beforeCommit(boolean)failed.All transaction resources are still available.
- Specified by:
beforeCompletionin interfaceTransactionListener
-
afterCommit
public void afterCommit()
Invoked after transaction commit.Any exceptions generated here will only be logged and will have no effect on the state of the transaction.
Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.
- Specified by:
afterCommitin interfaceTransactionListener
-
afterRollback
public void afterRollback()
Invoked after transaction rollback.Any exceptions generated here will only be logged and will have no effect on the state of the transaction.
Although all transaction resources are still available, this method should be used only for cleaning up resources after a rollback has occured.
- Specified by:
afterRollbackin interfaceTransactionListener
-
-