org.objectweb.jorm.mapper.rdb.metainfo
Class RdbMapping
java.lang.Object
org.objectweb.jorm.metainfo.lib.BasicMetaObject
org.objectweb.jorm.metainfo.lib.BasicMapping
org.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
Constructor Summary |
RdbMapping(java.lang.String mapperName,
MetaObject parent)
Builds a new BasicRdbMapping object.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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()