org.objectweb.jorm.metainfo.api
Interface Mapping
- MetaObject, Serializable
A Mapping object contains mapping structures obtained by applying a set of
mapping rules whose syntax and semantics depend of a particular mapper.
Mapping rules define the way class instances will be stored on a particular
type of persistent store and how they will be read and write from/to the
persistent store.
addGenClassMapping
public void addGenClassMapping(String genClassId,
GenClassMapping genClassMapping)
Adds a GenClassMapping object.
genClassId
- a GenClass identifier,
genClassMapping a GenClassMapping object.
createClassMapping
public ClassMapping createClassMapping(String ruleName)
Create a class mapping
ruleName
-
getClassMapping
public ClassMapping getClassMapping()
Returns the mapping structure of the class.
- a ClassMapping object.
getGenClassMapping
public GenClassMapping getGenClassMapping(String genclassid)
Returns the GenClassMapping object of a GenClass.
genclassid
- a GenClass identifier.
- a GenClassMapping object.
getGenClassMappings
public Collection getGenClassMappings()
Returns a collection of GenClassMapping objects.
- a collection.
getMapperName
public String getMapperName()
Returns the name of the mapper.
- the mapper name.
setClassMapping
public void setClassMapping(ClassMapping classMapping)
Sets the mapping structure of the class.
classMapping
- a ClassMapping object.
setMapperName
public void setMapperName(String mapperName)
Sets the mapper name.
mapperName
- the mapper name.