|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A ClassProject object groups together sets of mapping structures resulting from various mappings of a class and its persistent fields over various persistent models. Example: let us consider three different mapping structures. A Client class is first mapped over a relational model. The resulting mapping structures are kept in a Project named "Poseidon". The Client class is once more mapped over a relational model. The resulting mapping structures are kept in a Project named "Corsica". The Client class is later on mapped over a data file model. The resulting mapping structures are kept in the Project named "Poseidon".
Method Summary | |
Mapping |
createMapping(java.lang.String mapperName)
Creates a new Mapping object using a MappingFactory object. |
Logger |
getLogger()
Returns a logger to an component that wants to log things. |
LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
java.util.Set |
getMappers()
Returns a set of mapper names. |
Mapping |
getMapping(java.lang.String mapperName)
Returns a Mapping object. |
java.util.Collection |
getMappings()
Returns a collection of Mapping objects. |
java.lang.String |
getProjectName()
Returns the project name. |
void |
setLogger(Logger logger)
Defines a logger object. |
void |
setLoggerFactory(LoggerFactory loggerFactory)
Defines the logger factory to obtain new logger. |
void |
setProjectName(java.lang.String name)
Sets the project name. |
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject |
getParent, setParent |
Method Detail |
public java.lang.String getProjectName()
public void setProjectName(java.lang.String name)
name
- the project name.public java.util.Collection getMappings()
public Mapping getMapping(java.lang.String mapperName)
mapperName
- a mapper name.
public java.util.Set getMappers()
public Mapping createMapping(java.lang.String mapperName)
mapperName
- the name of the mapper.
public void setLogger(Logger logger)
setLogger
in interface org.objectweb.jorm.util.api.Loggable
logger
- the logger objectpublic void setLoggerFactory(LoggerFactory loggerFactory)
setLoggerFactory
in interface org.objectweb.jorm.util.api.Loggable
loggerFactory
- the LoggerFactory object to obtain a logger objectpublic Logger getLogger()
org.objectweb.jorm.util.api.Loggable
getLogger
in interface org.objectweb.jorm.util.api.Loggable
public LoggerFactory getLoggerFactory()
org.objectweb.jorm.util.api.Loggable
getLoggerFactory
in interface org.objectweb.jorm.util.api.Loggable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |