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

Inherits org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DeploymentDescEjb2 (ClassLoader classLoader, EjbJar ejbJar, JonasEjbJar jonasEjbJar, Logger l, String fileName) throws DeploymentDescException
Manager getJormManager () throws DeploymentDescException
Iterator getEjbRelationDescIterator ()
String toString ()

Protected Member Functions

BeanDesc newEntityBeanDesc (ClassLoader classLoader, Entity ent, AssemblyDescriptor asd, JonasEntity jEnt, JLinkedList jMDRList) throws DeploymentDescException

Detailed Description

Class to hold meta-information related to the deployment of an ejb-jar This subclass is for specification EJB 2.x, i.e. CMP2 persistance and MDB. It is also responsible for loading the Jorm Meta Information.
Author:
S.Chassande-Barrioz : Initial developer

Christophe Ney [cney@batisseurs.com]

Philippe Durieux (new Jorm mapping)

Definition at line 55 of file DeploymentDescEjb2.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.DeploymentDescEjb2 ClassLoader  classLoader,
EjbJar  ejbJar,
JonasEjbJar  jonasEjbJar,
Logger  l,
String  fileName
throws DeploymentDescException
 

Build the Meta-Information from the XML data binding trees containing the EJB and JOnAS deployment descriptors.

Parameters:
classLoader The Class Loader to be used
ejbJar The EjbJar information, from standard deployment descriptor.
jonasEjbJar The JonasEjbJar information, from JOnAS specific deployment descriptor.
l The logger to be used for tracing
FileName deployment desc's jar or directory name
Exceptions:
DeploymentDescException Error when building the Deployment Descriptor

Definition at line 77 of file DeploymentDescEjb2.java.

References org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.addEjbRelationshipRoleDesc(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.check(), org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.fillMappingInfo(), org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.fillMappingInfoWithDefault(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getEjbName(), org.objectweb.jonas_ejb.deployment.xml.CommonEjb.getEjbName(), org.objectweb.jonas_ejb.deployment.xml.JonasCommonEjb.getEjbName(), org.objectweb.jonas_ejb.deployment.xml.JonasEjbRelation.getEjbRelationName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getLocalClass(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getLocalHomeClass(), org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.getName(), org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.getRelationshipRole1(), org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.getRelationshipRole2(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.getSourceBeanName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.setDeploymentDesc(), org.objectweb.jonas_ejb.deployment.api.EjbRelationDesc.setJonasInfo(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.setSourceBean(), and org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.setTargetBean().

Here is the call graph for this function:


Member Function Documentation

Iterator org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.getEjbRelationDescIterator  ) 
 

Get iterator of meta-info for all defined relations

Returns:
an iterator of EjbRelationDesc

Definition at line 251 of file DeploymentDescEjb2.java.

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

Manager org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.getJormManager  )  throws DeploymentDescException
 

get the JORM Manager At first call, loads all the meta information for entity beans CMP2

Returns:
The Jorm Manager
Exceptions:
DeploymentDescException Cannot build Jorm Meta Information

Definition at line 240 of file DeploymentDescEjb2.java.

References org.objectweb.jonas_ejb.lib.RdbMappingBuilder.getJormMIManager().

Referenced by org.objectweb.jonas_ejb.lib.EjbqlQueryTreeHolder.EjbqlQueryTreeHolder(), org.objectweb.jonas_ejb.lib.EjbqlVariableVisitor.EjbqlVariableVisitor(), and org.objectweb.jonas_ejb.container.jorm.MedorFactory.init().

Here is the call graph for this function:

BeanDesc org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.newEntityBeanDesc ClassLoader  classLoader,
Entity  ent,
AssemblyDescriptor  asd,
JonasEntity  jEnt,
JLinkedList  jMDRList
throws DeploymentDescException [protected, virtual]
 

In case of beans with old CMP1 persistance, we need to instanciate the old class, as if we were in an old Deployment Descriptor. Default is CMP2.x for entity beans with a EJB2.0 DD.

Parameters:
classLoader The ClassLoader to be used
ent Entity MetaInformation from XML files
asd AssemblyDescriptor MetaInformation from XML files
jEnt JonasEntity MetaInformation from XML files
Returns:
The Entity Bean Descriptor, for the good CMP version.
Exceptions:
DeploymentDescException Cannot build Entity Descriptor

Implements org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.

Definition at line 220 of file DeploymentDescEjb2.java.

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

String representation of the object for test purpose

Returns:
String representation of this object

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

Definition at line 259 of file DeploymentDescEjb2.java.

References org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.getEjbRelationDescIterator().

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