|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used to hold the configuration information related to the JORM runtime.
Field Summary | |
static java.lang.String |
DEFAULT_JORM_CONFIGURATION_FILE
|
static java.lang.String |
LOGGER_NAME
|
static java.lang.String |
USE_CONTEXT_CLASSLOADER
|
Method Summary | |
void |
addSubMapper(java.lang.String mn,
java.lang.String smn)
Adds this submapper to the list of the ones used for generation. |
void |
configure()
Configures the JORM compiler by loading information related to the different mappers supported by this instance of JORM using the default property file. |
void |
configure(java.util.Properties p)
Configures the JORM compiler by loading information related to the different mappers supported by this instance of JORM using the given properties. |
void |
configure(java.lang.String propertyfile)
Configures the JORM compiler by loading information related to the different mappers supported by this instance of JORM using the given property file. |
void |
configureLog(java.lang.String propertyfile)
Configures the logger factory object with a properties object. |
java.lang.Class |
getGcmClass(java.lang.String mappername)
Gets the class name of the GenClassMapping associated with the given mapper. |
LoggerFactory |
getLoggerFactory()
Gets the logger factory associated with this instance of JORM. |
org.objectweb.jorm.mi2xml.api.MappingDomtreeBuilder |
getMappingDomtreeBuilder(java.lang.String mappername)
Gets the MappingDomTreeBuilder object associated with the given mapper. |
MappingParser |
getMappingParser(java.lang.String mappername)
Gets the parser associated with the given mapper for mapping infos. |
MappingFactory |
getMIFactory(java.lang.String mappername)
Gets the MI factory associated with the given mapper. |
Manager |
getMIManager()
Gets the MI manager to be used by JORM. |
Parser |
getParser()
Gets the parser to be used by JORM. |
PMappingStructuresManager |
getSchMgr(java.lang.String mappername)
Gets the schema manager associated with the given mapper. |
java.util.Collection |
getSubMappers(java.lang.String mappername)
Gets the submappers associated with a given mapper. |
org.objectweb.jorm.mi2xml.api.Writer |
getWriter()
Gets the BasicDomWriter object. |
java.util.Iterator |
knownMappers()
Lists the names of supported mappers. |
void |
removeAllMappers()
Removes all mappers from the list of the ones used for generation. |
void |
removeMapper(java.lang.String mn)
Removes this mapper from the list of the ones used for generation. |
void |
removeSubMapper(java.lang.String mn,
java.lang.String smn)
Removes this submapper from the list of the ones used for generation. |
void |
setLoggerFactory(LoggerFactory lf)
It assignes the logger factory. |
Field Detail |
public static final java.lang.String LOGGER_NAME
public static final java.lang.String DEFAULT_JORM_CONFIGURATION_FILE
public static final java.lang.String USE_CONTEXT_CLASSLOADER
Method Detail |
public void configure(java.lang.String propertyfile) throws PException
PException
public void configure() throws PException
PException
public void configure(java.util.Properties p)
p
- is the properties containing the jorm configurationpublic void configureLog(java.lang.String propertyfile) throws PException
propertyfile
- a properties object
PException
public java.util.Iterator knownMappers() throws PException
PException
public Manager getMIManager() throws PException
PException
public Parser getParser() throws PException
PException
public MappingFactory getMIFactory(java.lang.String mappername) throws PException
mappername
- The name of the concerned mapper.
org.objectweb.jorm.api.PException
PException
public PMappingStructuresManager getSchMgr(java.lang.String mappername) throws PException
mappername
- The name of the concerned mapper.
org.objectweb.jorm.api.PException
PException
public java.lang.Class getGcmClass(java.lang.String mappername) throws PException
mappername
- The name of the concerned mapper.
org.objectweb.jorm.api.PException
PException
public MappingParser getMappingParser(java.lang.String mappername) throws PException
mappername
- The name of the concerned mapper.
org.objectweb.jorm.api.PException
PException
public org.objectweb.jorm.mi2xml.api.Writer getWriter() throws PException
org.objectweb.jorm.api.PException
PException
public org.objectweb.jorm.mi2xml.api.MappingDomtreeBuilder getMappingDomtreeBuilder(java.lang.String mappername) throws PException
mappername
- The name of the concerned mapper.
org.objectweb.jorm.api.PException
PException
public java.util.Collection getSubMappers(java.lang.String mappername) throws PException
mappername
- The concerned mapper.
org.objectweb.jorm.api.PException
PException
public void removeMapper(java.lang.String mn)
mn
- The name of the concerned mapper.public void removeAllMappers()
public void removeSubMapper(java.lang.String mn, java.lang.String smn)
mn
- The concerned mapper.smn
- The submapper to be removed.public void addSubMapper(java.lang.String mn, java.lang.String smn)
mn
- The concerned mapper.smn
- The submapper to be added.public void setLoggerFactory(LoggerFactory lf)
lf
- public LoggerFactory getLoggerFactory() throws PException
PException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |