| org.objectweb.speedo.generation.jorm.JormMIMappingBuilder
All known Subclasses: org.objectweb.speedo.generation.jorm.rdb.RdbJORMMapping,
JormMIMappingBuilder | public interface JormMIMappingBuilder (Code) | | This interface defines a builder of the mapping part of the Jorm meta
information. It must be implemented for each mapper.
author: S.Chassande-Barrioz |
Method Summary | |
void | createClassIdentifierNameDefMapping(ClassMapping cm, NameDef nd, SpeedoClass sc, MIBuilderHelper mibh) Creates the mapping of the name def (JORM meta object) corresponding to
the identifier of a persistent generic class (collection, map, ...). | ClassMapping | createClassMapping(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, ...).
Parameters: clazz - is the Jorm meta object representing the class which theClassMapping must be built. Parameters: mapping - is the Mapping instance which will host the ClassMapping. | void | createClassRefNameDefMapping(ClassMapping cm, NameDef nd, SpeedoCommonField sf) Creates the mapping of the name def (JORM meta object) corresponding to
a reference to a persistent class from a persistent class. | void | createClassRefNameDefMapping(GenClassMapping gcm, NameDef nd, SpeedoField sf) Creates the mapping of the name def (JORM meta object) corresponding to
a reference to a persistent class from a generic persistent class. | PrimitiveElementMapping | createFieldMapping(PrimitiveElement pe, SpeedoField sf, ClassMapping cm) It creates the mapping of a primitive field. | PrimitiveElementMapping | createFieldMapping(PrimitiveElement pe, SpeedoNoFieldColumn sf, ClassMapping cm) It creates the mapping of a hidden primitive field. | PrimitiveElementMapping | createFieldMapping(PrimitiveElement pe, SpeedoInheritedField sif, ClassMapping cm) /**
It creates the mapping of an inherited primitive field. | PrimitiveElementMapping | createGenClassElementMapping(PrimitiveElement pe, SpeedoField sf, GenClassMapping gcm) It creates the mapping of a primitive field (element of the generic
class).
Parameters: pe - is the Jorm meta object representing a primitive field Parameters: gcm - is the MappingStructure which will host the mapping of thefield Parameters: sf - is the Speedo meta object representing the persistent fieldreferencing a generic class. | void | createGenClassIdentifierNameDefMapping(GenClassMapping gcm, NameDef nd, SpeedoField sf, MIBuilderHelper mibh) Creates the mapping of the name def (JORM meta object) corresponding to
the identifier of a persistent generic class (collection, map, ...). | PrimitiveElementMapping | createGenClassIndexMapping(PrimitiveElement pe, SpeedoField sf, GenClassMapping gcm) It creates the mapping of a primitive field used as index in the generic
class.
Parameters: pe - is the Jorm meta object representing a primitive field Parameters: gcm - is the MappingStructure which will host the mapping of thefield Parameters: sf - is the Speedo meta object representing the persistent fieldreferencing a generic class. | 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, ...).
Parameters: gcr - is the Jorm meta object representing the gen class which theGenClassMapping must be built. Parameters: mapping - is the Mapping instance which will host the GenClassMapping. Parameters: sf - is the SpeedoField corresponding to the generic class. | void | createGenClassRefNameDefMapping(ClassMapping cm, NameDef nd, SpeedoCommonField sf) Creates the mapping of the name def (JORM meta object) corresponding to
a reference to a persistent generic class. |
createClassIdentifierNameDefMapping | void createClassIdentifierNameDefMapping(ClassMapping cm, NameDef nd, SpeedoClass sc, MIBuilderHelper mibh) throws PException, SpeedoException(Code) | | Creates the mapping of the name def (JORM meta object) corresponding to
the identifier of a persistent generic class (collection, map, ...).
Parameters: cm - is the MappingStructure which will host the mapping of the generic class Parameters: nd - is the namedef corresponding to the identifier of the generic class Parameters: sc - is the Speedo meta object representing the persistent class. |
createClassMapping | ClassMapping createClassMapping(Class clazz, SpeedoClass sc, Mapping mapping) throws PException, SpeedoException(Code) | | It builds a ClassMapping, assignes it to the mapping and builds
mapping structure for the class (RdbTable, directory name, ...).
Parameters: clazz - is the Jorm meta object representing the class which theClassMapping must be built. Parameters: mapping - is the Mapping instance which will host the ClassMapping. the ClassMapping instance built by the method (never null). throws: PException - if it is not possible to build the ClassMapping |
createClassRefNameDefMapping | void createClassRefNameDefMapping(ClassMapping cm, NameDef nd, SpeedoCommonField sf) throws PException, SpeedoException(Code) | | Creates the mapping of the name def (JORM meta object) corresponding to
a reference to a persistent class from a persistent class.
Parameters: cm - is the MappingStructure which will host the mapping of the reference Parameters: nd - is the namedef corresponding to the reference Parameters: sf - is the Speedo meta object representing the persistent fieldreferencing a class. |
createClassRefNameDefMapping | void createClassRefNameDefMapping(GenClassMapping gcm, NameDef nd, SpeedoField sf) throws PException, SpeedoException(Code) | | Creates the mapping of the name def (JORM meta object) corresponding to
a reference to a persistent class from a generic persistent class.
Parameters: gcm - is the MappingStructure which will host the mapping of the reference Parameters: nd - is the namedef corresponding to the reference Parameters: sf - is the Speedo meta object representing the persistent fieldreferencing a generic class. |
createFieldMapping | PrimitiveElementMapping createFieldMapping(PrimitiveElement pe, SpeedoField sf, ClassMapping cm) throws PException, SpeedoException(Code) | | It creates the mapping of a primitive field.
Parameters: pe - is the Jorm meta object representing a primitive field Parameters: cm - is the MappingStructure which will host the mapping of thefield a PrimitiveElementMapping corresponding to the given primitivefield. throws: PException - if it is not possible to build the mapping of theprimitive field. |
createFieldMapping | PrimitiveElementMapping createFieldMapping(PrimitiveElement pe, SpeedoNoFieldColumn sf, ClassMapping cm) throws PException, SpeedoException(Code) | | It creates the mapping of a hidden primitive field.
Parameters: pe - is the Jorm meta object representing a primitive field Parameters: cm - is the MappingStructure which will host the mapping of thefield a PrimitiveElementMapping corresponding to the given primitivefield. throws: PException - if it is not possible to build the mapping of theprimitive field. |
createFieldMapping | PrimitiveElementMapping createFieldMapping(PrimitiveElement pe, SpeedoInheritedField sif, ClassMapping cm) throws PException, SpeedoException(Code) | | /**
It creates the mapping of an inherited primitive field.
Parameters: pe - is the Jorm meta object representing a primitive field Parameters: sif - is the SpeedoInheritedField meta object representing the inherited field. Parameters: cm - is the MappingStructure which will host the mapping of thefield a PrimitiveElementMapping corresponding to the given primitivefield. |
createGenClassElementMapping | PrimitiveElementMapping createGenClassElementMapping(PrimitiveElement pe, SpeedoField sf, GenClassMapping gcm) throws PException, SpeedoException(Code) | | It creates the mapping of a primitive field (element of the generic
class).
Parameters: pe - is the Jorm meta object representing a primitive field Parameters: gcm - is the MappingStructure which will host the mapping of thefield Parameters: sf - is the Speedo meta object representing the persistent fieldreferencing a generic class. a PrimitiveElementMapping corresponding to the given primitivefield. throws: PException - if it is not possible to build the mapping of theprimitive field. |
createGenClassIdentifierNameDefMapping | void createGenClassIdentifierNameDefMapping(GenClassMapping gcm, NameDef nd, SpeedoField sf, MIBuilderHelper mibh) throws PException, SpeedoException(Code) | | Creates the mapping of the name def (JORM meta object) corresponding to
the identifier of a persistent generic class (collection, map, ...).
Parameters: gcm - is the MappingStructure which will host the mapping of the generic class Parameters: nd - is the namedef corresponding to the identifier of the generic class Parameters: sf - is the Speedo meta object representing the persistent fieldreferencing a generic class. |
createGenClassIndexMapping | PrimitiveElementMapping createGenClassIndexMapping(PrimitiveElement pe, SpeedoField sf, GenClassMapping gcm) throws PException, SpeedoException(Code) | | It creates the mapping of a primitive field used as index in the generic
class.
Parameters: pe - is the Jorm meta object representing a primitive field Parameters: gcm - is the MappingStructure which will host the mapping of thefield Parameters: sf - is the Speedo meta object representing the persistent fieldreferencing a generic class. a PrimitiveElementMapping corresponding to the given primitivefield. throws: PException - if it is not possible to build the mapping of theprimitive field. |
createGenClassMapping | GenClassMapping createGenClassMapping(GenClassRef gcr, SpeedoField sf, Mapping mapping) throws PException, SpeedoException(Code) | | It builds a GenClassMapping, assignes it to the mapping and builds
mapping structure for the class (RdbTable, directory name, ...).
Parameters: gcr - is the Jorm meta object representing the gen class which theGenClassMapping must be built. Parameters: mapping - is the Mapping instance which will host the GenClassMapping. Parameters: sf - is the SpeedoField corresponding to the generic class. the GenClassMapping instance built by the method (never null). throws: PException - if it is not possible to build the GenClassMapping |
createGenClassRefNameDefMapping | void createGenClassRefNameDefMapping(ClassMapping cm, NameDef nd, SpeedoCommonField sf) throws PException, SpeedoException(Code) | | Creates the mapping of the name def (JORM meta object) corresponding to
a reference to a persistent generic class.
Parameters: cm - is the MappingStructure which will host the mapping of the reference Parameters: nd - is the namedef corresponding to the reference Parameters: sf - is the Speedo meta object representing the persistent fieldreferencing a generic class. |
|
|