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

java.lang.Object
  |
  +--org.objectweb.jorm.metainfo.lib.BasicMetaObject
        |
        +--org.objectweb.jorm.metainfo.lib.BasicMappingStructure
              |
              +--org.objectweb.jorm.metainfo.lib.BasicHelperClassMapping
                    |
                    +--org.objectweb.jorm.metainfo.lib.BasicClassMapping
                          |
                          +--org.objectweb.jorm.mapper.rdb.metainfo.RdbClassMapping
                                |
                                +--org.objectweb.jorm.mapper.rdb.metainfo.RdbClassMultiMapping
All Implemented Interfaces:
ClassMapping, HelperClassMapping, Loggable, MappingStructure, MetaObject, java.io.Serializable

public class RdbClassMultiMapping
extends RdbClassMapping

Implementation of the RdbClassMultiMapping interface. BasicRdbClassMultiMapping contains mapping information referring to: - the primary table, - external tables, - join relationships between the primary table and an external table.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMappingStructure
logger
 
Constructor Summary
RdbClassMultiMapping(java.lang.String ruleName, MetaObject linkedMO, MetaObject parent)
          Builds a new BasicRdbClassMultiMapping object.
 
Method Summary
 RdbExternalTable createRdbExternalTable(java.lang.String tableName)
           
 PrimitiveElementMapping getPrimitiveElementMapping(java.lang.String fieldName)
          Returns the PrimitiveElementMapping objects matching to the fieldName specified.
 RdbExternalTable getRdbExternalTable(java.lang.String tableName)
           
 java.util.Collection getRdbExternalTables()
           
 RdbExternalTable removeRdbExternalTable(java.lang.String tableName)
           
 
Methods inherited from class org.objectweb.jorm.mapper.rdb.metainfo.RdbClassMapping
createRdbTable, getRdbTable
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicClassMapping
addReferenceMapping, createReferenceMapping, getReferenceMapping, getReferenceMappings, iterateReferenceMappings
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicHelperClassMapping
addDependency, addPrimitiveElementMapping, addPrimitiveElementMapping, createIdentifierMapping, getDependencies, getIdentifierMapping, getPrimitiveElementMappings, getRuleName, iteratePrimitiveElementMappings, removeDependency, setIdentifierMapping, setRuleName
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMappingStructure
getLinkedMO, getLogger, getLoggerFactory, getMapperName, getProjectName, setLinkedMO, setLogger, setLoggerFactory
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject
getManager, getParent, 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.HelperClassMapping
addDependency, addPrimitiveElementMapping, addPrimitiveElementMapping, createIdentifierMapping, getDependencies, getIdentifierMapping, getPrimitiveElementMappings, getRuleName, iteratePrimitiveElementMappings, removeDependency, setIdentifierMapping, setRuleName
 
Methods inherited from interface org.objectweb.jorm.metainfo.api.MappingStructure
getLinkedMO, getLogger, getLoggerFactory, getMapperName, getProjectName, setLinkedMO, setLogger, setLoggerFactory
 
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject
getParent, setParent
 

Constructor Detail

RdbClassMultiMapping

public RdbClassMultiMapping(java.lang.String ruleName,
                            MetaObject linkedMO,
                            MetaObject parent)
Builds a new BasicRdbClassMultiMapping object. This object contains the mapping structure of the class it refers to. The parent object is a Mapping object that contains the mapper name.

Parameters:
ruleName - the name of the rule used to map the class, linkedMo the Class object referenced by the current object, parent the parent of the current object.
Method Detail

getPrimitiveElementMapping

public PrimitiveElementMapping getPrimitiveElementMapping(java.lang.String fieldName)
Description copied from interface: HelperClassMapping
Returns the PrimitiveElementMapping objects matching to the fieldName specified.

Specified by:
getPrimitiveElementMapping in interface HelperClassMapping
Overrides:
getPrimitiveElementMapping in class BasicHelperClassMapping
Parameters:
fieldName - is a name of a primitivite field (hidden or not) of the class
Returns:
a collection.

createRdbExternalTable

public RdbExternalTable createRdbExternalTable(java.lang.String tableName)

removeRdbExternalTable

public RdbExternalTable removeRdbExternalTable(java.lang.String tableName)

getRdbExternalTables

public java.util.Collection getRdbExternalTables()

getRdbExternalTable

public RdbExternalTable getRdbExternalTable(java.lang.String tableName)