Package com.sun.jts.jta
Class TransactionState
- java.lang.Object
-
- com.sun.jts.jta.TransactionState
-
public class TransactionState extends Object
keep track of per-transaction state- Author:
- Tony Ng
-
-
Constructor Summary
Constructors Constructor Description TransactionState(GlobalTID gtid, TransactionImpl tran)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeCompletion()
this is called via callback of Synchronization right before a transaction commit or rollback to ensure that all XAResources are properly delistedboolean
containsXAResource(XAResource res)
return true if res has been enlisted in this transaction; false otherwise.void
endAssociation(XAResource xares, int flags)
Enumeration
listXAResources()
list all the XAResources that have been enlisted in this transaction.void
registerSynchronization(jakarta.transaction.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 XAResourcevoid
startAssociation(XAResource res, org.omg.CosTransactions.Control control, int status)
-
-
-
Constructor Detail
-
TransactionState
public TransactionState(GlobalTID gtid, TransactionImpl tran)
-
-
Method Detail
-
beforeCompletion
public void beforeCompletion()
this is called via callback of Synchronization right before a transaction commit or rollback to ensure that all XAResources are properly delisted
-
rollback
public void rollback(XAResource res) throws IllegalStateException, XAException
This is called from OTS to rollback a particular XAResource- Throws:
IllegalStateException
XAException
-
startAssociation
public void startAssociation(XAResource res, org.omg.CosTransactions.Control control, int status) throws XAException, jakarta.transaction.SystemException, IllegalStateException, jakarta.transaction.RollbackException
- Throws:
XAException
jakarta.transaction.SystemException
IllegalStateException
jakarta.transaction.RollbackException
-
endAssociation
public void endAssociation(XAResource xares, int flags) throws XAException, IllegalStateException
- Throws:
XAException
IllegalStateException
-
registerSynchronization
public void registerSynchronization(jakarta.transaction.Synchronization sync, org.omg.CosTransactions.Control control, boolean interposed) throws jakarta.transaction.RollbackException, IllegalStateException, jakarta.transaction.SystemException
synchronized void cleanupTransactionStateMapping() { if (activeResources == 0) { TransactionManagerImpl tm = TransactionManagerImpl.getTransactionManagerImpl(); } }- Throws:
jakarta.transaction.RollbackException
IllegalStateException
jakarta.transaction.SystemException
-
listXAResources
public Enumeration listXAResources()
list all the XAResources that have been enlisted in this transaction.
-
containsXAResource
public boolean containsXAResource(XAResource res)
return true if res has been enlisted in this transaction; false otherwise.
-
-