org.objectweb.jorm.mapper.fos.metainfo
Class FosMapping

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

public class FosMapping
extends BasicMapping

Author:
P. Dechamboux
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject
debug, logger, loggerFactory, parent
 
Constructor Summary
FosMapping(java.lang.String mapperName, MetaObject parent)
          Builds a new BasicRdbMapping object.
 
Method Summary
 ClassMapping createClassMapping(java.lang.String ruleName)
          Creates a new BasicRdbClassMapping object.
 FosGenClassMapping createGenClassMapping(java.lang.String ruleName, MetaObject linkedMO)
          Creates a new BasicFosGenClassMapping object.
 
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

FosMapping

public FosMapping(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)
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.

createGenClassMapping

public FosGenClassMapping createGenClassMapping(java.lang.String ruleName,
                                                MetaObject linkedMO)
Creates a new BasicFosGenClassMapping 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 BasicFosGenClassMapping object.