Package org.alfresco.repo.transaction
Interface TransactionListener
-
- All Superinterfaces:
org.alfresco.util.transaction.TransactionListener
- All Known Implementing Classes:
AbstractEventsService,ActionTransactionListener,ActivitiesTransactionListener,DefaultPropertyBackedBeanRegistry,DictionaryModelType.DictionaryModelTypeTransactionListener,EagerContentStoreCleaner,EventsServiceImpl,ExceptionEventsServiceImpl,FixedAclUpdater,HashPasswordTransactionListener,LockServiceImpl,PersonServiceImpl,RuleTransactionListener,SimpleThumbnailer,TaggingServiceImpl,TransactionalCache,TransactionAwareSingleton,TransactionBehaviourQueue,TransactionListenerAdapter,TransferCommitTransactionListener,WorkflowDeployer.WorkflowDeployerTransactionListener
public interface TransactionListener extends org.alfresco.util.transaction.TransactionListenerListener for Alfresco-specific transaction callbacks.- Author:
- Derek Hulley
- See Also:
AlfrescoTransactionSupport
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated 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.voidflush()Deprecated.No longer supported
-
-
-
Method Detail
-
flush
void flush()
Deprecated.No longer supported
-
beforeCommit
void beforeCommit(boolean readOnly)
Called before a transaction is committed.All transaction resources are still available.
- Specified by:
beforeCommitin interfaceorg.alfresco.util.transaction.TransactionListener- Parameters:
readOnly- true if the transaction is read-only
-
beforeCompletion
void beforeCompletion()
Invoked before transaction commit/rollback. Will be called afterbeforeCommit(boolean)even ifbeforeCommit(boolean)failed.All transaction resources are still available.
- Specified by:
beforeCompletionin interfaceorg.alfresco.util.transaction.TransactionListener
-
afterCommit
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 interfaceorg.alfresco.util.transaction.TransactionListener
-
afterRollback
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 interfaceorg.alfresco.util.transaction.TransactionListener
-
-