org.objectweb.jonas_ejb.lib
Class RdbMappingBuilder

java.lang.Object
  |
  +--org.objectweb.jonas_ejb.lib.RdbMappingBuilder
All Implemented Interfaces:
MappingBuilder

public class RdbMappingBuilder
extends java.lang.Object
implements MappingBuilder

This class is an implementation of the MappingBuilder interface for the rdb mapper.

Author:
Sebastien Chassande-Barrioz

Field Summary
static java.lang.String MAPPER_NAME
          This implementation is linked to the rdb mapper.
 
Constructor Summary
RdbMappingBuilder()
           
 
Method Summary
 void createClassMapping(org.objectweb.jorm.metainfo.api.Class clazz, EntityCmp2Desc bd, java.lang.String projectName)
          It call the createClassMapping method on the class parameter in order to create ClassMapping object specialized for a mapper type.
 void createClassMapping(org.objectweb.jorm.metainfo.api.GenClassRef gcr, EjbRelationshipRoleDesc rsrd, java.lang.String projectName)
          It call the createClassMapping method on the GenClassRef parameter in order to create ClassMapping object specialized for a mapper type.
 void createValueMapping(org.objectweb.jorm.metainfo.api.PrimitiveElement pe, FieldDesc desc, EjbRelationshipRoleDesc rsrd, byte type, java.lang.String projectName)
          It call the createValueMapping method on the PrimitiveElement parameter in order to create ValueMapping object specialized for a mapper type.
 void createValueMapping(org.objectweb.jorm.metainfo.api.PrimitiveElement pe, FieldDesc desc, java.lang.String projectName)
          It calls the createValueMapping method on the PrimitiveElement parameter in order to create ValueMapping object specialized for a mapper type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAPPER_NAME

public static final java.lang.String MAPPER_NAME
This implementation is linked to the rdb mapper.
Constructor Detail

RdbMappingBuilder

public RdbMappingBuilder()
Method Detail

createClassMapping

public void createClassMapping(org.objectweb.jorm.metainfo.api.Class clazz,
                               EntityCmp2Desc bd,
                               java.lang.String projectName)
Description copied from interface: MappingBuilder
It call the createClassMapping method on the class parameter in order to create ClassMapping object specialized for a mapper type. The EntityCmp2Desc contains all information needed to fill the ClassMapping.
Specified by:
createClassMapping in interface MappingBuilder
Following copied from interface: org.objectweb.jonas_ejb.lib.MappingBuilder
Parameters:
clazz - is the jorm meta object which the method must define a ClassMapping
bd - is the jonas meta object which contains the data needed to fill the ClassMapping.
mappingName - is the name of the mapping which must be used to create the ClassMapping

createValueMapping

public void createValueMapping(org.objectweb.jorm.metainfo.api.PrimitiveElement pe,
                               FieldDesc desc,
                               java.lang.String projectName)
Description copied from interface: MappingBuilder
It calls the createValueMapping method on the PrimitiveElement parameter in order to create ValueMapping object specialized for a mapper type. The FieldDesc contains all information needed to fill the ValueMapping.
Specified by:
createValueMapping in interface MappingBuilder
Following copied from interface: org.objectweb.jonas_ejb.lib.MappingBuilder
Parameters:
pe - is the jorm meta object which the method must define a ValueMapping
desc - is the jonas meta object which contains the data needed to fill the ValueMapping.
mappingName - is the name of the mapping which must be used to create the ValueMapping

createClassMapping

public void createClassMapping(org.objectweb.jorm.metainfo.api.GenClassRef gcr,
                               EjbRelationshipRoleDesc rsrd,
                               java.lang.String projectName)
Description copied from interface: MappingBuilder
It call the createClassMapping method on the GenClassRef parameter in order to create ClassMapping object specialized for a mapper type. This ClassMapping builder is specialized for the relationship. The EntityCmp2Desc contains all information needed to fill the ClassMapping.
Specified by:
createClassMapping in interface MappingBuilder
Following copied from interface: org.objectweb.jonas_ejb.lib.MappingBuilder
Parameters:
clazz - is the jorm meta object which the method must define a ClassMapping
rsrd - is the jonas meta object which contains the data needed to fill the ClassMapping.
mappingName - is the name of the mapping which must be used to create the ClassMapping

createValueMapping

public void createValueMapping(org.objectweb.jorm.metainfo.api.PrimitiveElement pe,
                               FieldDesc desc,
                               EjbRelationshipRoleDesc rsrd,
                               byte type,
                               java.lang.String projectName)
Description copied from interface: MappingBuilder
It call the createValueMapping method on the PrimitiveElement parameter in order to create ValueMapping object specialized for a mapper type. This ValueMapping builder is specialized for the relationship. The FieldDesc and the EjbRelationshipRoleDesc contains all information needed to fill the ValueMapping.
Specified by:
createValueMapping in interface MappingBuilder
Following copied from interface: org.objectweb.jonas_ejb.lib.MappingBuilder
Parameters:
pe - is the jorm meta object which the method must define a ValueMapping
desc - is the jonas meta object which contains the data needed to fill the ValueMapping.
mappingName - is the name of the mapping which must be used to create the ValueMapping