|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mq.pm.Tx
A transaction
| 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 |
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 |
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 |
| 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 boolean checkPersisted()
public boolean wasPersisted()
public int compareTo(Tx anotherLong)
anotherLong - the other value
public int compareTo(Object o)
compareTo in interface Comparablepublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic String toString()
public int hashCode()
public void rollback(PersistenceManager pm) throws javax.jms.JMSException
pm - the persistence manager
JMSExecption - for any error
javax.jms.JMSExceptionpublic 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 | ||||||||||