|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Tyrex extensions for TransactionManager
. All Tyrex
transaction managers implement this interface, which supports
transaction resolving from an Xid, and means to obtain extended
transaction status.
Method Summary | |
void |
delistResource(javax.transaction.xa.XAResource xaResource,
int flag)
Called to delist a resource from the current thread. |
void |
dumpCurrentTransaction(java.io.PrintWriter writer)
Convenience method. |
void |
dumpTransactionList(java.io.PrintWriter writer)
Convenience method. |
void |
enlistResource(javax.transaction.xa.XAResource xaResource)
Called to enlist a resource with the current thread. |
void |
enlistResource(javax.transaction.xa.XAResource xaResource,
XAResourceCallback callback)
Called to enlist a resource with the current thread. |
javax.transaction.Transaction |
getTransaction(java.lang.String xid)
Returns a transaction based on the transaction identifier. |
javax.transaction.Transaction |
getTransaction(javax.transaction.xa.Xid xid)
Returns a transaction based on the transaction identifier. |
Methods inherited from interface javax.transaction.TransactionManager |
begin, commit, getStatus, getTransaction, resume, rollback, setRollbackOnly, setTransactionTimeout, suspend |
Method Detail |
public javax.transaction.Transaction getTransaction(javax.transaction.xa.Xid xid)
xid
- The transaction identifier
public javax.transaction.Transaction getTransaction(java.lang.String xid)
xid
- The transaction identifier
public void dumpTransactionList(java.io.PrintWriter writer)
writer
- The writer to usepublic void dumpCurrentTransaction(java.io.PrintWriter writer)
writer
- The writer to usepublic void enlistResource(javax.transaction.xa.XAResource xaResource) throws javax.transaction.SystemException
javax.transaction.SystemException
- The resource cannot be enlisted with
the current transactionpublic void enlistResource(javax.transaction.xa.XAResource xaResource, XAResourceCallback callback) throws javax.transaction.SystemException
callback
- The callback (optional)
javax.transaction.SystemException
- The resource cannot be enlisted with
the current transactionXAResourceCallback
public void delistResource(javax.transaction.xa.XAResource xaResource, int flag)
flag
- The delist flag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |