org.objectweb.jonas_ejb.deployment.api
Class EntityDesc
java.lang.Object
|
+--org.objectweb.jonas_ejb.deployment.api.BeanDesc
|
+--org.objectweb.jonas_ejb.deployment.api.EntityDesc
- Direct Known Subclasses:
- EntityBmpDesc, EntityCmpDesc
- public abstract class EntityDesc
- extends BeanDesc
Base class to hold meta-information related to an entity bean.
- Author:
- Christophe Ney [cney@batisseurs.com]
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc |
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE, deploymentDesc, derivedBeanName, displayName, ejb10EnvProps, ejbClass, ejbLocalRefDesc, ejbName, ejbRefDesc, envEntryDesc, fullDerivedBeanName, home, jndiName, local, localhome, remote, resourceEnvRefDesc, resourceRefDesc, securityRoleRef, TRANS |
Constructor Summary |
EntityDesc(java.lang.ClassLoader classLoader,
org.objectweb.jonas_ejb.deployment.xml.Entity ent,
org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor asd,
org.objectweb.jonas_ejb.deployment.xml.JonasEntity jEnt)
constructor to be used by parent node |
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc |
addMethodDesc, check, checkRemoteException, getDeploymentDesc, getDerivedBeanName, getDisplayName, getEjb10Environment, getEjbClass, getEjbLocalRefDesc, getEjbName, getEjbRefDesc, getEnvEntryDesc, getFullDerivedBeanName, getFullWrpHandleName, getFullWrpHomeName, getFullWrpLocalHomeName, getFullWrpLocalName, getFullWrpRemoteName, getHomeClass, getIdentifierFromEjbName, getJndiLocalName, getJndiName, getLocalClass, getLocalHomeClass, getMethodDesc, getMethodDesc, getMethodDescIterator, getRemoteClass, getResourceEnvRefDesc, getResourceRefDesc, getRoleLink, getSecurityRoleNames, getWrpHandleName, getWrpHomeName, getWrpLocalHomeName, getWrpLocalName, getWrpRemoteName, newMethodDescInstance, setDeploymentDesc, verifyRoleName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
METHODS_REMOTE_NO_TX
protected static final java.lang.String METHODS_REMOTE_NO_TX
- remote methods for which no transaction attribute is to be set
METHODS_HOME_NO_TX
protected static final java.lang.String METHODS_HOME_NO_TX
- home methods for which no transaction attribute is to be set
primaryKeyClass
protected java.lang.Class primaryKeyClass
- This field contains the class name of the factory instanciate by the
container.
reentrant
protected boolean reentrant
passivationTimeout
protected int passivationTimeout
shared
protected boolean shared
poolMin
protected int poolMin
cacheMax
protected int cacheMax
CLEANUP_NONE
public static final int CLEANUP_NONE
CLEANUP_CREATE
public static final int CLEANUP_CREATE
CLEANUP_REMOVEDATA
public static final int CLEANUP_REMOVEDATA
CLEANUP_REMOVEALL
public static final int CLEANUP_REMOVEALL
cleanup
protected int cleanup
EntityDesc
public EntityDesc(java.lang.ClassLoader classLoader,
org.objectweb.jonas_ejb.deployment.xml.Entity ent,
org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor asd,
org.objectweb.jonas_ejb.deployment.xml.JonasEntity jEnt)
throws DeploymentDescException
- constructor to be used by parent node
getCleanupPolicy
public int getCleanupPolicy()
- Returns:
- the cleanup policy for this bean
checkTxAttribute
protected void checkTxAttribute(MethodDesc md)
throws DeploymentDescException
- check that trans-attribute is valid for bean
- Overrides:
checkTxAttribute
in class BeanDesc
getPassivationTimeout
public int getPassivationTimeout()
- Get the passivation timeout value
getPrimaryKeyClass
public java.lang.Class getPrimaryKeyClass()
- Get the entity's primary key class.
- Returns:
- Class for the primary key
isReentrant
public boolean isReentrant()
- Assessor for reentrant entity bean
- Returns:
- true for reentrant entity bean
isShared
public boolean isShared()
- Returns:
- true for shared entity bean
getPoolMin
public int getPoolMin()
- Returns:
- min size of the pool
getCacheMax
public int getCacheMax()
- Returns:
- max size of the cache
toString
public java.lang.String toString()
- String representation of the object for test purpose
- Overrides:
toString
in class BeanDesc
- Returns:
- String representation of this object