wt.events.summary
Class SummaryEventFactory

java.lang.Object
  extended by wt.events.summary.SummaryEventFactory
All Implemented Interfaces:
Serializable, TransactionCommitListener, TransactionListener

public class SummaryEventFactory
extends Object
implements TransactionCommitListener, Serializable

The SummaryEventFactory class serves two purposes. The first is to retrieve and store Summary Event instances to and from its summaryEventMap HashMap, which contains all the Summary Events defined for the transaction, and then dispatch them. The second function is to implement the TransactionCommitListener interface which allows it to register as a listener with the TransactionManager.

Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 void beforeCompletion()
          Notify that the commit of the transaction is about to complete.
 void notifyCommit()
          Notify that the commit of the transaction completed.
 void notifyRollback()
          Notify that the rollback of the transaction completed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

beforeCompletion

public void beforeCompletion()
                      throws WTException
Notify that the commit of the transaction is about to complete. This method should only validate the current work performed by the transaction. No INSERT, UPDATE or DELETE operations should occur, either directly or indirectly.

Supported API: true

Specified by:
beforeCompletion in interface TransactionCommitListener
Throws:
WTException

notifyCommit

public void notifyCommit()
Notify that the commit of the transaction completed.

Supported API: true

Specified by:
notifyCommit in interface TransactionListener

notifyRollback

public void notifyRollback()
Notify that the rollback of the transaction completed.

Supported API: true

Specified by:
notifyRollback in interface TransactionListener