org.objectweb.jotm.core.transaction
Class AfterCompletionEvent
java.lang.Object
|
+--org.objectweb.jotm.core.transaction.AfterCompletionEvent
- All Implemented Interfaces:
- Event, TransactionalEvent
- public class AfterCompletionEvent
- extends java.lang.Object
- implements TransactionalEvent
After-completion event. This class provides a simple helper implementation
of the after-completion transactional event. I.e., it corresponds to the
TransactionalEvent.TYPE_AFTER_COMPLETION event type.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATUS_COMMITTED
public static final int STATUS_COMMITTED
- See Also:
- Constant Field Values
STATUS_ABORTED
public static final int STATUS_ABORTED
- See Also:
- Constant Field Values
AfterCompletionEvent
public AfterCompletionEvent(BasicTransaction iTx,
int iStatus)
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
getCompletionStatus
public int getCompletionStatus()
- Get completion status.
- Returns:
- one of the
STATUS_COMMITTED or STATUS_ABORTED
values