org.objectweb.jorm.metainfo.lib.rdb
Class BasicRDBMappingFactory

java.lang.Object
  |
  +--org.objectweb.jorm.metainfo.lib.rdb.BasicRDBMappingFactory
All Implemented Interfaces:
MappingFactory, RDBMappingFactory, java.io.Serializable

public class BasicRDBMappingFactory
extends java.lang.Object
implements RDBMappingFactory, java.io.Serializable

The BasicRDBMappingFactory object defines method to get mapping objects. Mapping objects are ValueMapping objects and ClassMapping objects.

Author:
X. Spengler
See Also:
Serialized Form

Inner Class Summary
 class BasicRDBMappingFactory.mapp
          the mapp object represents a simple tuple of mappingName/mapperName Strings.
 
Constructor Summary
BasicRDBMappingFactory()
           
 
Method Summary
 ClassMapping createClassMapping(java.lang.String mapperName, java.lang.String mappingName, MetaObject parent)
          Creates a ClassMapping object from the current factory.
 ValueMapping createValueMapping(java.lang.String mapperName, java.lang.String mappingName, MetaObject parent)
          Creates a ValueMapping object from the current factory.
 void init()
          Initializes the current factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicRDBMappingFactory

public BasicRDBMappingFactory()
Method Detail

init

public void init()
Initializes the current factory.
Specified by:
init in interface MappingFactory

createValueMapping

public ValueMapping createValueMapping(java.lang.String mapperName,
                                       java.lang.String mappingName,
                                       MetaObject parent)
Creates a ValueMapping object from the current factory. This object is created with a mapper name, a mapping name and its futur parent.
Specified by:
createValueMapping in interface MappingFactory
Parameters:
mapperName - the name of the mapper
mappingName - the name of the mapping
Returns:
a ValueMapping object

createClassMapping

public ClassMapping createClassMapping(java.lang.String mapperName,
                                       java.lang.String mappingName,
                                       MetaObject parent)
Creates a ClassMapping object from the current factory. This object is created with a mapper name, a mapping name and its futur parent.
Specified by:
createClassMapping in interface MappingFactory
Parameters:
mapperName - the name of the mapper
mappingName - the name of the mapping
Returns:
a ClassMapping object