org.objectweb.jorm.mapper.rdb.metainfo
Class RdbMapping

java.lang.Object
  extended byorg.objectweb.jorm.metainfo.lib.BasicMetaObject
      extended byorg.objectweb.jorm.metainfo.lib.BasicMapping
          extended byorg.objectweb.jorm.mapper.rdb.metainfo.RdbMapping
All Implemented Interfaces:
Loggable, Mapping, MetaObject, java.io.Serializable

public class RdbMapping
extends BasicMapping

Description

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject
debug, logger, loggerFactory, parent
 
Constructor Summary
RdbMapping(java.lang.String mapperName, MetaObject parent)
          Builds a new BasicRdbMapping object.
 
Method Summary
 ClassMapping createClassMapping(java.lang.String ruleName)
          NB: OL: Always create multi mapping since only multimapping are expected when parsing the meta-info Creates a new BasicRdbClassMapping object.
 RdbClassMultiMapping createClassMultiMapping(java.lang.String ruleName)
          Creates a new BasicRdbClassMultiMapping object.
 RdbGenClassMapping createGenClassMapping(java.lang.String ruleName, MetaObject linkedMO)
          Creates a new BasicRdbGenClassMapping object.
 boolean isFilteredMapping()
           
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMapping
addGenClassMapping, getChildren, getClassMapping, getGenClassMapping, getGenClassMappings, getMapperName, setClassMapping, setMapperName
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject
getLogger, getLoggerFactory, getManager, getParent, setLogger, setLoggerFactory, setLoggingOnChild, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject
getParent, setParent
 

Constructor Detail

RdbMapping

public RdbMapping(java.lang.String mapperName,
                  MetaObject parent)
Builds a new BasicRdbMapping object. This object contains the mapping structures of a class. The parent object is a Project object.

Parameters:
mapperName - the mapper name, parent the parent of the current object.
Method Detail

createClassMapping

public ClassMapping createClassMapping(java.lang.String ruleName)
NB: OL: Always create multi mapping since only multimapping are expected when parsing the meta-info Creates a new BasicRdbClassMapping object.

Parameters:
ruleName - the name of the rule used to map the class, linkedMO the Class object referenced by the current object, parent the parent object of the current object.
Returns:
an RdbClassMapping object.

createClassMultiMapping

public RdbClassMultiMapping createClassMultiMapping(java.lang.String ruleName)
Creates a new BasicRdbClassMultiMapping object.

Parameters:
ruleName - the name of the rule used to map the class, linkedMO the Class object referenced by the current object, parent the parent object of the current object.
Returns:
an RdbClassMultiMapping object.

createGenClassMapping

public RdbGenClassMapping createGenClassMapping(java.lang.String ruleName,
                                                MetaObject linkedMO)
Creates a new BasicRdbGenClassMapping object.

Parameters:
ruleName - the name of the rule used to map the class, linkedMO the GenClassRef object referenced by the current object, parent the parent object of the current object.
Returns:
an RdbGenClassMapping object.

isFilteredMapping

public boolean isFilteredMapping()