|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openejb.core.cmp.CmpContainer
public class CmpContainer
Field Summary | |
---|---|
protected CmpEngine |
cmpEngine
The CmpEngine which performs the actual persistence operations |
protected Object |
containerID
|
protected Map<Class,DeploymentInfo> |
deploymentsByClass
When events are fired from the CMP engine only an entity bean instance is returned. |
protected Map<Object,DeploymentInfo> |
deploymentsById
Index used for getDeployments() and getDeploymentInfo(deploymentId). |
protected EntrancyTracker |
entrancyTracker
Tracks entity instances that have been "entered" so we can throw reentrancy exceptions. |
protected SecurityService |
securityService
|
protected TransactionSynchronizationRegistry |
synchronizationRegistry
|
Constructor Summary | |
---|---|
CmpContainer(Object id,
TransactionManager transactionManager,
SecurityService securityService,
String cmpEngineFactory)
|
Method Summary | |
---|---|
void |
deploy(CoreDeploymentInfo deploymentInfo)
|
void |
deploy(DeploymentInfo deploymentInfo)
|
DeploymentInfo[] |
deployments()
|
Object |
getContainerID()
|
ContainerType |
getContainerType()
|
DeploymentInfo |
getDeploymentInfo(Object deploymentID)
|
Object |
getEjbInstance(CoreDeploymentInfo deployInfo,
Object primaryKey)
|
Object |
getEjbInstance(DeploymentInfo deployInfo,
Object primaryKey)
|
Object |
invoke(Object deployID,
Class callInterface,
Method callMethod,
Object[] args,
Object primKey)
|
Object |
invoke(Object deployID,
InterfaceType type,
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. |
Object |
select(DeploymentInfo di,
String methodSignature,
String returnType,
Object... args)
|
void |
undeploy(CoreDeploymentInfo deploymentInfo)
|
void |
undeploy(DeploymentInfo deploymentInfo)
|
int |
update(DeploymentInfo di,
String methodSignature,
Object... args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Object containerID
protected final SecurityService securityService
protected final Map<Object,DeploymentInfo> deploymentsById
protected final Map<Class,DeploymentInfo> deploymentsByClass
protected final CmpEngine cmpEngine
protected EntrancyTracker entrancyTracker
protected TransactionSynchronizationRegistry synchronizationRegistry
Constructor Detail |
---|
public CmpContainer(Object id, TransactionManager transactionManager, SecurityService securityService, String cmpEngineFactory) throws OpenEJBException
OpenEJBException
Method Detail |
---|
public Object getContainerID()
getContainerID
in interface Container
public ContainerType getContainerType()
getContainerType
in interface Container
public DeploymentInfo[] deployments()
deployments
in interface Container
public DeploymentInfo getDeploymentInfo(Object deploymentID)
getDeploymentInfo
in interface Container
public void deploy(DeploymentInfo deploymentInfo) throws OpenEJBException
deploy
in interface Container
OpenEJBException
public void deploy(CoreDeploymentInfo deploymentInfo) throws OpenEJBException
OpenEJBException
public void undeploy(DeploymentInfo deploymentInfo) throws OpenEJBException
undeploy
in interface Container
OpenEJBException
public void undeploy(CoreDeploymentInfo deploymentInfo) throws OpenEJBException
OpenEJBException
public Object getEjbInstance(DeploymentInfo deployInfo, Object primaryKey)
public Object getEjbInstance(CoreDeploymentInfo deployInfo, Object primaryKey)
public Object invoke(Object deployID, Method callMethod, Object[] args, Object primKey, Object securityIdentity) throws OpenEJBException
invoke
in interface RpcContainer
OpenEJBException
public Object invoke(Object deployID, Class callInterface, Method callMethod, Object[] args, Object primKey) throws OpenEJBException
invoke
in interface RpcContainer
OpenEJBException
public Object invoke(Object deployID, InterfaceType type, Class callInterface, Method callMethod, Object[] args, Object primKey) throws OpenEJBException
invoke
in interface RpcContainer
OpenEJBException
public Object select(DeploymentInfo di, String methodSignature, String returnType, Object... args) throws javax.ejb.FinderException
javax.ejb.FinderException
public int update(DeploymentInfo di, String methodSignature, Object... args) throws javax.ejb.FinderException
javax.ejb.FinderException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |