org.objectweb.jonas_ejb.deployment.api
Class EntityDesc

java.lang.Object
  extended byorg.objectweb.jonas_ejb.deployment.api.BeanDesc
      extended byorg.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] contributor(s): - Helene Joanin: take into account ejbSelect() methods. - Helene Joanin: unsetting transaction attribute set to a default value.

Field Summary
protected  int cleanup
           
static int CLEANUP_CREATE
           
static int CLEANUP_NONE
           
static int CLEANUP_REMOVEALL
           
static int CLEANUP_REMOVEDATA
           
protected static java.lang.String METHODS_HOME_NO_TX
          home methods for which no transaction attribute is to be set
protected static java.lang.String METHODS_REMOTE_NO_TX
          remote methods for which no transaction attribute is to be set
protected  int passivationTimeout
           
protected  java.lang.Class primaryKeyClass
          This field contains the class name of the factory instanciate by the container.
protected  boolean reentrant
           
protected  boolean shared
           
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
BEAN_TRANSACTION_TYPE, cacheMax, CONTAINER_TRANSACTION_TYPE, deploymentDesc, derivedBeanName, displayName, ejb10EnvProps, ejbClass, ejbLocalRefDesc, ejbName, ejbRefDesc, envEntryDesc, fullDerivedBeanName, home, jndiName, local, localhome, poolMin, 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
 
Method Summary
protected  void checkTxAttribute(MethodDesc md)
          check that trans-attribute is valid for bean
 int getCleanupPolicy()
           
 int getPassivationTimeout()
          Get the passivation timeout value
 java.lang.Class getPrimaryKeyClass()
          Get the entity's primary key class.
 boolean isReentrant()
          Assessor for reentrant entity bean
 boolean isShared()
           
 java.lang.String toString()
          String representation of the object for test purpose
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
addMethodDesc, check, checkRemoteException, getCacheMax, getDeploymentDesc, getDerivedBeanName, getDisplayName, getEjb10Environment, getEjbClass, getEjbLocalRefDesc, getEjbName, getEjbRefDesc, getEnvEntryDesc, getFullDerivedBeanName, getFullWrpHandleName, getFullWrpHomeName, getFullWrpLocalHomeName, getFullWrpLocalName, getFullWrpRemoteName, getHomeClass, getIdentifierFromEjbName, getJndiLocalName, getJndiName, getLocalClass, getLocalHomeClass, getMethodDesc, getMethodDesc, getMethodDescIterator, getPoolMin, 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
 

Field Detail

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

See Also:
Constant Field Values

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

See Also:
Constant Field Values

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

CLEANUP_NONE

public static final int CLEANUP_NONE
See Also:
Constant Field Values

CLEANUP_CREATE

public static final int CLEANUP_CREATE
See Also:
Constant Field Values

CLEANUP_REMOVEDATA

public static final int CLEANUP_REMOVEDATA
See Also:
Constant Field Values

CLEANUP_REMOVEALL

public static final int CLEANUP_REMOVEALL
See Also:
Constant Field Values

cleanup

protected int cleanup
Constructor Detail

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

Method Detail

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

Specified by:
checkTxAttribute in class BeanDesc
Throws:
DeploymentDescException

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

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