org.objectweb.jonas_ejb.container.jorm.JormFactory Class Reference

Inherits org.objectweb.jonas_ejb.container.JEntityFactory.

Inherited by org.objectweb.jonas_ejb.container.jorm.MedorFactory.

Inheritance diagram for org.objectweb.jonas_ejb.container.jorm.JormFactory:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.container.jorm.JormFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JormFactory ()
void init (EntityDesc ed, JContainer c, String mapperName)
PMapper getMapper ()
void configurePnc (String n, PNamingContext pnc, boolean isMultiple) throws PException
void stop ()
JEntitySwitch getJEntitySwitch ()
Serializable encodePK (Serializable pk)
Serializable decodePK (Serializable strpk)

Protected Member Functions

org.objectweb.jonas_ejb.container.JEntityContext createNewContext (EntityBean bean)
PClassMapping newGCMInstance (String mapperName) throws Exception

Detailed Description

This class is an extension of the JEntityFactory class. It initializes the persitant class (the bean) in the jorm mapper. This class is abstract in order to be extended by the PClassMapping generated for the Bean.

Author:
Sebastien Chassande-Barrioz

Definition at line 64 of file JormFactory.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.jorm.JormFactory.JormFactory  ) 
 

constructor

Definition at line 74 of file JormFactory.java.


Member Function Documentation

void org.objectweb.jonas_ejb.container.jorm.JormFactory.configurePnc String  n,
PNamingContext  pnc,
boolean  isMultiple
throws PException
 

It assignes the PNamingContext which manages a relation.

Parameters:
n 
pnc 
isMultiple 

Definition at line 235 of file JormFactory.java.

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

org.objectweb.jonas_ejb.container.JEntityContext org.objectweb.jonas_ejb.container.jorm.JormFactory.createNewContext EntityBean  bean  )  [protected]
 

This method is overrided in order to specify the JEntityContext class which must be instanciated. Create a new instance of the bean and its EntityContext In case of CMP, the bean class is derived to manage entity persistence.

Reimplemented from org.objectweb.jonas_ejb.container.JEntityFactory.

Definition at line 311 of file JormFactory.java.

References org.objectweb.jonas_ejb.container.jorm.JEntityContext.JEntityContext().

Here is the call graph for this function:

Serializable org.objectweb.jonas_ejb.container.jorm.JormFactory.decodePK Serializable  strpk  ) 
 

Decode String to a PName

Returns:
PName matching the String

Reimplemented from org.objectweb.jonas_ejb.container.JEntityFactory.

Definition at line 365 of file JormFactory.java.

Serializable org.objectweb.jonas_ejb.container.jorm.JormFactory.encodePK Serializable  pk  ) 
 

Encode PK in case of CMP2

Returns:
String representation of the PName

Reimplemented from org.objectweb.jonas_ejb.container.JEntityFactory.

Definition at line 352 of file JormFactory.java.

JEntitySwitch org.objectweb.jonas_ejb.container.jorm.JormFactory.getJEntitySwitch  ) 
 

This method allocates a new JEntitySwitch. But no association has been done between the primary key and the new JEntitySwitch. Therefore the initialisation is not done.

Returns:
The JEntitySwitch.

Reimplemented from org.objectweb.jonas_ejb.container.JEntityFactory.

Definition at line 315 of file JormFactory.java.

References org.objectweb.jonas_ejb.container.JContainer.getClassLoader(), and org.objectweb.jonas_ejb.container.JFactory.getContainer().

Here is the call graph for this function:

PMapper org.objectweb.jonas_ejb.container.jorm.JormFactory.getMapper  ) 
 

Returns:
mapper

Definition at line 225 of file JormFactory.java.

void org.objectweb.jonas_ejb.container.jorm.JormFactory.init EntityDesc  ed,
JContainer  c,
String  mapperName
 

Initialization of the factory. This is called just after the newInstance() from the JContainer (addBean method)

Reimplemented in org.objectweb.jonas_ejb.container.jorm.MedorFactory, and org.objectweb.jonas_ejb.container.jorm.RdbFactory.

Definition at line 86 of file JormFactory.java.

References org.objectweb.jonas_ejb.container.jorm.JormFactory.configurePnc(), org.objectweb.jonas_ejb.container.JContainer.getBeanFactory(), org.objectweb.jonas_ejb.container.JContainer.getClassLoader(), org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.getCmpFieldDesc(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.getCmrFieldName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getEjbName(), org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getEjbRelationshipRoleDescIterator(), org.objectweb.jonas_ejb.deployment.api.EntityCmp2Desc.getJormBinderClassName(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.getName(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.getOppositeRelationshipRole(), org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.getPrimaryKeyFieldName(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.getRelation(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.getSourceBean(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.getTargetBean(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.hasCmrField(), org.objectweb.jonas_ejb.deployment.api.EntityCmpDesc.hasPrimaryKeyField(), org.objectweb.jonas_ejb.deployment.api.EjbRelationshipRoleDesc.isTargetMultiple, and org.objectweb.jonas_ejb.container.jorm.JormFactory.newGCMInstance().

Here is the call graph for this function:

PClassMapping org.objectweb.jonas_ejb.container.jorm.JormFactory.newGCMInstance String  mapperName  )  throws Exception [protected]
 

Create a GenClassMapping

Parameters:
mapperName name of the mapper

Definition at line 339 of file JormFactory.java.

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

void org.objectweb.jonas_ejb.container.jorm.JormFactory.stop  ) 
 

stop this EJB. Mainly unregister it in JNDI.

Reimplemented from org.objectweb.jonas_ejb.container.JEntityFactory.

Definition at line 294 of file JormFactory.java.


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