|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jts.jta.TransactionState
public class TransactionState
keep track of per-transaction state
| Field Summary | |
|---|---|
static boolean |
debug
|
| Constructor Summary | |
|---|---|
TransactionState(GlobalTID gtid,
TransactionImpl tran)
|
|
| Method Summary | |
|---|---|
void |
beforeCompletion()
this is called via callback of Synchronization right before a transaction commit or rollback to ensure that all XAResources are properly delisted |
boolean |
containsXAResource(XAResource res)
return true if res has been enlisted in this transaction; false otherwise. |
void |
endAssociation(XAResource xares,
int flags)
|
java.util.Enumeration |
listXAResources()
list all the XAResources that have been enlisted in this transaction. |
void |
registerSynchronization(Synchronization sync,
org.omg.CosTransactions.Control control,
boolean interposed)
synchronized void cleanupTransactionStateMapping() { if (activeResources == 0) { TransactionManagerImpl tm = TransactionManagerImpl.getTransactionManagerImpl(); } } |
void |
rollback(XAResource res)
This is called from OTS to rollback a particular XAResource |
void |
startAssociation(XAResource res,
org.omg.CosTransactions.Control control,
int status)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean debug
| Constructor Detail |
|---|
public TransactionState(GlobalTID gtid,
TransactionImpl tran)
| Method Detail |
|---|
public void beforeCompletion()
public void rollback(XAResource res)
throws java.lang.IllegalStateException,
XAException
java.lang.IllegalStateException
XAException
public void startAssociation(XAResource res,
org.omg.CosTransactions.Control control,
int status)
throws XAException,
SystemException,
java.lang.IllegalStateException,
RollbackException
XAException
SystemException
java.lang.IllegalStateException
RollbackException
public void endAssociation(XAResource xares,
int flags)
throws XAException,
java.lang.IllegalStateException
XAException
java.lang.IllegalStateException
public void registerSynchronization(Synchronization sync,
org.omg.CosTransactions.Control control,
boolean interposed)
throws RollbackException,
java.lang.IllegalStateException,
SystemException
RollbackException
java.lang.IllegalStateException
SystemExceptionpublic java.util.Enumeration listXAResources()
public boolean containsXAResource(XAResource res)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||