org.apache.geronimo.transaction.context
Class ContainerTransactionContext

java.lang.Object
  extended byorg.apache.geronimo.transaction.context.TransactionContext
      extended byorg.apache.geronimo.transaction.context.InheritableTransactionContext
          extended byorg.apache.geronimo.transaction.context.ContainerTransactionContext

public class ContainerTransactionContext
extends InheritableTransactionContext

Version:
$Revision: 1.1 $ $Date: 2004/07/18 22:02:01 $

Field Summary
 
Fields inherited from class org.apache.geronimo.transaction.context.TransactionContext
log
 
Constructor Summary
ContainerTransactionContext(TransactionManager txnManager)
           
 
Method Summary
 void begin()
           
 void commit()
          TODO the exceptions thrown here are not all correct.
 boolean getRollbackOnly()
           
 Transaction getTransaction()
           
 boolean isActive()
           
 void resume()
           
 void rollback()
           
 void setRollbackOnly()
           
 void suspend()
           
 
Methods inherited from class org.apache.geronimo.transaction.context.TransactionContext
afterCommit, associate, beforeCommit, beginInvocation, connectorAfterCommit, endInvocation, flushState, getContext, getContext, getInTxCache, getManagedConnectionInfo, setContext, setManagedConnectionInfo, unassociate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerTransactionContext

public ContainerTransactionContext(TransactionManager txnManager)
Method Detail

begin

public void begin()
           throws SystemException,
                  NotSupportedException
Specified by:
begin in class TransactionContext
Throws:
SystemException
NotSupportedException

suspend

public void suspend()
             throws SystemException
Specified by:
suspend in class TransactionContext
Throws:
SystemException

resume

public void resume()
            throws SystemException,
                   InvalidTransactionException
Specified by:
resume in class TransactionContext
Throws:
SystemException
InvalidTransactionException

commit

public void commit()
            throws HeuristicMixedException,
                   HeuristicRollbackException,
                   RollbackException,
                   SystemException
TODO the exceptions thrown here are not all correct. Don't throw a RollbackException after a successful commit...??

Specified by:
commit in class TransactionContext
Throws:
HeuristicMixedException
HeuristicRollbackException
RollbackException
SystemException

rollback

public void rollback()
              throws SystemException
Specified by:
rollback in class TransactionContext
Throws:
SystemException

isActive

public boolean isActive()
Specified by:
isActive in class TransactionContext

getTransaction

public Transaction getTransaction()
Specified by:
getTransaction in class TransactionContext

setRollbackOnly

public void setRollbackOnly()
                     throws IllegalStateException,
                            SystemException
Throws:
IllegalStateException
SystemException

getRollbackOnly

public boolean getRollbackOnly()
                        throws SystemException
Throws:
SystemException


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