|
||||||||||||
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 | |
---|---|
org.objectweb.jorm.metainfo.api.ClassMapping |
createClassMapping(org.objectweb.jorm.metainfo.api.Class clazz,
SpeedoClass sc,
org.objectweb.jorm.metainfo.api.Mapping mapping)
It builds a RdbClassMultiMapping and creates the main table. |
org.objectweb.jorm.metainfo.api.PrimitiveElementMapping |
createFieldMapping(org.objectweb.jorm.metainfo.api.PrimitiveElement pe,
SpeedoElement selem,
org.objectweb.jorm.metainfo.api.CommonClassMapping cm)
The column name is built with the field name. |
org.objectweb.jorm.metainfo.api.GenClassMapping |
createGenClassMapping(org.objectweb.jorm.metainfo.api.GenClassRef gcr,
SpeedoField sf,
org.objectweb.jorm.metainfo.api.Mapping mapping)
It builds a RdbClassMultiMapping and creates the table. |
void |
createNameDefMapping(org.objectweb.jorm.metainfo.api.CommonClassMapping cm,
org.objectweb.jorm.metainfo.api.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). |
org.objectweb.util.monolog.api.Logger |
getLogger()
|
org.objectweb.util.monolog.api.LoggerFactory |
getLoggerFactory()
|
void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
|
void |
setLoggerFactory(org.objectweb.util.monolog.api.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 org.objectweb.util.monolog.api.Logger getLogger()
getLogger
in interface org.objectweb.jorm.util.api.Loggable
public org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
getLoggerFactory
in interface org.objectweb.jorm.util.api.Loggable
public void setLogger(org.objectweb.util.monolog.api.Logger logger)
setLogger
in interface org.objectweb.jorm.util.api.Loggable
public void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
setLoggerFactory
in interface org.objectweb.jorm.util.api.Loggable
public org.objectweb.jorm.metainfo.api.ClassMapping createClassMapping(org.objectweb.jorm.metainfo.api.Class clazz, SpeedoClass sc, org.objectweb.jorm.metainfo.api.Mapping mapping) throws org.objectweb.jorm.api.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
SpeedoException
public void finalizeClassMapping(SpeedoClass sc, java.lang.String projectName, java.lang.String mapperName) throws org.objectweb.jorm.api.PException, SpeedoException
JormMIMappingBuilder
finalizeClassMapping
in interface JormMIMappingBuilder
org.objectweb.jorm.api.PException
- if it is not possible to build the ClassMapping
SpeedoException
public org.objectweb.jorm.metainfo.api.GenClassMapping createGenClassMapping(org.objectweb.jorm.metainfo.api.GenClassRef gcr, SpeedoField sf, org.objectweb.jorm.metainfo.api.Mapping mapping) throws org.objectweb.jorm.api.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
SpeedoException
public org.objectweb.jorm.metainfo.api.PrimitiveElementMapping createFieldMapping(org.objectweb.jorm.metainfo.api.PrimitiveElement pe, SpeedoElement selem, org.objectweb.jorm.metainfo.api.CommonClassMapping cm) throws org.objectweb.jorm.api.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.public void createNameDefMapping(org.objectweb.jorm.metainfo.api.CommonClassMapping cm, org.objectweb.jorm.metainfo.api.NameDef nd, SpeedoClass sc, boolean isIdentifier, boolean isInGenClass) throws org.objectweb.jorm.api.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.
SpeedoException
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |