org.apache.geronimo.transaction.context
Class ContainerTransactionContext
java.lang.Object
org.apache.geronimo.transaction.context.TransactionContext
org.apache.geronimo.transaction.context.InheritableTransactionContext
org.apache.geronimo.transaction.context.ContainerTransactionContext
- public class ContainerTransactionContext
- extends InheritableTransactionContext
- Version:
- $Revision: 1.1 $ $Date: 2004/07/18 22:02:01 $
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 |
ContainerTransactionContext
public ContainerTransactionContext(TransactionManager txnManager)
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.