org.objectweb.jorm.metainfo.lib
Class BasicMapping

java.lang.Object
  extended byorg.objectweb.jorm.metainfo.lib.BasicMetaObject
      extended byorg.objectweb.jorm.metainfo.lib.BasicMapping
All Implemented Interfaces:
Loggable, Mapping, MetaObject, java.io.Serializable
Direct Known Subclasses:
BasicMemMapping, FosMapping, RdbMapping

public abstract class BasicMapping
extends BasicMetaObject
implements Mapping

Implementation of the mapping interface.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject
debug, logger, loggerFactory, parent
 
Constructor Summary
BasicMapping(java.lang.String mapperName, MetaObject parent)
          Builds a new BasicMapping object.
 
Method Summary
 void addGenClassMapping(java.lang.String genClassId, GenClassMapping genClassMapping)
          Adds a GenClassMapping object.
protected  java.util.Collection getChildren()
           
 ClassMapping getClassMapping()
          Returns the mapping structure of the class.
 GenClassMapping getGenClassMapping(java.lang.String genClassId)
          Returns the GenClassMapping object of a GenClass.
 java.util.Collection getGenClassMappings()
          Returns a collection of GenClassMapping objects.
 java.lang.String getMapperName()
          Returns the name of the mapper.
 void setClassMapping(ClassMapping classMapping)
          Sets the mapping structure of the class.
 void setMapperName(java.lang.String mapperName)
          Sets the mapper name.
 
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.Mapping
createClassMapping
 
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject
getParent, setParent
 

Constructor Detail

BasicMapping

public BasicMapping(java.lang.String mapperName,
                    MetaObject parent)
Builds a new BasicMapping 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

getMapperName

public java.lang.String getMapperName()
Returns the name of the mapper.

Specified by:
getMapperName in interface Mapping
Returns:
the mapper name.

setMapperName

public void setMapperName(java.lang.String mapperName)
Sets the mapper name.

Specified by:
setMapperName in interface Mapping
Parameters:
mapperName - the mapper name.

getClassMapping

public ClassMapping getClassMapping()
Returns the mapping structure of the class.

Specified by:
getClassMapping in interface Mapping
Returns:
a ClassMapping object.

setClassMapping

public void setClassMapping(ClassMapping classMapping)
Sets the mapping structure of the class.

Specified by:
setClassMapping in interface Mapping
Parameters:
classMapping - a ClassMapping object.

getGenClassMapping

public GenClassMapping getGenClassMapping(java.lang.String genClassId)
Returns the GenClassMapping object of a GenClass.

Specified by:
getGenClassMapping in interface Mapping
Parameters:
genClassId - a GenClass identifier.
Returns:
a GenClassMapping object.

getGenClassMappings

public java.util.Collection getGenClassMappings()
Returns a collection of GenClassMapping objects.

Specified by:
getGenClassMappings in interface Mapping
Returns:
a collection.

addGenClassMapping

public void addGenClassMapping(java.lang.String genClassId,
                               GenClassMapping genClassMapping)
Adds a GenClassMapping object.

Specified by:
addGenClassMapping in interface Mapping
Parameters:
genClassId - a GenClass identifier, genClassMapping a GenClassMapping object.

getChildren

protected java.util.Collection getChildren()
Overrides:
getChildren in class BasicMetaObject