org.objectweb.jotm.core.transaction
Class BeforeCompletionEvent

java.lang.Object
  |
  +--org.objectweb.jotm.core.transaction.BeforeCompletionEvent
All Implemented Interfaces:
Event, TransactionalEvent

public class BeforeCompletionEvent
extends java.lang.Object
implements TransactionalEvent

Before-completion event. This class provides a simple helper implementation of the before-completion transactional event. I.e., it corresponds to the TransactionalEvent.TYPE_BEFORE_COMPLETION event type.


Field Summary
 
Fields inherited from interface org.objectweb.jotm.core.transaction.TransactionalEvent
TYPE_ABORT, TYPE_AFTER_ABORT, TYPE_AFTER_COMMIT, TYPE_AFTER_COMPLETION, TYPE_BEFORE_ABORT, TYPE_BEFORE_COMMIT, TYPE_BEFORE_COMPLETION, TYPE_COMMIT
 
Constructor Summary
BeforeCompletionEvent(BasicTransaction iTx)
           
 
Method Summary
 BasicTransaction getTransaction()
          Get corresponding transaction.
 int getType()
          Get transactional event type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeforeCompletionEvent

public BeforeCompletionEvent(BasicTransaction iTx)
Method Detail

getType

public int getType()
Description copied from interface: TransactionalEvent
Get transactional event type. The value is one of the constants defined in TransactionalEvent.

Specified by:
getType in interface TransactionalEvent
Returns:
type of this event

getTransaction

public BasicTransaction getTransaction()
Description copied from interface: TransactionalEvent
Get corresponding transaction. A transaction is the event source of TransactionalEvent.

Specified by:
getTransaction in interface TransactionalEvent
Returns:
transaction that is the source of this transactional event