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

Inherits org.objectweb.jonas_ejb.deployment.api.EntityDesc.

Inherited by org.objectweb.jonas_ejb.deployment.api.EntityCmp1Desc, and org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EntityCmpDesc (ClassLoader classLoader, Entity ent, AssemblyDescriptor asd, JonasEntity jEnt, JLinkedList jMDRList, String fileName) throws DeploymentDescException
FieldDesc getCmpFieldDesc (String fieldName)
boolean hasSimplePkField ()
FieldDesc getSimplePkField ()
String getSimplePkFieldName ()
String getJdbcAutomaticPkFieldName ()
String toString ()

Protected Member Functions

FieldDesc newFieldDescInstance ()

Detailed Description

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

Helene Joanin

Jerome Camilleri : automatic PK

Definition at line 48 of file EntityCmpDesc.java.


Constructor & Destructor Documentation

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

constructor to be used by parent node.

Parameters:
classLoader class loader to use to laod bean's classes
ent entity in the standard deployment descriptor
asd assembly-descriptor in the standard deployment descriptor
jEnt jonas-entity in the JOnAS deployment descriptor
fileName jar or directory containing ejb
Exceptions:
DeploymentDescException in error case.

Definition at line 63 of file EntityCmpDesc.java.

References org.objectweb.jonas_ejb.deployment.xml.JdbcMapping.getAutomaticPk(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getEjbClass(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getIdentifier(), org.objectweb.jonas_ejb.deployment.xml.JdbcMapping.getJdbcAutomaticPkFieldName(), org.objectweb.jonas_ejb.deployment.api.FieldDesc.getName(), org.objectweb.jonas_ejb.deployment.api.EntityDesc.isUndefinedPK(), org.objectweb.jonas_ejb.deployment.api.FieldDesc.setName(), and org.objectweb.jonas_ejb.deployment.api.FieldDesc.setPrimaryKey().

Here is the call graph for this function:


Member Function Documentation

FieldDesc org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.getCmpFieldDesc String  fieldName  ) 
 

Get descriptor for a given field name Used by GenIC

Parameters:
fieldName Name of the field
Returns:
Descriptor for the given field or null

Definition at line 153 of file EntityCmpDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.fillMappingInfoWithDefault(), and org.objectweb.jonas_ejb.container.jorm.JormFactory.init().

String org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.getJdbcAutomaticPkFieldName  ) 
 

Get the associated field for auto genarated pk field specify by user

Returns:
Name of the field where automatic pk bean is stored

Definition at line 201 of file EntityCmpDesc.java.

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

FieldDesc org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.getSimplePkField  ) 
 

Get the primary key field for the entity.

Returns:
Field for the primary key

Definition at line 176 of file EntityCmpDesc.java.

References org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.getSimplePkFieldName().

Referenced by org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.fillMappingInfo().

Here is the call graph for this function:

String org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.getSimplePkFieldName  ) 
 

Get the primary key field name for the entity.

Returns:
Field for the primary key

Definition at line 185 of file EntityCmpDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.fillMappingInfoWithDefault(), and org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.getSimplePkField().

boolean org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.hasSimplePkField  ) 
 

Indicate if the primary key field is only one field with a primary-key-field defined in the DD.

Returns:
true if the primary key field is only one field with a primary-key-field defined in the DD.

Definition at line 163 of file EntityCmpDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.fillMappingInfo(), and org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.fillMappingInfoWithDefault().

FieldDesc org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.newFieldDescInstance  )  [protected]
 

factory method for field descriptors

Returns:
a FieldDesc.

Reimplemented in org.objectweb.jonas_ejb.deployment.api.EntityJdbcCmp2Desc.

Definition at line 231 of file EntityCmpDesc.java.

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

String representation of the object for test purpose

Returns:
String representation of this object

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

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

Definition at line 212 of file EntityCmpDesc.java.

References org.objectweb.jonas_ejb.deployment.api.FieldDesc.getName(), and org.objectweb.jonas_ejb.deployment.api.FieldDesc.toString().

Here is the call graph for this function:


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