tyrex.tm.impl
final class TransactionManagerImpl extends Object implements TransactionManager, Status, TyrexTransactionManager
Nested transactions are supported if the server configuration indicates so, but all nested transactions appear as flat transactions to the resources and are not registered with the transaction server.
Version: $Revision: 1.19 $ $Date: 2001/10/05 22:15:34 $
See Also: Tyrex#recycleThread TransactionDomain TransactionImpl
Constructor Summary | |
---|---|
TransactionManagerImpl(TransactionDomainImpl txDomain) |
Method Summary | |
---|---|
void | begin() |
void | commit() |
void | delistResource(XAResource xaResource, int flag) |
void | dumpCurrentTransaction(PrintWriter writer) |
void | dumpTransactionList(PrintWriter writer) |
void | enlistResource(XAResource xaResource) |
void | enlistResource(XAResource xaResource, XAResourceCallback callback) |
int | getStatus() |
Transaction | getTransaction() |
Transaction | getTransaction(Xid xid) |
Transaction | getTransaction(String xid) |
Transaction | getTransaction(Thread thread)
Returns the transaction currently associated with the given
thread, or null if the thread is not associated with any
transaction. |
protected void | internalResume(TransactionImpl tx)
Called to resume the current transaction, but does not attempt to
associate the resources with this transaction. |
void | resume(Transaction tx) |
void | rollback() |
void | setRollbackOnly() |
void | setTransactionTimeout(int seconds) |
Transaction | suspend() |
Parameters: thread The thread to lookup
Returns: The transaction currently associated with that thread