org.objectweb.jorm.mapper.rdb.xml2mi
Class RdbParser

java.lang.Object
  extended byorg.objectweb.jorm.xml2mi.lib.ParserHelper
      extended byorg.objectweb.jorm.xml2mi.lib.BasicMappingParser
          extended byorg.objectweb.jorm.mapper.rdb.xml2mi.RdbParser
All Implemented Interfaces:
Loggable, MappingParser

public class RdbParser
extends BasicMappingParser

RdbParser only parses the relational mapping specification in order to build the corresponding Jorm meta information.


Field Summary
static ExpressionParser expParser
           
static java.lang.String IDVALUE_SEP
           
 
Fields inherited from class org.objectweb.jorm.xml2mi.lib.BasicMappingParser
currentClass, idvalue2genclassref, metaInfoManager, pathExplorer
 
Fields inherited from class org.objectweb.jorm.xml2mi.lib.ParserHelper
logger, loggerFactory, motable
 
Constructor Summary
RdbParser()
          Builds a new rdb parser.
 
Method Summary
 void parseMapping(org.w3c.dom.Element mappingElem, Mapping mapping)
          Parses the mapping information related to a particular mapper and builds the corresponding Jorm meta-information.
 
Methods inherited from class org.objectweb.jorm.xml2mi.lib.BasicMappingParser
getClassRefNameDef, getFieldName, getGenClassNestingLevel, getGenClassRef, getGenClassRefNameDef, getLogger, getLoggerFactory, getNameDefFromSuper, getPrimitiveElement, getRefNameDef, setCurrentClass, setidvalue2genclassref, setLogger, setLoggerFactory, setMetaInfoManager, setmotable, setPathExplorer
 
Methods inherited from class org.objectweb.jorm.xml2mi.lib.ParserHelper
getIdNameDef, getIdNameDef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDVALUE_SEP

public static final java.lang.String IDVALUE_SEP
See Also:
Constant Field Values

expParser

public static final ExpressionParser expParser
Constructor Detail

RdbParser

public RdbParser()
Builds a new rdb parser. This class is loaded by a classloader.

Method Detail

parseMapping

public void parseMapping(org.w3c.dom.Element mappingElem,
                         Mapping mapping)
                  throws PException
Parses the mapping information related to a particular mapper and builds the corresponding Jorm meta-information. It can be class-related or generic class-related information. Manager, PathExplorer and currentClass must be set before calling this method.

Specified by:
parseMapping in interface MappingParser
Specified by:
parseMapping in class BasicMappingParser
Parameters:
mappingElem - the current XML node.
mapping - a Mapping object.
Throws:
PException