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

java.lang.Object
  extended byorg.objectweb.jorm.metainfo.lib.BasicMetaObject
      extended byorg.objectweb.jorm.metainfo.lib.BasicMappingStructure
          extended byorg.objectweb.jorm.metainfo.lib.BasicHelperClassMapping
              extended byorg.objectweb.jorm.metainfo.lib.BasicGenClassMapping
                  extended byorg.objectweb.jorm.mapper.rdb.metainfo.RdbGenClassMapping
All Implemented Interfaces:
GenClassMapping, HelperClassMapping, Loggable, MappingStructure, MetaObject, java.io.Serializable

public class RdbGenClassMapping
extends BasicGenClassMapping

Description

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMappingStructure
logger
 
Constructor Summary
RdbGenClassMapping(java.lang.String ruleName, MetaObject linkedMO, MetaObject parent)
          Builds a new BasicRdbGenClassMapping object.
 
Method Summary
 RdbTable createRdbTable(java.lang.String tablename)
          Sets the name of the primary table
 RdbTable getRdbTable()
          Returns the name of the primary table.
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicGenClassMapping
createReferenceMapping, getReferenceMapping, setReferenceMapping
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicHelperClassMapping
addDependency, addPrimitiveElementMapping, addPrimitiveElementMapping, createIdentifierMapping, getDependencies, getIdentifierMapping, getPrimitiveElementMapping, 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, getPrimitiveElementMapping, 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

RdbGenClassMapping

public RdbGenClassMapping(java.lang.String ruleName,
                          MetaObject linkedMO,
                          MetaObject parent)
Builds a new BasicRdbGenClassMapping 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 GenClassRef object referenced by the current object, ruleName the name of the rule used to map the class, parent the parent of the current object.
Method Detail

createRdbTable

public RdbTable createRdbTable(java.lang.String tablename)
Sets the name of the primary table

Parameters:
tablename - the name of the primary table

getRdbTable

public RdbTable getRdbTable()
Returns the name of the primary table.

Returns:
a String object, the name of the primary table