org.apache.geronimo.transaction.manager
Class TransactionImpl

java.lang.Object
  extended byorg.apache.geronimo.transaction.manager.TransactionImpl
All Implemented Interfaces:
Transaction

public class TransactionImpl
extends Object
implements Transaction

Basic local transaction with support for multiple resources.

Version:
$Revision: 1.9 $ $Date: 2004/09/02 00:51:57 $

Constructor Summary
TransactionImpl(Xid xid, TransactionLog txLog)
           
 
Method Summary
 void addBranchXid(XAResource xaRes, Xid branchId)
           
 void commit()
           
 boolean delistResource(XAResource xaRes, int flag)
           
 boolean enlistResource(XAResource xaRes)
           
 boolean equals(Object obj)
           
 int getStatus()
           
 void registerSynchronization(Synchronization synch)
           
 void rollback()
           
 void setRollbackOnly()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionImpl

public TransactionImpl(Xid xid,
                       TransactionLog txLog)
Method Detail

getStatus

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

setRollbackOnly

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

registerSynchronization

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

enlistResource

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

delistResource

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

commit

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

rollback

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

equals

public boolean equals(Object obj)

addBranchXid

public void addBranchXid(XAResource xaRes,
                         Xid branchId)


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.