org.openejb.entity
Class EntityInstanceContext

java.lang.Object
  extended byorg.openejb.AbstractInstanceContext
      extended byorg.openejb.entity.EntityInstanceContext
All Implemented Interfaces:
EJBInstanceContext, org.apache.geronimo.transaction.InstanceContext
Direct Known Subclasses:
BMPInstanceContext, CMPInstanceContext

public abstract class EntityInstanceContext
extends AbstractInstanceContext

Version:
$Revision: 446210 $ $Date: 2006-06-02 23:37:55 +0200 (Fri, 02 Jun 2006) $

Field Summary
 
Fields inherited from class org.openejb.AbstractInstanceContext
systemChain
 
Constructor Summary
EntityInstanceContext(Object containerId, EJBProxyFactory proxyFactory, javax.ejb.EnterpriseBean instance, org.apache.geronimo.core.service.Interceptor lifecycleInterceptorChain, SystemMethodIndices systemMethodIndices, Set unshareableResources, Set applicationManagedSecurityResources, org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager, BasicTimerService timerService)
           
 
Method Summary
 void associate()
           
 void beforeCommit()
           
 void die()
           
protected  void ejbActivate()
           
protected  void ejbLoad()
           
protected  void ejbPassivate()
           
 void ejbStore()
           
 void flush()
           
 EJBContextImpl getEJBContextImpl()
           
 javax.ejb.EntityContext getEntityContext()
           
 Object getId()
           
 InstancePool getPool()
           
 boolean isLoaded()
           
 void setContext()
           
 void setId(Object id)
           
 void setLoaded(boolean loaded)
           
 void setOperation(EJBOperation operation)
           
 void setPool(InstancePool pool)
           
 boolean setTimerState(EJBOperation operation)
           
 void setTransactionContext(org.apache.geronimo.transaction.context.TransactionContext transactionContext)
           
 void unassociate()
           
 void unsetContext()
           
 
Methods inherited from class org.openejb.AbstractInstanceContext
afterCommit, enter, exit, 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

EntityInstanceContext

public EntityInstanceContext(Object containerId,
                             EJBProxyFactory proxyFactory,
                             javax.ejb.EnterpriseBean instance,
                             org.apache.geronimo.core.service.Interceptor lifecycleInterceptorChain,
                             SystemMethodIndices systemMethodIndices,
                             Set unshareableResources,
                             Set applicationManagedSecurityResources,
                             org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager,
                             BasicTimerService timerService)
Method Detail

getId

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

setId

public void setId(Object id)

getPool

public InstancePool getPool()

setPool

public void setPool(InstancePool pool)

setOperation

public void setOperation(EJBOperation operation)

setTimerState

public boolean setTimerState(EJBOperation operation)

getEJBContextImpl

public EJBContextImpl getEJBContextImpl()

getEntityContext

public javax.ejb.EntityContext getEntityContext()

setTransactionContext

public void setTransactionContext(org.apache.geronimo.transaction.context.TransactionContext transactionContext)

isLoaded

public boolean isLoaded()

setLoaded

public void setLoaded(boolean loaded)

die

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

associate

public void associate()
               throws Throwable
Specified by:
associate in interface org.apache.geronimo.transaction.InstanceContext
Overrides:
associate 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

beforeCommit

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

flush

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

setContext

public void setContext()
                throws Throwable
Throws:
Throwable

unsetContext

public void unsetContext()
                  throws Throwable
Throws:
Throwable

ejbActivate

protected void ejbActivate()
                    throws Throwable
Throws:
Throwable

ejbPassivate

protected void ejbPassivate()
                     throws Throwable
Throws:
Throwable

ejbLoad

protected void ejbLoad()
                throws Throwable
Throws:
Throwable

ejbStore

public void ejbStore()
              throws Throwable
Throws:
Throwable


Copyright © 1999-2006 OpenEJB. All Rights Reserved.