|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
jrunx.tyrex.tm.impl.TransactionManagerImpl
Implements a local transaction manager. The transaction manager
allows the application server to manage transactions on the local
thread through the TransactionManager interface.
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.
| Method Summary | |
void |
begin()
|
void |
commit()
|
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. |
int |
getStatus()
|
javax.transaction.Transaction |
getTransaction()
|
javax.transaction.Transaction |
getTransaction(java.lang.String xid)
Returns a transaction based on the transaction identifier. |
javax.transaction.Transaction |
getTransaction(java.lang.Thread thread)
Returns the transaction currently associated with the given thread, or null if the thread is not associated with any transaction. |
javax.transaction.Transaction |
getTransaction(javax.transaction.xa.Xid xid)
Returns a transaction based on the transaction identifier. |
TransactionDomainImpl |
getTransactionDomain()
|
static boolean |
hasTransaction()
|
protected void |
internalResume(jrunx.tyrex.tm.impl.TransactionImpl tx)
Called to resume the current transaction, but does not attempt to associate the resources with this transaction. |
void |
resume(javax.transaction.Transaction tx)
|
void |
rollback()
|
void |
setRollbackOnly()
|
void |
setTransactionTimeout(int seconds)
|
javax.transaction.Transaction |
suspend()
|
| Method Detail |
public static boolean hasTransaction()
public void begin()
throws javax.transaction.NotSupportedException,
javax.transaction.SystemException
public void commit()
throws javax.transaction.RollbackException,
javax.transaction.HeuristicMixedException,
javax.transaction.HeuristicRollbackException,
java.lang.SecurityException,
java.lang.IllegalStateException,
javax.transaction.SystemException
public void rollback()
throws java.lang.IllegalStateException,
java.lang.SecurityException,
javax.transaction.SystemException
public int getStatus()
public javax.transaction.Transaction getTransaction()
public void resume(javax.transaction.Transaction tx)
throws javax.transaction.InvalidTransactionException,
java.lang.IllegalStateException,
javax.transaction.SystemException
public javax.transaction.Transaction suspend()
public void setRollbackOnly()
throws java.lang.IllegalStateException,
javax.transaction.SystemException
public void setTransactionTimeout(int seconds)
public TransactionDomainImpl getTransactionDomain()
public javax.transaction.Transaction getTransaction(javax.transaction.xa.Xid xid)
TyrexTransactionManagergetTransaction in interface TyrexTransactionManagerjrunx.tyrex.tm.TyrexTransactionManagerxid - The transaction identifierpublic javax.transaction.Transaction getTransaction(java.lang.String xid)
TyrexTransactionManagergetTransaction in interface TyrexTransactionManagerjrunx.tyrex.tm.TyrexTransactionManagerxid - The transaction identifierpublic void dumpTransactionList(java.io.PrintWriter writer)
TyrexTransactionManagerdumpTransactionList in interface TyrexTransactionManagerjrunx.tyrex.tm.TyrexTransactionManagerwriter - The writer to usepublic void dumpCurrentTransaction(java.io.PrintWriter writer)
TyrexTransactionManagerdumpCurrentTransaction in interface TyrexTransactionManagerjrunx.tyrex.tm.TyrexTransactionManagerwriter - The writer to usepublic javax.transaction.Transaction getTransaction(java.lang.Thread thread)
TransactionManager#getTransaction from within the thread.thread - The thread to lookup
public void enlistResource(javax.transaction.xa.XAResource xaResource)
throws javax.transaction.SystemException
TyrexTransactionManagerenlistResource in interface TyrexTransactionManagerjrunx.tyrex.tm.TyrexTransactionManagerxaRes - The XA resourceSystemException - The resource cannot be enlisted with
the current transaction
public void delistResource(javax.transaction.xa.XAResource xaResource,
int flag)
TyrexTransactionManagerdelistResource in interface TyrexTransactionManagerjrunx.tyrex.tm.TyrexTransactionManagerxaRes - The XA resourceflag - The delist flag
protected void internalResume(jrunx.tyrex.tm.impl.TransactionImpl tx)
throws java.lang.IllegalStateException,
javax.transaction.SystemException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||