org.apache.geronimo.transaction.context
Interface TransactionContext
- public interface TransactionContext
- Version:
- $Rev: 355877 $ $Date: 2005-12-11 03:48:27 +0100 (Sun, 11 Dec 2005) $
isInheritable
public boolean isInheritable()
isActive
public boolean isActive()
enlistResource
public boolean enlistResource(XAResource xaResource)
throws RollbackException,
SystemException
- Throws:
RollbackException
SystemException
delistResource
public boolean delistResource(XAResource xaResource,
int flag)
throws SystemException
- Throws:
SystemException
registerSynchronization
public void registerSynchronization(Synchronization synchronization)
throws RollbackException,
SystemException
- Throws:
RollbackException
SystemException
getRollbackOnly
public boolean getRollbackOnly()
throws SystemException
- Throws:
SystemException
setRollbackOnly
public void setRollbackOnly()
throws SystemException
- Throws:
SystemException
suspend
public void suspend()
throws SystemException
- Throws:
SystemException
resume
public void resume()
throws SystemException,
InvalidTransactionException
- Throws:
SystemException
InvalidTransactionException
commit
public boolean commit()
throws HeuristicMixedException,
HeuristicRollbackException,
RollbackException,
SystemException
- Throws:
HeuristicMixedException
HeuristicRollbackException
RollbackException
SystemException
rollback
public void rollback()
throws SystemException
- Throws:
SystemException
associate
public void associate(InstanceContext context)
throws Throwable
- Throws:
Throwable
unassociate
public void unassociate(InstanceContext context)
throws Throwable
- Throws:
Throwable
unassociate
public void unassociate(Object containerId,
Object id)
throws Throwable
- Throws:
Throwable
getContext
public InstanceContext getContext(Object containerId,
Object id)
beginInvocation
public InstanceContext beginInvocation(InstanceContext context)
throws Throwable
- Throws:
Throwable
endInvocation
public void endInvocation(InstanceContext caller)
flushState
public void flushState()
throws Throwable
- Throws:
Throwable
setInTxCache
public void setInTxCache(Flushable flushable)
getInTxCache
public Flushable getInTxCache()
setManagedConnectionInfo
public void setManagedConnectionInfo(ConnectionReleaser key,
Object info)
getManagedConnectionInfo
public Object getManagedConnectionInfo(ConnectionReleaser key)
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.