org.apache.openejb.core.entity
Class EntityContainer
java.lang.Object
org.apache.openejb.core.entity.EntityContainer
- All Implemented Interfaces:
- Container, TransactionContainer, RpcContainer
public class EntityContainer
- extends Object
- implements RpcContainer, TransactionContainer
Method Summary |
protected ProxyInfo |
createEJBObject(Method callMethod,
Object[] args,
ThreadContext callContext)
|
void |
deploy(DeploymentInfo info)
|
DeploymentInfo[] |
deployments()
|
protected void |
didCreateBean(ThreadContext callContext,
javax.ejb.EntityBean bean)
|
protected void |
didRemove(javax.ejb.EntityBean bean,
ThreadContext threadContext)
|
void |
discardInstance(Object bean,
ThreadContext threadContext)
|
void |
ejbLoad_If_No_Transaction(ThreadContext callContext,
javax.ejb.EntityBean bean)
|
void |
ejbStore_If_No_Transaction(ThreadContext callContext,
javax.ejb.EntityBean bean)
|
protected Object |
findMethod(Method callMethod,
Object[] args,
ThreadContext callContext)
|
Object |
getContainerID()
|
ContainerType |
getContainerType()
|
DeploymentInfo |
getDeploymentInfo(Object deploymentID)
|
EntityInstanceManager |
getInstanceManager()
|
protected Object |
homeMethod(Method callMethod,
Object[] args,
ThreadContext callContext)
|
protected Object |
invoke(Method callMethod,
Method runMethod,
Object[] args,
ThreadContext callContext)
|
Object |
invoke(Object deployID,
Class callInterface,
Method callMethod,
Object[] args,
Object primKey)
|
Object |
invoke(Object deployID,
Method callMethod,
Object[] args,
Object primKey,
Object securityIdentity)
Deprecated. use invoke signature without 'securityIdentity' argument. |
protected void |
removeEJBObject(Method callMethod,
Object[] args,
ThreadContext callContext)
|
void |
undeploy(DeploymentInfo info)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static Logger logger
entrancyTracker
protected EntrancyTracker entrancyTracker
- Tracks entity instances that have been "entered" so we can throw reentrancy exceptions.
EntityContainer
public EntityContainer(Object id,
TransactionManager transactionManager,
SecurityService securityService,
int poolSize)
throws OpenEJBException
- Throws:
OpenEJBException
deployments
public DeploymentInfo[] deployments()
- Specified by:
deployments
in interface Container
getDeploymentInfo
public DeploymentInfo getDeploymentInfo(Object deploymentID)
- Specified by:
getDeploymentInfo
in interface Container
getContainerType
public ContainerType getContainerType()
- Specified by:
getContainerType
in interface Container
getContainerID
public Object getContainerID()
- Specified by:
getContainerID
in interface Container
deploy
public void deploy(DeploymentInfo info)
throws OpenEJBException
- Specified by:
deploy
in interface Container
- Throws:
OpenEJBException
undeploy
public void undeploy(DeploymentInfo info)
throws OpenEJBException
- Specified by:
undeploy
in interface Container
- Throws:
OpenEJBException
invoke
public Object invoke(Object deployID,
Method callMethod,
Object[] args,
Object primKey,
Object securityIdentity)
throws OpenEJBException
- Deprecated. use invoke signature without 'securityIdentity' argument.
- Specified by:
invoke
in interface RpcContainer
- Throws:
OpenEJBException
invoke
public Object invoke(Object deployID,
Class callInterface,
Method callMethod,
Object[] args,
Object primKey)
throws OpenEJBException
- Specified by:
invoke
in interface RpcContainer
- Throws:
OpenEJBException
getInstanceManager
public EntityInstanceManager getInstanceManager()
invoke
protected Object invoke(Method callMethod,
Method runMethod,
Object[] args,
ThreadContext callContext)
throws OpenEJBException
- Throws:
OpenEJBException
ejbLoad_If_No_Transaction
public void ejbLoad_If_No_Transaction(ThreadContext callContext,
javax.ejb.EntityBean bean)
throws Exception
- Throws:
Exception
ejbStore_If_No_Transaction
public void ejbStore_If_No_Transaction(ThreadContext callContext,
javax.ejb.EntityBean bean)
throws Exception
- Throws:
Exception
didCreateBean
protected void didCreateBean(ThreadContext callContext,
javax.ejb.EntityBean bean)
throws OpenEJBException
- Throws:
OpenEJBException
createEJBObject
protected ProxyInfo createEJBObject(Method callMethod,
Object[] args,
ThreadContext callContext)
throws OpenEJBException
- Throws:
OpenEJBException
findMethod
protected Object findMethod(Method callMethod,
Object[] args,
ThreadContext callContext)
throws OpenEJBException
- Throws:
OpenEJBException
homeMethod
protected Object homeMethod(Method callMethod,
Object[] args,
ThreadContext callContext)
throws OpenEJBException
- Throws:
OpenEJBException
didRemove
protected void didRemove(javax.ejb.EntityBean bean,
ThreadContext threadContext)
throws OpenEJBException
- Throws:
OpenEJBException
removeEJBObject
protected void removeEJBObject(Method callMethod,
Object[] args,
ThreadContext callContext)
throws OpenEJBException
- Throws:
OpenEJBException
discardInstance
public void discardInstance(Object bean,
ThreadContext threadContext)
- Specified by:
discardInstance
in interface TransactionContainer
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.