pt.ist.fenixframework.util
Class JTADelegatingTransaction

Package class diagram package JTADelegatingTransaction
java.lang.Object
  extended by pt.ist.fenixframework.util.JTADelegatingTransaction
All Implemented Interfaces:
Transaction

public class JTADelegatingTransaction
extends Object
implements Transaction


Constructor Summary
JTADelegatingTransaction(Transaction delegateTx)
           
 
Method Summary
 void commit()
           
 boolean delistResource(XAResource xaRes, int flag)
           
 boolean enlistResource(XAResource xaRes)
           
 int getStatus()
           
 TxStats getTxIntrospector()
          Get the TxIntrospector object that contains the changes caused by this transaction.
 void registerSynchronization(Synchronization sync)
           
 void rollback()
           
 void setRollbackOnly()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTADelegatingTransaction

public JTADelegatingTransaction(Transaction delegateTx)
Method Detail

commit

public void commit()
            throws RollbackException,
                   HeuristicMixedException,
                   HeuristicRollbackException,
                   SecurityException,
                   SystemException
Specified by:
commit in interface Transaction
Throws:
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
SystemException

delistResource

public boolean delistResource(XAResource xaRes,
                              int flag)
                       throws IllegalStateException,
                              SystemException
Specified by:
delistResource in interface Transaction
Throws:
IllegalStateException
SystemException

enlistResource

public boolean enlistResource(XAResource xaRes)
                       throws RollbackException,
                              IllegalStateException,
                              SystemException
Specified by:
enlistResource in interface Transaction
Throws:
RollbackException
IllegalStateException
SystemException

getStatus

public int getStatus()
              throws SystemException
Specified by:
getStatus in interface Transaction
Throws:
SystemException

registerSynchronization

public void registerSynchronization(Synchronization sync)
                             throws RollbackException,
                                    IllegalStateException,
                                    SystemException
Specified by:
registerSynchronization in interface Transaction
Throws:
RollbackException
IllegalStateException
SystemException

rollback

public void rollback()
              throws IllegalStateException,
                     SystemException
Specified by:
rollback in interface Transaction
Throws:
IllegalStateException
SystemException

setRollbackOnly

public void setRollbackOnly()
                     throws IllegalStateException,
                            SystemException
Specified by:
setRollbackOnly in interface Transaction
Throws:
IllegalStateException
SystemException

getTxIntrospector

public TxStats getTxIntrospector()
Description copied from interface: Transaction
Get the TxIntrospector object that contains the changes caused by this transaction. Multiple calls to this method will return the same object.

Returns:
TxIntrospector The TxIntrospector object associated with this transaction.


Copyright © 2013. All Rights Reserved.