| |
|
| java.lang.Object org.jboss.mq.pm.Tx
Constructor Summary | |
public | Tx() | public | Tx(long value) |
ADD | final public static int ADD(Code) | | Restore addition
|
REMOVE | final public static int REMOVE(Code) | | Restore remove
|
UNKNOWN | final public static int UNKNOWN(Code) | | Restore unknown
|
persisted | boolean persisted(Code) | | Whether the transaction has been persisted
|
postCommitTasks | transient ArrayList postCommitTasks(Code) | | List of Runnable tasks
|
postRollbackTasks | transient ArrayList postRollbackTasks(Code) | | List of Runnable tasks
|
serialVersionUID | final static long serialVersionUID(Code) | | The serialVersionUID
|
status | transient int status(Code) | | The status
|
value | long value(Code) | | The transaction value
|
Tx | public Tx()(Code) | | Create a new Tx for externailzation
|
Tx | public Tx(long value)(Code) | | Create a new Tx
Parameters: value - the value |
addPostCommitTask | void addPostCommitTask(Runnable task) throws JMSException(Code) | | Add post commit task
Parameters: task - the task throws: JMSExecption - for any error |
addPostRollbackTask | public void addPostRollbackTask(Runnable task) throws JMSException(Code) | | Add post rollback task
Parameters: task - the task throws: JMSExecption - for any error |
checkPersisted | public synchronized boolean checkPersisted()(Code) | | Get whether the transaction has been persisted
true when persisted |
commit | void commit(PersistenceManager pm) throws JMSException(Code) | | Commit the transaction
Parameters: pm - the persistence manager throws: JMSExecption - for any error |
compareTo | public int compareTo(Tx anotherLong)(Code) | | Compare
Parameters: anotherLong - the other value -1, 0, 1 if less than, equal or greater than respectively |
getXid | public Xid getXid()(Code) | | Get the xid.
the xid. |
hashCode | public int hashCode()(Code) | | |
longValue | public long longValue()(Code) | | Get the long value
the long value |
rollback | public void rollback(PersistenceManager pm) throws JMSException(Code) | | Commit the transaction
Parameters: pm - the persistence manager throws: JMSExecption - for any error |
setValue | public void setValue(long tx)(Code) | | Set the value
Parameters: tx - the new value |
setXid | public void setXid(Xid xid)(Code) | | Set the xid.
Parameters: xid - the xid. |
wasPersisted | public synchronized boolean wasPersisted()(Code) | | Get whether the transaction has been persisted
true when persisted |
|
|
|