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

Collaboration diagram for org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EjbRelationDesc (EjbRelation er, Logger logger) throws DeploymentDescException
void setJonasInfo (JonasEjbRelation jer) throws DeploymentDescException
String getName ()
EjbRelationshipRoleDesc getRelationshipRole1 ()
EjbRelationshipRoleDesc getRelationshipRole2 ()
boolean hasJdbcTable ()
String getJdbcTableName ()
String toString ()

Protected Member Functions

void fillMappingInfo () throws DeploymentDescException
void fillMappingInfoWithDefault ()

Detailed Description

Class to hold meta-information related to an ejb-relation.
Author:
Christophe Ney [cney@batisseurs.com] : Initial developer

Helene Joanin on May 2003: code cleanup

Helene Joanin on May 2003: complement for legacy first version

Ph Durieux (may 2004): default names for relations and roles.

Definition at line 45 of file EjbRelationDesc.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.EjbRelationDesc EjbRelation  er,
Logger  logger
throws DeploymentDescException
 

constructor to be used by parent node.

Parameters:
er The described object EjbRelation
logger The logger
Exceptions:
DeploymentDescException thrown in error case.

Definition at line 70 of file EjbRelationDesc.java.

References org.objectweb.jonas_ejb.deployment.xml.EjbRelationshipRole.getCmrField(), org.objectweb.jonas_ejb.deployment.xml.CmrField.getCmrFieldName(), org.objectweb.jonas_ejb.deployment.xml.EjbRelationshipRole.getEjbRelationshipRoleName(), and org.objectweb.jonas_ejb.deployment.xml.EjbRelationshipRole.setEjbRelationshipRoleName().

Here is the call graph for this function:


Member Function Documentation

void org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.fillMappingInfo  )  throws DeploymentDescException [protected]
 

Fills the mapping information of this relation with the values defined in jonas DD.

Exceptions:
DeploymentDescException thrown in error case.

Definition at line 195 of file EjbRelationDesc.java.

References org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.fillMappingInfo(), and org.objectweb.jonas_ejb.deployment.xml.JonasEjbRelation.getJdbcTableName().

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

Here is the call graph for this function:

void org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.fillMappingInfoWithDefault  )  [protected]
 

Fills the mapping information of this relation with default values, if the mapping information is not already initialized.

Definition at line 211 of file EjbRelationDesc.java.

References org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getAbstractSchemaName(), and org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.getSourceBean().

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

Here is the call graph for this function:

String org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.getJdbcTableName  ) 
 

Return the table name in the database associated to this relation.

Returns:
the String name of the table associated to this relation.

Definition at line 292 of file EjbRelationDesc.java.

String org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.getName  ) 
 

get the name of the relationship.

Returns:
the String name of the relationship.

Definition at line 260 of file EjbRelationDesc.java.

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

EjbRelationshipRoleDesc org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.getRelationshipRole1  ) 
 

get the meta-information for the first relation-ship-role

Returns:
the EjbRelationshipRoleDesc for the first relation-ship-role

Definition at line 268 of file EjbRelationDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.DeploymentDescEjb2(), and org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.getOppositeRelationshipRole().

EjbRelationshipRoleDesc org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.getRelationshipRole2  ) 
 

get the meta-information for the second relation-ship-role

Returns:
the EjbRelationshipRoleDesc for the second relation-ship-role

Definition at line 276 of file EjbRelationDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.DeploymentDescEjb2(), and org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.getOppositeRelationshipRole().

boolean org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.hasJdbcTable  ) 
 

Is a table in the database is defined for this relation ?

Returns:
true if table name in the database is defined for this relation.

Definition at line 284 of file EjbRelationDesc.java.

void org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.setJonasInfo JonasEjbRelation  jer  )  throws DeploymentDescException
 

Finish initialisation

Parameters:
jer The described object JonasEjbRelation. This param may be null.
Exceptions:
DeploymentDescException in error case

Definition at line 131 of file EjbRelationDesc.java.

References org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.cmrFieldType, org.objectweb.jonas_ejb.deployment.xml.JonasEjbRelationshipRole.getEjbRelationshipRoleName(), org.objectweb.jonas_ejb.deployment.xml.JonasEjbRelation.getJonasEjbRelationshipRoleList(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.getName(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.hasCmrField(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.isTargetMultiple, org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.setCmrFieldName(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.setCmrFieldType(), and org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.setIsJOnASCmrField().

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

Here is the call graph for this function:

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

String representation of the object for test purpose

Returns:
String representation of this object

Definition at line 300 of file EjbRelationDesc.java.

References 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:11 2005 for JOnAS by  doxygen 1.3.9.1