org.objectweb.jonas_ejb.lib
Interface MappingBuilder

All Known Implementing Classes:
RdbMappingBuilder

public interface MappingBuilder

This interface defines the methods which abstract the creation of the jorm meta object specialized for a mapping type. There are only two kind of specialized jorm meta object: the ClassMapping and the ValueMapping

Author:
Sebastien Chassande-Barrioz

Method Summary
 void createClassMapping(org.objectweb.jorm.metainfo.api.Class clazz, EntityCmp2Desc bd, java.lang.String mappingName)
          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 mappingName)
          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 mappingName)
          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 mappingName)
          It calls the createValueMapping method on the PrimitiveElement parameter in order to create ValueMapping object specialized for a mapper type.
 

Method Detail

createClassMapping

public void createClassMapping(org.objectweb.jorm.metainfo.api.Class clazz,
                               EntityCmp2Desc bd,
                               java.lang.String mappingName)
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.
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

createClassMapping

public void createClassMapping(org.objectweb.jorm.metainfo.api.GenClassRef gcr,
                               EjbRelationshipRoleDesc rsrd,
                               java.lang.String mappingName)
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.
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,
                               java.lang.String mappingName)
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.
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

createValueMapping

public void createValueMapping(org.objectweb.jorm.metainfo.api.PrimitiveElement pe,
                               FieldDesc desc,
                               EjbRelationshipRoleDesc rsrd,
                               byte type,
                               java.lang.String mappingName)
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.
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