org.apache.geronimo.transaction
Class TransactionProxy

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

public class TransactionProxy
extends Object
implements Transaction

Our version of a JTA Transaction which also carries metadata such as isolation level and write-intent. Delegates all Transaction methods to a real Transaction obtained from the vendor's TransactionManager.

Version:
$Revision: 1.4 $ $Date: 2004/03/10 09:59:36 $

Constructor Summary
TransactionProxy(Transaction delegate)
           
 
Method Summary
 void commit()
           
 boolean delistResource(XAResource xaResource, int i)
           
 boolean enlistResource(XAResource xaResource)
           
 int getStatus()
           
 void registerSynchronization(Synchronization synchronization)
           
 void rollback()
           
 void setRollbackOnly()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionProxy

public TransactionProxy(Transaction delegate)
Method Detail

commit

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

delistResource

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

enlistResource

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

getStatus

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

registerSynchronization

public void registerSynchronization(Synchronization synchronization)
                             throws IllegalStateException,
                                    RollbackException,
                                    SystemException
Specified by:
registerSynchronization in interface Transaction
Throws:
IllegalStateException
RollbackException
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


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