org.objectweb.jorm.metainfo.lib
Class BasicGenClassMapping

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
All Implemented Interfaces:
GenClassMapping, HelperClassMapping, Loggable, MappingStructure, MetaObject, java.io.Serializable
Direct Known Subclasses:
FosGenClassMapping, RdbGenClassMapping

public class BasicGenClassMapping
extends BasicHelperClassMapping
implements GenClassMapping

Description

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject
logger, loggerFactory, parent
 
Constructor Summary
BasicGenClassMapping(java.lang.String ruleName, MetaObject linkedMO, MetaObject parent)
          Builds a new BasicGenClassMapping.
 
Method Summary
 ReferenceMapping createReferenceMapping(java.lang.String ruleName, NameDef nd)
          Creates a new ReferenceMapping object.
 ReferenceMapping getReferenceMapping()
          Returns a ReferenceMapping object.
 void setReferenceMapping(ReferenceMapping refMapping)
          Sets a ReferenceMapping object.
 
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, getMapperName, getProjectName, setLinkedMO
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject
getChildren, 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.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, getMapperName, getProjectName, setLinkedMO
 
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject
getParent, setParent
 

Constructor Detail

BasicGenClassMapping

public BasicGenClassMapping(java.lang.String ruleName,
                            MetaObject linkedMO,
                            MetaObject parent)
Builds a new BasicGenClassMapping.

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

setReferenceMapping

public void setReferenceMapping(ReferenceMapping refMapping)
Sets a ReferenceMapping object.

Specified by:
setReferenceMapping in interface GenClassMapping
Parameters:
refMapping - the ReferenceMapping object.

getReferenceMapping

public ReferenceMapping getReferenceMapping()
Returns a ReferenceMapping object.

Specified by:
getReferenceMapping in interface GenClassMapping
Returns:
a ReferenceMapping object.

createReferenceMapping

public ReferenceMapping createReferenceMapping(java.lang.String ruleName,
                                               NameDef nd)
Description copied from interface: HelperClassMapping
Creates a new ReferenceMapping object.

Specified by:
createReferenceMapping in interface HelperClassMapping
Overrides:
createReferenceMapping in class BasicHelperClassMapping
Parameters:
ruleName - the name of the rule used to map the reference, nd the NameDef object that defines an object reference.
Returns:
a ReferenceMapping object.