|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a builder of the mapping part of the Jorm meta information. It must be implemented for each mapper.
Method Summary | |
ClassMapping |
createClassMapping(java.lang.Class clazz,
SpeedoClass sc,
Mapping mapping)
It builds a ClassMapping, assignes it to the mapping and builds mapping structure for the class (RdbTable, directory name, ...). |
PrimitiveElementMapping |
createFieldMapping(PrimitiveElement pe,
SpeedoElement selem,
HelperClassMapping cm)
It creates the mapping of a primitive field. |
GenClassMapping |
createGenClassMapping(GenClassRef gcr,
SpeedoField sf,
Mapping mapping)
It builds a GenClassMapping, assignes it to the mapping and builds mapping structure for the class (RdbTable, directory name, ...). |
void |
createNameDefMapping(HelperClassMapping cm,
NameDef nd,
SpeedoClass sc,
boolean isIdentifier,
boolean isInGenClass)
It creates the mapping of a name def (reference or identifier). |
void |
finalizeClassMapping(SpeedoClass sc,
java.lang.String projectName,
java.lang.String mapperName)
It finishes the filling of a ClassMapping (Inheritance for example). |
Method Detail |
public ClassMapping createClassMapping(java.lang.Class clazz, SpeedoClass sc, Mapping mapping) throws PException, SpeedoException
clazz
- is the Jorm meta object representing the class which the
ClassMapping must be built.mapping
- is the Mapping instance which will host the ClassMapping.
PException
- if it is not possible to build the ClassMapping
SpeedoException
public void finalizeClassMapping(SpeedoClass sc, java.lang.String projectName, java.lang.String mapperName) throws PException, SpeedoException
PException
- if it is not possible to build the ClassMapping
SpeedoException
public GenClassMapping createGenClassMapping(GenClassRef gcr, SpeedoField sf, Mapping mapping) throws PException, SpeedoException
gcr
- is the Jorm meta object representing the gen class which the
GenClassMapping must be built.mapping
- is the Mapping instance which will host the GenClassMapping.
PException
- if it is not possible to build the GenClassMapping
SpeedoException
public PrimitiveElementMapping createFieldMapping(PrimitiveElement pe, SpeedoElement selem, HelperClassMapping cm) throws PException, SpeedoException
pe
- is the Jorm meta object representing a primitive fieldcm
- is the MappingStructure which will host the mapping of the
field
PException
- if it is not possible to build the mapping of the
primitive field.
SpeedoException
public void createNameDefMapping(HelperClassMapping cm, NameDef nd, SpeedoClass sc, boolean isIdentifier, boolean isInGenClass) throws PException, SpeedoException
cm
- is the MappingStructure which will host the mapping of the
fields of the name defnd
- is the NameDef which must be mapped.
PException
- if it is not possible to build the mapping of the
field.
SpeedoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |