com.sun.jts.jta
Class TransactionState

java.lang.Object
  extended by com.sun.jts.jta.TransactionState

public class TransactionState
extends java.lang.Object

keep track of per-transaction state

Author:
Tony Ng

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

debug

public static boolean debug
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 java.lang.IllegalStateException,
                     XAException
This is called from OTS to rollback a particular XAResource

Throws:
java.lang.IllegalStateException
XAException

startAssociation

public void startAssociation(XAResource res,
                             org.omg.CosTransactions.Control control,
                             int status)
                      throws XAException,
                             SystemException,
                             java.lang.IllegalStateException,
                             RollbackException
Throws:
XAException
SystemException
java.lang.IllegalStateException
RollbackException

endAssociation

public void endAssociation(XAResource xares,
                           int flags)
                    throws XAException,
                           java.lang.IllegalStateException
Throws:
XAException
java.lang.IllegalStateException

registerSynchronization

public void registerSynchronization(Synchronization sync,
                                    org.omg.CosTransactions.Control control,
                                    boolean interposed)
                             throws RollbackException,
                                    java.lang.IllegalStateException,
                                    SystemException
synchronized void cleanupTransactionStateMapping() { if (activeResources == 0) { TransactionManagerImpl tm = TransactionManagerImpl.getTransactionManagerImpl(); } }

Throws:
RollbackException
java.lang.IllegalStateException
SystemException

listXAResources

public java.util.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.



Copyright © 2012 GlassFish Community. All Rights Reserved.