|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.tranlog.TransactionState
This class defines the various states of a transaction that a
ResourceManager
participates in..
Opened transaction is in an open state
Prepared transaction is in a prepared state
Closed transaction is in a closed state
Field Summary | |
static TransactionState |
CLOSED
|
static int |
CLOSED_ORD
|
static TransactionState |
OPENED
Instatiate instances related to each of the enumerations. |
static int |
OPENED_ORD
The public ordinal values for each of the enumerates states |
static TransactionState |
PREPARED
|
static int |
PREPARED_ORD
|
Constructor Summary | |
TransactionState()
Default constructor for Serialization |
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 |
isClosed()
Check if the transaction state is set to closed |
boolean |
isOpened()
Check if the transaction state is set to opened |
boolean |
isPrepared()
Check if the transaction state is set to prepared |
void |
readExternal(java.io.ObjectInput stream)
|
java.lang.String |
toString()
Returns the name of this state |
void |
writeExternal(java.io.ObjectOutput stream)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int OPENED_ORD
public static final int PREPARED_ORD
public static final int CLOSED_ORD
public static final TransactionState OPENED
public static final TransactionState PREPARED
public static final TransactionState CLOSED
Constructor Detail |
public TransactionState()
Method Detail |
public int getOrd()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- object to compare againstpublic boolean isOpened()
public boolean isPrepared()
public boolean isClosed()
public void writeExternal(java.io.ObjectOutput stream) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
public void readExternal(java.io.ObjectInput stream) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |