Used to hold the configuration information related to the JORM runtime.
addSubMapper
public void addSubMapper(String mn,
String smn)
Adds this submapper to the list of the ones used for generation.
mn
- The concerned mapper.smn
- The submapper to be added.
configure
public void configure()
throws PException
Configures the JORM compiler by loading information related to the
different mappers supported by this instance of JORM using the default
property file.
PException
-
configure
public void configure(Properties p)
Configures the JORM compiler by loading information related to the
different mappers supported by this instance of JORM using the given
properties.
p
- is the properties containing the jorm configuration
configure
public void configure(String propertyfile)
throws PException
Configures the JORM compiler by loading information related to the
different mappers supported by this instance of JORM using the given
property file.
PException
-
configureLog
public void configureLog(String propertyfile)
throws PException
Configures the logger factory object with a properties object.
propertyfile
- a properties object
getGcmClass
public Class getGcmClass(String mappername)
throws PException
Gets the class name of the GenClassMapping associated with the given mapper.
mappername
- The name of the concerned mapper.
- The string giving the class name.
PException
-
getLoggerFactory
public LoggerFactory getLoggerFactory()
throws PException
Gets the logger factory associated with this instance of JORM.
- The logger factory.
getMIFactory
public MappingFactory getMIFactory(String mappername)
throws PException
Gets the MI factory associated with the given mapper.
mappername
- The name of the concerned mapper.
- The MappingFactory object.
PException
-
getMIManager
public Manager getMIManager()
throws PException
Gets the MI manager to be used by JORM.
- That MI manager.
getMappingDomtreeBuilder
public org.objectweb.jorm.mi2xml.api.MappingDomtreeBuilder getMappingDomtreeBuilder(String mappername)
throws PException
Gets the MappingDomTreeBuilder object associated with the given mapper.
mappername
- The name of the concerned mapper.
- The MappingDomTreeBuilder object.
PException
-
getMappingParser
public MappingParser getMappingParser(String mappername)
throws PException
Gets the parser associated with the given mapper for mapping infos.
mappername
- The name of the concerned mapper.
- The MappingParser object.
PException
-
getParser
public Parser getParser()
throws PException
Gets the parser to be used by JORM.
- That parser.
getSchMgr
public PMappingStructuresManager getSchMgr(String mappername)
throws PException
Gets the schema manager associated with the given mapper.
mappername
- The name of the concerned mapper.
- The PMappingStructuresManager object.
PException
-
getSubMappers
public Collection getSubMappers(String mappername)
throws PException
Gets the submappers associated with a given mapper.
mappername
- The concerned mapper.
- The collection of the names of submappers.
PException
-
getWriter
public org.objectweb.jorm.mi2xml.api.Writer getWriter()
throws PException
Gets the BasicDomWriter object.
- The BasicDomWriter object.
PException
-
knownMappers
public Iterator knownMappers()
throws PException
Lists the names of supported mappers.
- This list Iterator.
removeAllMappers
public void removeAllMappers()
Removes all mappers from the list of the ones used for generation.
removeMapper
public void removeMapper(String mn)
Removes this mapper from the list of the ones used for generation.
mn
- The name of the concerned mapper.
removeSubMapper
public void removeSubMapper(String mn,
String smn)
Removes this submapper from the list of the ones used for generation.
mn
- The concerned mapper.smn
- The submapper to be removed.
setLoggerFactory
public void setLoggerFactory(LoggerFactory lf)
It assignes the logger factory.
lf
-