org.objectweb.jorm.metainfo.api
Interface ClassProject

All Superinterfaces:
MetaObject, java.io.Serializable

public interface ClassProject
extends MetaObject

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".


Method Summary
 Mapping createMapping(java.lang.String mapperName)
          Creates a new Mapping object using a MappingFactory object.
 java.util.Set getMappers()
          Returns a set of mapper names.
 Mapping getMapping(java.lang.String mapperName)
          Returns a Mapping object.
 java.util.Collection getMappings()
          Returns a collection of Mapping objects.
 java.lang.String getProjectName()
          Returns the project name.
 void setProjectName(java.lang.String name)
          Sets the project name.
 
Methods inherited from interface org.objectweb.jorm.metainfo.api.MetaObject
getParent, setParent
 

Method Detail

getProjectName

public java.lang.String getProjectName()
Returns the project name.

Returns:
the project name.

setProjectName

public void setProjectName(java.lang.String name)
Sets the project name.

Parameters:
name - the project name.

getMappings

public java.util.Collection getMappings()
Returns a collection of Mapping objects.

Returns:
a collection.

getMapping

public Mapping getMapping(java.lang.String mapperName)
Returns a Mapping object.

Parameters:
mapperName - a mapper name.
Returns:
a collection.

getMappers

public java.util.Set getMappers()
Returns a set of mapper names.

Returns:
a set of mapper names.

createMapping

public Mapping createMapping(java.lang.String mapperName)
Creates a new Mapping object using a MappingFactory object.

Parameters:
mapperName - the name of the mapper.
Returns:
a new Mapping object or an existing one.