org.apache.geronimo.transaction.context
Class TransactionContext

java.lang.Object
  extended byorg.apache.geronimo.transaction.context.TransactionContext
Direct Known Subclasses:
InheritableTransactionContext, UnspecifiedTransactionContext

public abstract class TransactionContext
extends Object

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

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
TransactionContext()
           
 
Method Summary
protected  void afterCommit(boolean status)
           
 void associate(InstanceContext context)
           
protected  void beforeCommit()
           
abstract  void begin()
           
 InstanceContext beginInvocation(InstanceContext context)
           
abstract  void commit()
           
protected  void connectorAfterCommit()
           
 void endInvocation(InstanceContext caller)
           
 void flushState()
           
static TransactionContext getContext()
           
 InstanceContext getContext(Object containerId, Object id)
           
 org.tranql.cache.InTxCache getInTxCache()
           
 Object getManagedConnectionInfo(ConnectionReleaser key)
           
abstract  Transaction getTransaction()
           
abstract  boolean isActive()
           
abstract  void resume()
           
abstract  void rollback()
           
static void setContext(TransactionContext context)
           
 void setManagedConnectionInfo(ConnectionReleaser key, Object info)
           
abstract  void suspend()
           
 void unassociate(Object containerId, Object id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Constructor Detail

TransactionContext

public TransactionContext()
Method Detail

getContext

public static TransactionContext getContext()

setContext

public static void setContext(TransactionContext context)

begin

public abstract void begin()
                    throws SystemException,
                           NotSupportedException
Throws:
SystemException
NotSupportedException

suspend

public abstract void suspend()
                      throws SystemException
Throws:
SystemException

resume

public abstract void resume()
                     throws SystemException,
                            InvalidTransactionException
Throws:
SystemException
InvalidTransactionException

commit

public abstract void commit()
                     throws HeuristicMixedException,
                            HeuristicRollbackException,
                            RollbackException,
                            SystemException
Throws:
HeuristicMixedException
HeuristicRollbackException
RollbackException
SystemException

rollback

public abstract void rollback()
                       throws SystemException
Throws:
SystemException

associate

public final void associate(InstanceContext context)
                     throws Throwable
Throws:
Throwable

unassociate

public final void unassociate(Object containerId,
                              Object id)
                       throws Exception
Throws:
Exception

beginInvocation

public final InstanceContext beginInvocation(InstanceContext context)

endInvocation

public final void endInvocation(InstanceContext caller)

flushState

public final void flushState()
                      throws Throwable
Throws:
Throwable

beforeCommit

protected void beforeCommit()
                     throws Exception
Throws:
Exception

afterCommit

protected void afterCommit(boolean status)
                    throws Exception
Throws:
Exception

getContext

public final InstanceContext getContext(Object containerId,
                                        Object id)

getInTxCache

public final org.tranql.cache.InTxCache getInTxCache()

setManagedConnectionInfo

public void setManagedConnectionInfo(ConnectionReleaser key,
                                     Object info)

getManagedConnectionInfo

public Object getManagedConnectionInfo(ConnectionReleaser key)

isActive

public abstract boolean isActive()

getTransaction

public abstract Transaction getTransaction()

connectorAfterCommit

protected void connectorAfterCommit()


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