org.apache.geronimo.transaction.context
Class AbstractTransactionContext

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

abstract class AbstractTransactionContext
extends java.lang.Object
implements TransactionContext

Version:
$Rev: 155376 $ $Date: 2005-02-25 15:10:24 -0800 (Fri, 25 Feb 2005) $

Field Summary
private  DoubleKeyedHashMap associatedContexts
           
private  InstanceContext currentContext
           
private  DoubleKeyedHashMap dirtyContexts
           
private  org.tranql.cache.InTxCache inTxCache
           
protected static Log log
           
protected  java.util.Map managedConnections
           
 
Constructor Summary
(package private) AbstractTransactionContext()
           
 
Method Summary
 void associate(InstanceContext context)
           
 InstanceContext beginInvocation(InstanceContext context)
           
 void endInvocation(InstanceContext caller)
           
 void flushState()
           
protected  java.util.ArrayList getAssociatedContexts()
           
 InstanceContext getContext(java.lang.Object containerId, java.lang.Object id)
           
 org.tranql.cache.InTxCache getInTxCache()
           
 java.lang.Object getManagedConnectionInfo(ConnectionReleaser key)
           
 void setInTxCache(org.tranql.cache.InTxCache inTxCache)
           
 void setManagedConnectionInfo(ConnectionReleaser key, java.lang.Object info)
           
 void unassociate(InstanceContext context)
           
 void unassociate(java.lang.Object containerId, java.lang.Object id)
           
protected  void unassociateAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.geronimo.transaction.context.TransactionContext
commit, delistResource, enlistResource, getRollbackOnly, isActive, isInheritable, registerSynchronization, resume, rollback, setRollbackOnly, suspend
 

Field Detail

log

protected static final Log log

managedConnections

protected java.util.Map managedConnections

currentContext

private InstanceContext currentContext

associatedContexts

private final DoubleKeyedHashMap associatedContexts

dirtyContexts

private final DoubleKeyedHashMap dirtyContexts

inTxCache

private org.tranql.cache.InTxCache inTxCache
Constructor Detail

AbstractTransactionContext

AbstractTransactionContext()
Method Detail

associate

public final void associate(InstanceContext context)
                     throws java.lang.Throwable
Specified by:
associate in interface TransactionContext
Throws:
java.lang.Throwable

unassociate

public final void unassociate(InstanceContext context)
                       throws java.lang.Throwable
Specified by:
unassociate in interface TransactionContext
Throws:
java.lang.Throwable

unassociate

public final void unassociate(java.lang.Object containerId,
                              java.lang.Object id)
                       throws java.lang.Throwable
Specified by:
unassociate in interface TransactionContext
Throws:
java.lang.Throwable

getContext

public final InstanceContext getContext(java.lang.Object containerId,
                                        java.lang.Object id)
Specified by:
getContext in interface TransactionContext

getAssociatedContexts

protected final java.util.ArrayList getAssociatedContexts()

unassociateAll

protected final void unassociateAll()

beginInvocation

public final InstanceContext beginInvocation(InstanceContext context)
                                      throws java.lang.Throwable
Specified by:
beginInvocation in interface TransactionContext
Throws:
java.lang.Throwable

endInvocation

public final void endInvocation(InstanceContext caller)
Specified by:
endInvocation in interface TransactionContext

flushState

public final void flushState()
                      throws java.lang.Throwable
Specified by:
flushState in interface TransactionContext
Throws:
java.lang.Throwable

setInTxCache

public final void setInTxCache(org.tranql.cache.InTxCache inTxCache)
Specified by:
setInTxCache in interface TransactionContext

getInTxCache

public final org.tranql.cache.InTxCache getInTxCache()
Specified by:
getInTxCache in interface TransactionContext

setManagedConnectionInfo

public void setManagedConnectionInfo(ConnectionReleaser key,
                                     java.lang.Object info)
Specified by:
setManagedConnectionInfo in interface TransactionContext

getManagedConnectionInfo

public java.lang.Object getManagedConnectionInfo(ConnectionReleaser key)
Specified by:
getManagedConnectionInfo in interface TransactionContext


Copyright © 2005 Apache Software Foundation. All Rights Reserved.