Package org.alfresco.repo.transaction
Class TransactionListenerAdapter
- java.lang.Object
-
- org.alfresco.repo.transaction.TransactionListenerAdapter
-
- All Implemented Interfaces:
TransactionListener,org.alfresco.util.transaction.TransactionListener
- Direct Known Subclasses:
AbstractEventsService,DictionaryModelType.DictionaryModelTypeTransactionListener,EagerContentStoreCleaner,FixedAclUpdater,PersonServiceImpl,RuleTransactionListener,SimpleThumbnailer,TransactionAwareSingleton,TransferCommitTransactionListener,WorkflowDeployer.WorkflowDeployerTransactionListener
@Deprecated public abstract class TransactionListenerAdapter extends java.lang.Object implements TransactionListener
Deprecated.Since 5.0, useTransactionListenerAdapterNO-OP listener.- Author:
- Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description TransactionListenerAdapter()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidafterCommit()Deprecated.Invoked after transaction commit.voidafterRollback()Deprecated.Invoked after transaction rollback.voidbeforeCommit(boolean readOnly)Deprecated.Called before a transaction is committed.voidbeforeCompletion()Deprecated.Invoked before transaction commit/rollback.voidflush()Deprecated.
-
-
-
Method Detail
-
flush
public void flush()
Deprecated.- Specified by:
flushin interfaceTransactionListener
-
beforeCommit
public void beforeCommit(boolean readOnly)
Deprecated.Called before a transaction is committed.All transaction resources are still available.
- Specified by:
beforeCommitin interfaceTransactionListener- Specified by:
beforeCommitin interfaceorg.alfresco.util.transaction.TransactionListener- Parameters:
readOnly- true if the transaction is read-only
-
beforeCompletion
public void beforeCompletion()
Deprecated.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- Specified by:
beforeCompletionin interfaceorg.alfresco.util.transaction.TransactionListener
-
afterCommit
public void afterCommit()
Deprecated.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- Specified by:
afterCommitin interfaceorg.alfresco.util.transaction.TransactionListener
-
afterRollback
public void afterRollback()
Deprecated.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- Specified by:
afterRollbackin interfaceorg.alfresco.util.transaction.TransactionListener
-
-