org.objectweb.jonas_ejb.deployment.api.EntityDesc Class Reference

Inherits org.objectweb.jonas_ejb.deployment.api.BeanDesc.

Inherited by org.objectweb.jonas_ejb.deployment.api.EntityBmpDesc, and org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.

Inheritance diagram for org.objectweb.jonas_ejb.deployment.api.EntityDesc:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.deployment.api.EntityDesc:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EntityDesc (ClassLoader classLoader, Entity ent, AssemblyDescriptor asd, JonasEntity jEnt, JLinkedList jMDRList, String fileName) throws DeploymentDescException
int getCleanupPolicy ()
int getLockPolicy ()
int getPassivationTimeout ()
int getInactivityTimeout ()
Class getPrimaryKeyClass ()
boolean isReentrant ()
boolean isShared ()
boolean isPrefetch ()
boolean isAutomaticPk ()
boolean isUndefinedPK ()
String toString ()

Protected Member Functions

void checkTxAttribute (MethodDesc md) throws DeploymentDescException

Protected Attributes

Class primaryKeyClass

Static Protected Attributes

final String METHODS_REMOTE_NO_TX = ",getEJBHome,getHandle,getPrimaryKey,isIdentical,"
final String METHODS_HOME_NO_TX = ",getEJBMetaData,getHomeHandle,"

Detailed Description

Base class to hold meta-information related to an entity bean.
Author:
Christophe Ney [cney@batisseurs.com] : Initial developer

Helene Joanin

Helene Joanin: take into account ejbSelect() methods.

Helene Joanin: unsetting transaction attribute set to a default value.

Definition at line 47 of file EntityDesc.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.deployment.api.EntityDesc.EntityDesc ClassLoader  classLoader,
Entity  ent,
AssemblyDescriptor  asd,
JonasEntity  jEnt,
JLinkedList  jMDRList,
String  fileName
throws DeploymentDescException
 

constructor to be used by parent node

Definition at line 93 of file EntityDesc.java.

References org.objectweb.jonas_ejb.deployment.api.BeanDesc.getEjbName(), org.objectweb.jonas_ejb.deployment.api.MethodDesc.getMethod(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getMethodDescIterator(), org.objectweb.jonas_ejb.deployment.api.MethodDesc.getTxAttribute(), and org.objectweb.jonas_ejb.deployment.api.EntityDesc.primaryKeyClass.

Here is the call graph for this function:


Member Function Documentation

void org.objectweb.jonas_ejb.deployment.api.EntityDesc.checkTxAttribute MethodDesc  md  )  throws DeploymentDescException [protected, virtual]
 

check that trans-attribute is valid for bean

Implements org.objectweb.jonas_ejb.deployment.api.BeanDesc.

Definition at line 247 of file EntityDesc.java.

References org.objectweb.jonas_ejb.deployment.api.BeanDesc.getEjbName(), org.objectweb.jonas_ejb.deployment.api.MethodDesc.getMethod(), org.objectweb.jonas_ejb.deployment.api.EntityDesc.METHODS_HOME_NO_TX, and org.objectweb.jonas_ejb.deployment.api.EntityDesc.METHODS_REMOTE_NO_TX.

Here is the call graph for this function:

int org.objectweb.jonas_ejb.deployment.api.EntityDesc.getCleanupPolicy  ) 
 

Returns:
the cleanup policy for this bean

Definition at line 233 of file EntityDesc.java.

int org.objectweb.jonas_ejb.deployment.api.EntityDesc.getInactivityTimeout  ) 
 

Get the inactivity timeout value

Definition at line 287 of file EntityDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(), and org.objectweb.jonas_ejb.deployment.api.EntityDesc.toString().

int org.objectweb.jonas_ejb.deployment.api.EntityDesc.getLockPolicy  ) 
 

Returns:
the lock policy for this bean

Definition at line 240 of file EntityDesc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.generate(), and org.objectweb.jonas_ejb.container.JEntityFactory.init().

int org.objectweb.jonas_ejb.deployment.api.EntityDesc.getPassivationTimeout  ) 
 

Get the passivation timeout value

Definition at line 280 of file EntityDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.EntityDesc.toString().

Class org.objectweb.jonas_ejb.deployment.api.EntityDesc.getPrimaryKeyClass  ) 
 

Get the entity's primary key class.

Returns:
Class for the primary key

Definition at line 295 of file EntityDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.EntityDesc.toString().

boolean org.objectweb.jonas_ejb.deployment.api.EntityDesc.isAutomaticPk  ) 
 

Assessor for existence of automatic-pk element to True value

Parameters:
field public field of the bean class
Returns:
true if automatic-pk element value is true else otherwise false

Definition at line 326 of file EntityDesc.java.

boolean org.objectweb.jonas_ejb.deployment.api.EntityDesc.isPrefetch  ) 
 

Returns:
true for prefetch entity bean

Definition at line 317 of file EntityDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc.getPrefetch(), and org.objectweb.jonas_ejb.container.JEntityFactory.init().

boolean org.objectweb.jonas_ejb.deployment.api.EntityDesc.isReentrant  ) 
 

Assessor for reentrant entity bean

Returns:
true for reentrant entity bean

Definition at line 303 of file EntityDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(), and org.objectweb.jonas_ejb.deployment.api.EntityDesc.toString().

boolean org.objectweb.jonas_ejb.deployment.api.EntityDesc.isShared  ) 
 

Returns:
true for shared entity bean

Definition at line 310 of file EntityDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(), and org.objectweb.jonas_ejb.deployment.api.EntityDesc.toString().

boolean org.objectweb.jonas_ejb.deployment.api.EntityDesc.isUndefinedPK  ) 
 

Assessor for primary key undefined (declare like java.lang.Object type)

Parameters:
field public field of the bean class
Returns:
true if primary key is undefined (java.lang.Object type)

Definition at line 335 of file EntityDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.EntityCmp1Desc.EntityCmp1Desc(), org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.EntityCmp2Desc(), org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.EntityCmpDesc(), and org.objectweb.jonas_ejb.deployment.api.EntityJdbcCmp2Desc.EntityJdbcCmp2Desc().

String org.objectweb.jonas_ejb.deployment.api.EntityDesc.toString  ) 
 

String representation of the object for test purpose

Returns:
String representation of this object

Reimplemented from org.objectweb.jonas_ejb.deployment.api.BeanDesc.

Reimplemented in org.objectweb.jonas_ejb.deployment.api.EntityCmp1Desc, org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc, org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc, org.objectweb.jonas_ejb.deployment.api.EntityJdbcCmp1Desc, and org.objectweb.jonas_ejb.deployment.api.EntityJdbcCmp2Desc.

Definition at line 343 of file EntityDesc.java.

References org.objectweb.jonas_ejb.deployment.api.BeanDesc.getCacheMax(), org.objectweb.jonas_ejb.deployment.api.EntityDesc.getInactivityTimeout(), org.objectweb.jonas_ejb.deployment.api.EntityDesc.getPassivationTimeout(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getPoolMin(), org.objectweb.jonas_ejb.deployment.api.EntityDesc.getPrimaryKeyClass(), org.objectweb.jonas_ejb.deployment.api.EntityDesc.isReentrant(), and org.objectweb.jonas_ejb.deployment.api.EntityDesc.isShared().

Referenced by org.objectweb.jonas_ejb.deployment.api.MethodCmp2Desc.toString().

Here is the call graph for this function:


Member Data Documentation

final String org.objectweb.jonas_ejb.deployment.api.EntityDesc.METHODS_HOME_NO_TX = ",getEJBMetaData,getHomeHandle," [static, protected]
 

home methods for which no transaction attribute is to be set

Definition at line 58 of file EntityDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.EntityDesc.checkTxAttribute().

final String org.objectweb.jonas_ejb.deployment.api.EntityDesc.METHODS_REMOTE_NO_TX = ",getEJBHome,getHandle,getPrimaryKey,isIdentical," [static, protected]
 

remote methods for which no transaction attribute is to be set

Definition at line 53 of file EntityDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.EntityDesc.checkTxAttribute().

Class org.objectweb.jonas_ejb.deployment.api.EntityDesc.primaryKeyClass [protected]
 

This field contains the class name of the factory instanciate by the container.

Definition at line 64 of file EntityDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.EntityDesc.EntityDesc().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:11:17 2005 for JOnAS by  doxygen 1.3.9.1