|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.core.foundation.TransactionStatus
This class defines the various states of a transaction.A transaction can be in one three possible states.
OPENED a begin has been issues and the transaction is in progress COMMITTED the transaction has been successfully commited ROLLOEDBACK the transaction has been successfully rolled back
A lot of these concepts have been borrowed from Castor
Field Summary | |
static TransactionStatus |
ABORTED
|
static TransactionStatus |
CLOSED
|
static TransactionStatus |
COMMITTED
|
static TransactionStatus |
OPENED
Instatiate instances related to each of the enumerations |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Return true iff the two specified object are of the same type and their ordinal values are identical. |
int |
getOrd()
Returns the ordinal value for this state |
boolean |
isOpened()
Check if the transaction status is set to OPENED |
static int |
size()
Returns the number of states in this enumeration |
java.lang.String |
toString()
Returns the name of this state |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final TransactionStatus OPENED
public static final TransactionStatus CLOSED
public static final TransactionStatus COMMITTED
public static final TransactionStatus ABORTED
Method Detail |
public int getOrd()
public java.lang.String toString()
public static int size()
public boolean equals(java.lang.Object obj)
obj
- object to compare against
public boolean isOpened()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |