org.alfresco.repo.transaction
Interface TransactionListener

All Known Implementing Classes:
AbstractContentDataDAOImpl.ContentUrlDeleteTransactionListener, ActionTransactionListener, AsynchronousActionExecutionQueueImpl.CallbackTransactionListener, AVMSubmitTransactionListener, CreateStoreTxnListener, CreateVersionTxnListener, DictionaryModelType.DictionaryModelTypeTransactionListener, EagerContentStoreCleaner, GoogleDocsServiceImpl, IncompleteNodeTagger, JBPMTransactionTemplate, NodeMonitor, PersonServiceImpl, PurgeStoreTxnListener, PurgeVersionTxnListener, RuleTransactionListener, SimpleThumbnailer, TaggingServiceImpl, TransactionalCache, TransactionAwareSingleton, TransactionBehaviourQueue, TransactionListenerAdapter, TransferCommitTransactionListener

public interface TransactionListener

Listener for Alfresco-specific transaction callbacks.

See Also:
AlfrescoTransactionSupport

Method Summary
 void afterCommit()
          Invoked after transaction commit.
 void afterRollback()
          Invoked after transaction rollback.
 void beforeCommit(boolean readOnly)
          Called before a transaction is committed.
 void beforeCompletion()
          Invoked before transaction commit/rollback.
 void flush()
          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.

Parameters:
readOnly - true if the transaction is read-only

beforeCompletion

void beforeCompletion()
Invoked before transaction commit/rollback. Will be called after TransactionListener.beforeCommit(boolean) even if TransactionListener.beforeCommit(boolean) failed.

Any exceptions generated here will only be logged and will have no effect on the state of the transaction.

All transaction resources are still available.


afterCommit

void afterCommit()
Invoked after transaction commit.

Any exceptions generated here will cause the transaction to rollback.

Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.


afterRollback

void afterRollback()
Invoked after transaction rollback.

Although all transaction resources are still available, this method should be used only for cleaning up resources after a rollback has occured.



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.