|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.generation.jorm.rdb.OneTableRdbJormIMappingBuilder
This class is an implementation of the JormMIMappingBuilder for the mapper rdb and its sub mappers. It defines a simple mapping where each persistent objects (generic class included) are mapped over one table.
Field Summary |
Constructor Summary | |
OneTableRdbJormIMappingBuilder()
|
Method Summary | |
ClassMapping |
createClassMapping(java.lang.Class clazz,
SpeedoClass sc,
Mapping mapping)
It builds a RdbClassMultiMapping and creates the main table. |
PrimitiveElementMapping |
createFieldMapping(PrimitiveElement pe,
SpeedoElement selem,
HelperClassMapping cm)
The column name is built with the field name. |
GenClassMapping |
createGenClassMapping(GenClassRef gcr,
SpeedoField sf,
Mapping mapping)
It builds a RdbClassMultiMapping and creates the table. |
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). |
Logger |
getLogger()
|
LoggerFactory |
getLoggerFactory()
|
void |
setLogger(Logger logger)
|
void |
setLoggerFactory(LoggerFactory loggerFactory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OneTableRdbJormIMappingBuilder()
Method Detail |
public Logger getLogger()
public LoggerFactory getLoggerFactory()
public void setLogger(Logger logger)
public void setLoggerFactory(LoggerFactory loggerFactory)
public ClassMapping createClassMapping(java.lang.Class clazz, SpeedoClass sc, Mapping mapping) throws PException, SpeedoException
createClassMapping
in interface JormMIMappingBuilder
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.
org.objectweb.jorm.api.PException
- if it is not possible to build the ClassMapping
PException
SpeedoException
public void finalizeClassMapping(SpeedoClass sc, java.lang.String projectName, java.lang.String mapperName) throws PException, SpeedoException
JormMIMappingBuilder
finalizeClassMapping
in interface JormMIMappingBuilder
PException
SpeedoException
public GenClassMapping createGenClassMapping(GenClassRef gcr, SpeedoField sf, Mapping mapping) throws PException, SpeedoException
createGenClassMapping
in interface JormMIMappingBuilder
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.
org.objectweb.jorm.api.PException
- if it is not possible to build the GenClassMapping
PException
SpeedoException
public PrimitiveElementMapping createFieldMapping(PrimitiveElement pe, SpeedoElement selem, HelperClassMapping cm) throws PException
createFieldMapping
in interface JormMIMappingBuilder
pe
- is the Jorm meta object representing a primitive fieldcm
- is the MappingStructure which will host the mapping of the
field
org.objectweb.jorm.api.PException
- if it is not possible to build the mapping of the
primitive field.
PException
public void createNameDefMapping(HelperClassMapping cm, NameDef nd, SpeedoClass sc, boolean isIdentifier, boolean isInGenClass) throws PException, SpeedoException
createNameDefMapping
in interface JormMIMappingBuilder
cm
- is the MappingStructure which will host the mapping of the
fields of the name defnd
- is the NameDef which must be mapped.
org.objectweb.jorm.api.PException
- if it is not possible to build the mapping of the
field.
PException
SpeedoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |