|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mq.pm.Tx
public class Tx
A transaction
| Field Summary | |
|---|---|
static int |
ADD
Restore addition |
static int |
REMOVE
Restore remove |
static int |
UNKNOWN
Restore unknown |
| Constructor Summary | |
|---|---|
Tx()
Create a new Tx for externailzation |
|
Tx(long value)
Create a new Tx |
|
| Method Summary | |
|---|---|
void |
addPostRollbackTask(Runnable task)
Add post rollback task |
boolean |
checkPersisted()
Get whether the transaction has been persisted |
int |
compareTo(Object o)
|
int |
compareTo(Tx anotherLong)
Compare |
Xid |
getXid()
Get the xid. |
int |
hashCode()
|
long |
longValue()
Get the long value |
void |
readExternal(ObjectInput in)
|
void |
rollback(PersistenceManager pm)
Commit the transaction |
void |
setValue(long tx)
Set the value |
void |
setXid(Xid xid)
Set the xid. |
String |
toString()
|
boolean |
wasPersisted()
Get whether the transaction has been persisted |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int UNKNOWN
public static final int ADD
public static final int REMOVE
| Constructor Detail |
|---|
public Tx()
public Tx(long value)
value - the value| Method Detail |
|---|
public void setValue(long tx)
tx - the new valuepublic long longValue()
public Xid getXid()
public void setXid(Xid xid)
xid - the xid.public boolean checkPersisted()
public boolean wasPersisted()
public int compareTo(Tx anotherLong)
anotherLong - the other value
public int compareTo(Object o)
compareTo in interface Comparable
public void readExternal(ObjectInput in)
throws IOException
readExternal in interface ExternalizableIOException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOExceptionpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Object
public void rollback(PersistenceManager pm)
throws javax.jms.JMSException
pm - the persistence manager
JMSExecption - for any error
javax.jms.JMSException
public void addPostRollbackTask(Runnable task)
throws javax.jms.JMSException
task - the task
JMSExecption - for any error
javax.jms.JMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||