org.apache.openejb.core.entity
Class EntityInstanceManager

java.lang.Object
  extended by org.apache.openejb.core.entity.EntityInstanceManager

public class EntityInstanceManager
extends Object


Nested Class Summary
static class EntityInstanceManager.Key
           
protected  class EntityInstanceManager.SynchronizationWrapper
           
 
Field Summary
protected  EntityContainer container
           
 Logger logger
           
protected  Map<Object,LinkedListStack> poolMap
           
protected  int poolsize
           
protected  SafeToolkit toolkit
           
protected  Hashtable<Object,EntityInstanceManager.SynchronizationWrapper> txReadyPool
           
 
Constructor Summary
EntityInstanceManager(EntityContainer container, TransactionManager transactionManager, SecurityService securityService, int poolSize)
           
 
Method Summary
 void deploy(DeploymentInfo deploymentInfo)
           
 void discardInstance(ThreadContext callContext, javax.ejb.EntityBean bean)
           
 void freeInstance(ThreadContext callContext, javax.ejb.EntityBean bean)
           
protected  javax.ejb.EntityBean getPooledInstance(ThreadContext callContext)
           
protected  void loadingBean(javax.ejb.EntityBean bean, ThreadContext callContext)
           
 javax.ejb.EntityBean obtainInstance(ThreadContext callContext)
           
 void poolInstance(ThreadContext callContext, javax.ejb.EntityBean bean, Object primaryKey)
           
protected  void reusingBean(javax.ejb.EntityBean bean, ThreadContext callContext)
           
 void undeploy(DeploymentInfo deploymentInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

poolsize

protected int poolsize

container

protected EntityContainer container

txReadyPool

protected Hashtable<Object,EntityInstanceManager.SynchronizationWrapper> txReadyPool

poolMap

protected Map<Object,LinkedListStack> poolMap

logger

public Logger logger

toolkit

protected SafeToolkit toolkit
Constructor Detail

EntityInstanceManager

public EntityInstanceManager(EntityContainer container,
                             TransactionManager transactionManager,
                             SecurityService securityService,
                             int poolSize)
Method Detail

deploy

public void deploy(DeploymentInfo deploymentInfo)

undeploy

public void undeploy(DeploymentInfo deploymentInfo)

obtainInstance

public javax.ejb.EntityBean obtainInstance(ThreadContext callContext)
                                    throws OpenEJBException
Throws:
OpenEJBException

loadingBean

protected void loadingBean(javax.ejb.EntityBean bean,
                           ThreadContext callContext)
                    throws OpenEJBException
Throws:
OpenEJBException

reusingBean

protected void reusingBean(javax.ejb.EntityBean bean,
                           ThreadContext callContext)
                    throws OpenEJBException
Throws:
OpenEJBException

getPooledInstance

protected javax.ejb.EntityBean getPooledInstance(ThreadContext callContext)
                                          throws OpenEJBException
Throws:
OpenEJBException

poolInstance

public void poolInstance(ThreadContext callContext,
                         javax.ejb.EntityBean bean,
                         Object primaryKey)
                  throws OpenEJBException
Throws:
OpenEJBException

freeInstance

public void freeInstance(ThreadContext callContext,
                         javax.ejb.EntityBean bean)
                  throws SystemException
Throws:
SystemException

discardInstance

public void discardInstance(ThreadContext callContext,
                            javax.ejb.EntityBean bean)
                     throws SystemException
Throws:
SystemException


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.