org.alfresco.repo.transfer
Class TransferCommitTransactionListener

java.lang.Object
  extended by org.alfresco.repo.transaction.TransactionListenerAdapter
      extended by org.alfresco.repo.transfer.TransferCommitTransactionListener
All Implemented Interfaces:
TransactionListener

public class TransferCommitTransactionListener
extends TransactionListenerAdapter


Constructor Summary
TransferCommitTransactionListener(java.lang.String transferId, TransferReceiver receiver)
           
 
Method Summary
 void afterCommit()
          Invoked after transaction commit.
 void afterRollback()
          Invoked after transaction rollback.
 
Methods inherited from class org.alfresco.repo.transaction.TransactionListenerAdapter
beforeCommit, beforeCompletion, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferCommitTransactionListener

public TransferCommitTransactionListener(java.lang.String transferId,
                                         TransferReceiver receiver)
Method Detail

afterCommit

public void afterCommit()
Description copied from class: TransactionListenerAdapter
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.

Specified by:
afterCommit in interface TransactionListener
Overrides:
afterCommit in class TransactionListenerAdapter

afterRollback

public void afterRollback()
Description copied from class: TransactionListenerAdapter
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.

Specified by:
afterRollback in interface TransactionListener
Overrides:
afterRollback in class TransactionListenerAdapter


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