|
||||||||||
PREV CLASS NEXT CLASS (src) | 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(java.lang.Runnable task)
Add post rollback task |
boolean |
checkPersisted()
Get whether the transaction has been persisted |
int |
compareTo(java.lang.Object o)
|
int |
compareTo(Tx (src) anotherLong)
Compare |
int |
hashCode()
|
long |
longValue()
Get the long value |
void |
readExternal(java.io.ObjectInput in)
|
void |
rollback(PersistenceManager (src) pm)
Commit the transaction |
void |
setValue(long tx)
Set the value |
java.lang.String |
toString()
|
boolean |
wasPersisted()
Get whether the transaction has been persisted |
void |
writeExternal(java.io.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 valueMethod Detail |
public void setValue(long tx)
tx
- the new valuepublic long longValue()
public boolean checkPersisted()
public boolean wasPersisted()
public int compareTo(Tx (src) anotherLong)
anotherLong
- the other value
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
readExternal
in interface java.io.Externalizable
java.io.IOException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public java.lang.String toString()
public int hashCode()
public void rollback(PersistenceManager (src) pm) throws JMSException (src)
pm
- the persistence manager
JMSExecption
- for any error
JMSException (src)
public void addPostRollbackTask(java.lang.Runnable task) throws JMSException (src)
task
- the task
JMSExecption
- for any error
JMSException (src)
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |