org.openejb.sfsb
Class StatefulInstanceContext

java.lang.Object
  extended byorg.openejb.AbstractInstanceContext
      extended byorg.openejb.sfsb.StatefulInstanceContext
All Implemented Interfaces:
EJBInstanceContext, org.apache.geronimo.transaction.InstanceContext

public class StatefulInstanceContext
extends AbstractInstanceContext

Version:
$Revision: 445266 $ $Date: 2005-03-09 06:58:17 +0100 (Wed, 09 Mar 2005) $

Field Summary
 
Fields inherited from class org.openejb.AbstractInstanceContext
systemChain
 
Constructor Summary
StatefulInstanceContext(Object containerId, EJBProxyFactory proxyFactory, javax.ejb.SessionBean instance, Object id, org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager, org.apache.geronimo.transaction.context.UserTransactionImpl userTransaction, SystemMethodIndices systemMethodIndices, org.apache.geronimo.core.service.Interceptor systemChain, Set unshareableResources, Set applicationManagedSecurityResources)
           
 
Method Summary
 void afterCommit(boolean committed)
           
 void associate()
           
 void beforeCommit()
           
 void die()
           
 InstanceCache getCache()
           
 EJBContextImpl getEJBContextImpl()
           
 Object getId()
           
 EJBOperation getOperation()
           
 org.apache.geronimo.transaction.context.TransactionContext getPreexistingContext()
           
 StatefulSessionContext getSessionContext()
           
 void setCache(InstanceCache cache)
           
 void setContext()
           
 void setOperation(EJBOperation operation)
           
 void setPreexistingContext(org.apache.geronimo.transaction.context.TransactionContext preexistingContext)
           
 boolean setTimerState(EJBOperation operation)
           
 void unassociate()
           
 void unsetContext()
           
 
Methods inherited from class org.openejb.AbstractInstanceContext
enter, exit, flush, getApplicationManagedSecurityResources, getBasicTimerService, getConnectionManagerMap, getContainerId, getInstance, getProxyFactory, getTimerService, getUnshareableResources, isDead, isInCall, setTimerServiceAvailable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatefulInstanceContext

public StatefulInstanceContext(Object containerId,
                               EJBProxyFactory proxyFactory,
                               javax.ejb.SessionBean instance,
                               Object id,
                               org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager,
                               org.apache.geronimo.transaction.context.UserTransactionImpl userTransaction,
                               SystemMethodIndices systemMethodIndices,
                               org.apache.geronimo.core.service.Interceptor systemChain,
                               Set unshareableResources,
                               Set applicationManagedSecurityResources)
Method Detail

getOperation

public EJBOperation getOperation()

setOperation

public void setOperation(EJBOperation operation)

setTimerState

public boolean setTimerState(EJBOperation operation)

getEJBContextImpl

public EJBContextImpl getEJBContextImpl()

getId

public Object getId()
Specified by:
getId in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
getId in class AbstractInstanceContext

getPreexistingContext

public org.apache.geronimo.transaction.context.TransactionContext getPreexistingContext()

setPreexistingContext

public void setPreexistingContext(org.apache.geronimo.transaction.context.TransactionContext preexistingContext)

getCache

public InstanceCache getCache()

setCache

public void setCache(InstanceCache cache)

die

public void die()
Specified by:
die in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
die in class AbstractInstanceContext

getSessionContext

public StatefulSessionContext getSessionContext()

setContext

public void setContext()
                throws Throwable
Throws:
Throwable

unsetContext

public void unsetContext()
                  throws Throwable
Throws:
Throwable

associate

public void associate()
               throws Throwable
Specified by:
associate in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
associate in class AbstractInstanceContext
Throws:
Throwable

beforeCommit

public void beforeCommit()
                  throws Throwable
Specified by:
beforeCommit in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
beforeCommit in class AbstractInstanceContext
Throws:
Throwable

afterCommit

public void afterCommit(boolean committed)
                 throws Throwable
Specified by:
afterCommit in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
afterCommit in class AbstractInstanceContext
Throws:
Throwable

unassociate

public void unassociate()
                 throws Throwable
Specified by:
unassociate in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
unassociate in class AbstractInstanceContext
Throws:
Throwable


Copyright © 1999-2006 OpenEJB. All Rights Reserved.