org.objectweb.jorm.metainfo.api
Interface ClassProject
- MetaObject, Serializable
public interface ClassProject
A ClassProject object groups together sets of mapping structures resulting
from various mappings of a class and its persistent fields over various
persistent models.
Example: let us consider three different mapping structures.
A Client class is first mapped over a relational model. The resulting
mapping structures are kept in a Project named "Poseidon".
The Client class is once more mapped over a relational model. The resulting
mapping structures are kept in a Project named "Corsica".
The Client class is later on mapped over a data file model. The resulting
mapping structures are kept in the Project named "Poseidon".
createMapping
public Mapping createMapping(String mapperName)
Creates a new Mapping object using a MappingFactory object.
mapperName
- the name of the mapper.
- a new Mapping object or an existing one.
getMappers
public Set getMappers()
Returns a set of mapper names.
- a set of mapper names.
getMapping
public Mapping getMapping(String mapperName)
Returns a Mapping object.
mapperName
- a mapper name.
- a collection.
getMappings
public Collection getMappings()
Returns a collection of Mapping objects.
- a collection.
getProjectName
public String getProjectName()
Returns the project name.
- the project name.
setProjectName
public void setProjectName(String name)
Sets the project name.
name
- the project name.