org.apache.geronimo.transaction.context
Class TransactionContext
java.lang.Object
org.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
TransactionContext
public TransactionContext()
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.