com.arsdigita.persistence
Class AbstractTransactionListener

java.lang.Object
  extended bycom.arsdigita.persistence.AbstractTransactionListener
All Implemented Interfaces:
TransactionListener
Direct Known Subclasses:
TransactionListenerImpl

public class AbstractTransactionListener
extends Object
implements TransactionListener

AbstractTransactionListener is a default implementation of TransactionListener. Callback methods do nothing by default and are intended to be selectively overridden in order to add the desired behavior.

Version:
$Revision: #4 $ $Date: 2004/04/07 $
Author:
Rafael H. Schloming <rhs@mit.edu>
See Also:
TransactionContext, TransactionListener

Field Summary
static String versionId
           
 
Constructor Summary
AbstractTransactionListener()
           
 
Method Summary
 void afterAbort(TransactionContext txn)
          Called immediately after the transaction has aborted
 void afterCommit(TransactionContext txn)
          Called immediately after the transaction has committed
 void beforeAbort(TransactionContext txn)
          Called immediately before the transaction has aborted
 void beforeCommit(TransactionContext txn)
          Called immediately before the transaction has committed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

AbstractTransactionListener

public AbstractTransactionListener()
Method Detail

beforeCommit

public void beforeCommit(TransactionContext txn)
Called immediately before the transaction has committed

Specified by:
beforeCommit in interface TransactionListener

afterCommit

public void afterCommit(TransactionContext txn)
Called immediately after the transaction has committed

Specified by:
afterCommit in interface TransactionListener

beforeAbort

public void beforeAbort(TransactionContext txn)
Called immediately before the transaction has aborted

Specified by:
beforeAbort in interface TransactionListener

afterAbort

public void afterAbort(TransactionContext txn)
Called immediately after the transaction has aborted

Specified by:
afterAbort in interface TransactionListener


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC