org.objectweb.jorm.metainfo.api
Interface MappingFactory

All Known Subinterfaces:
RDBMappingFactory
All Known Implementing Classes:
BasicFileMappingFactory, BasicMemoryMappingFactory, BasicFosMappingFactory, BasicFosMappingFactory, BasicMemoryMappingFactory

public interface MappingFactory

A MappingFactory is an object able to create (return) MetaObject which are objects able to map other objects.

Author:
X. Spengler

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.
 

Method Detail

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.
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.
Parameters:
mapperName - the name of the mapper
mappingName - the name of the mapping
Returns:
a ClassMapping object

init

public void init()
Initializes the current factory.