|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mq.pm.TxManager
This class allows provides the base for user supplied persistence packages.
Constructor Summary | |
TxManager(PersistenceManager (src) pm)
Create a new TxManager |
Method Summary | |
void |
addPostCommitTask(Tx (src) txId,
java.lang.Runnable task)
Add an operation for after a commit |
void |
addPostRollbackTask(Tx (src) txId,
java.lang.Runnable task)
Add an operation for after a rollback |
void |
commitTx(Tx (src) txId)
Commit the transaction to the persistent store. |
Tx (src) |
createTx()
Create and return a unique transaction id. |
Tx (src) |
createTx(ConnectionToken (src) dc,
java.lang.Object xid)
Create and return a unique transaction id. |
Tx (src) |
getPrepared(ConnectionToken (src) dc,
java.lang.Object xid)
Return the local transaction id for a distributed transaction id. |
void |
rollbackTx(Tx (src) txId)
Rollback the transaction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TxManager(PersistenceManager (src) pm)
pm
- the persistence managerMethod Detail |
public final Tx (src) getPrepared(ConnectionToken (src) dc, java.lang.Object xid) throws JMSException (src)
dc
- the connectionxid
- the transaction id
JMSException (src)
- Description of Exceptionpublic final Tx (src) createTx() throws JMSException (src)
JMSException (src)
- for any errorpublic final void commitTx(Tx (src) txId) throws JMSException (src)
txId
- the transaction
JMSException (src)
- for any errorpublic void addPostCommitTask(Tx (src) txId, java.lang.Runnable task) throws JMSException (src)
txId
- the transactiontask
- the task
JMSException (src)
- for any errorpublic void rollbackTx(Tx (src) txId) throws JMSException (src)
txId
- the transaction
JMSException (src)
- for any errorpublic void addPostRollbackTask(Tx (src) txId, java.lang.Runnable task) throws JMSException (src)
txId
- the transactiontask
- the task
JMSException (src)
- for any errorpublic Tx (src) createTx(ConnectionToken (src) dc, java.lang.Object xid) throws JMSException (src)
dc
- the connection tokenxid
- the xid
JMSException (src)
- for any error
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |