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

Inherits org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.

Inherited by org.objectweb.jonas_ejb.deployment.api.EntityJdbcCmp2Desc.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EntityCmp2Desc (ClassLoader classLoader, Entity ent, AssemblyDescriptor asd, JonasEntity jEnt, DeploymentDescEjb2 dc2d, JLinkedList jMDRList, String fileName) throws DeploymentDescException
String getAbstractSchemaName ()
String getJormClassName ()
Collection getJormList ()
void addToJormList (MetaObject jobject)
void addEjbRelationshipRoleDesc (EjbRelationshipRoleDesc ersrd)
Iterator getEjbRelationshipRoleDescIterator ()
EjbRelationshipRoleDesc getEjbRelationshipRoleDesc (String cmr)
String getJormAccessorClassName ()
String getJormBindingClassName ()
String getFactoryClassName ()
String getJormPKClassName ()
String getJormPNameGetterClassName ()
String getJormBinderClassName ()
boolean needJormCoherenceHelper ()
String toString ()

Protected Member Functions

MethodDesc newMethodDescInstance (Method meth, int index)

Detailed Description

Class to hold meta-information related to an entity of type CMP version 2. Created on Jun 24, 2002
Author:
Christophe Ney [cney@batisseurs.com] : Initial developper

Helene Joanin : code cleanup on May 2003

Helene Joanin : complement for legacy first version on May 2003

Definition at line 52 of file EntityCmp2Desc.java.


Constructor & Destructor Documentation

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

constructor: called when the DeploymentDescriptor is read. Currently, called by both GenIC and createContainer.

Definition at line 75 of file EntityCmp2Desc.java.

References org.objectweb.jonas_ejb.deployment.api.MethodDesc.APPLY_TO_NOTHING, org.objectweb.jonas_ejb.deployment.xml.Query.getEjbQl(), org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.getJdbcAutomaticPkFieldName(), org.objectweb.jonas_ejb.deployment.api.MethodDesc.getMethod(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getMethodDescIterator(), org.objectweb.jonas_ejb.deployment.xml.QueryMethod.getMethodName(), org.objectweb.jonas_ejb.deployment.xml.QueryMethod.getMethodParams(), org.objectweb.jonas_ejb.deployment.xml.Query.getQueryMethod(), org.objectweb.jonas_ejb.deployment.xml.Query.getResultTypeMapping(), org.objectweb.jonas_ejb.deployment.api.MethodDesc.isEjbSelect, org.objectweb.jonas_ejb.deployment.api.MethodDesc.isFindByPrimaryKey, org.objectweb.jonas_ejb.deployment.api.MethodDesc.isFinder, org.objectweb.jonas_ejb.deployment.api.EntityDesc.isUndefinedPK(), org.objectweb.jonas_ejb.deployment.api.MethodDesc.matchPattern(), org.objectweb.jonas_ejb.deployment.api.FieldDesc.setFieldType(), org.objectweb.jonas_ejb.deployment.api.FieldDesc.setName(), org.objectweb.jonas_ejb.deployment.api.FieldDesc.setPrimaryKey(), and org.objectweb.jonas_ejb.deployment.xml.Query.setResultTypeMapping().

Here is the call graph for this function:


Member Function Documentation

void org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.addEjbRelationshipRoleDesc EjbRelationshipRoleDesc  ersrd  ) 
 

Add meta-info of a relationship in which the bean is involved

Definition at line 243 of file EntityCmp2Desc.java.

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

void org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.addToJormList MetaObject  jobject  ) 
 

add a Jorm MetaObject in the list of Jorm Meta Objects to generate

Parameters:
jobject the Jorm MetaObject to add in the list

Definition at line 236 of file EntityCmp2Desc.java.

String org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getAbstractSchemaName  ) 
 

getter for field abstractSchemaName

Definition at line 196 of file EntityCmp2Desc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.EntityJdbcCmp2Desc.EntityJdbcCmp2Desc(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.fillMappingInfoWithDefault(), org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.fillMappingInfoWithDefault(), and org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.toString().

EjbRelationshipRoleDesc org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getEjbRelationshipRoleDesc String  cmr  ) 
 

Get the EjbRelationshipRoleDesc corresponding to the given cmr field name. Return null if it doesn't exist.

Definition at line 259 of file EntityCmp2Desc.java.

References org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.getCmrFieldName(), and org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.hasCmrField().

Here is the call graph for this function:

Iterator org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getEjbRelationshipRoleDescIterator  ) 
 

Get Iterator on meta-info for all relationships for which the bean is involved in.

Definition at line 251 of file EntityCmp2Desc.java.

Referenced by org.objectweb.jonas_ejb.genic.VContextFactory.create(), and org.objectweb.jonas_ejb.container.jorm.JormFactory.init().

String org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getFactoryClassName  ) 
 

It retrieves the class name of the generated Jorm mapping. Used in the JContainer to instanciate the JEntityFactory

Returns:
the fully qualified class name

Definition at line 303 of file EntityCmp2Desc.java.

References org.objectweb.jonas_ejb.deployment.api.MethodDesc.getClassName().

Referenced by org.objectweb.jonas_ejb.container.JContainer.addBean().

Here is the call graph for this function:

String org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getJormAccessorClassName  ) 
 

It retrieves the class name of the generated Jorm accessor interface. Used in the templates

Returns:
the fully qualified class name

Definition at line 282 of file EntityCmp2Desc.java.

References org.objectweb.jonas_ejb.deployment.api.MethodDesc.getClassName().

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

Here is the call graph for this function:

String org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getJormBinderClassName  ) 
 

It retrieves the class name of the generated Jorm Binder. Used in the Jorm Factory

Returns:
the fully qualified class name

Definition at line 337 of file EntityCmp2Desc.java.

References org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getJormPKClassName().

Referenced by org.objectweb.jonas_ejb.container.jorm.JormFactory.init().

Here is the call graph for this function:

String org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getJormBindingClassName  ) 
 

It retrieves the class name of the generated Jorm binding. Used by the JormFactory

Returns:
the fully qualified class name

Definition at line 294 of file EntityCmp2Desc.java.

References org.objectweb.jonas_ejb.deployment.api.MethodDesc.getClassName().

Here is the call graph for this function:

String org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getJormClassName  ) 
 

Get the Jorm Fully Qualified Class name in JOrm Meta Info It is built from the Abstract Shema Name.

Returns:
the Jorm Class Name

Definition at line 217 of file EntityCmp2Desc.java.

Referenced by org.objectweb.jonas_ejb.lib.EjbqlQueryTreeHolder.EjbqlQueryTreeHolder().

Collection org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getJormList  ) 
 

Get the list of Jorm MetaObjects to be generated

Returns:
a Collection of Jorm Meta Objects

Definition at line 228 of file EntityCmp2Desc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.generate().

String org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getJormPKClassName  ) 
 

Retrieves the Jorm PK Class, in case of composite PK Used by Jorm to generate PNameGetter and Binder classes

Returns:
the fully qualified class name

Definition at line 312 of file EntityCmp2Desc.java.

References org.objectweb.jonas_ejb.deployment.api.MethodDesc.getClassName().

Referenced by org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getJormBinderClassName(), and org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getJormPNameGetterClassName().

Here is the call graph for this function:

String org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getJormPNameGetterClassName  ) 
 

It retrieves the class name of the generated Jorm PNameGetter interface. Used in the templates to generate CMP2 classes.

Returns:
the fully qualified class name

Definition at line 325 of file EntityCmp2Desc.java.

References org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getJormPKClassName().

Here is the call graph for this function:

boolean org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.needJormCoherenceHelper  ) 
 

Returns:
true if at least one relation

Definition at line 351 of file EntityCmp2Desc.java.

Referenced by org.objectweb.jonas_ejb.genic.BeanSources.BeanSources(), and org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.toString().

MethodDesc org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.newMethodDescInstance Method  meth,
int  index
[protected]
 

Factory method for MethodDesc. Only method with EJBQL queries are of type MethodCmp2Desc

Definition at line 273 of file EntityCmp2Desc.java.

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

String representation of the object for test and debug purpose

Returns:
String representation of this object

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

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

Definition at line 374 of file EntityCmp2Desc.java.

References org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getAbstractSchemaName(), org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getJormAccessorClassName(), org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.needJormCoherenceHelper(), and org.objectweb.jonas_ejb.deployment.api.MethodDesc.toString().

Referenced by org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.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:15 2005 for JOnAS by  doxygen 1.3.9.1