public class MappingManager extends Object
Mapping
wrapper. This class contains
most used interrogations and methods for saving an
object of this class.
IMPORTANT: this class has no public constructor. A singleton instance of this class is contained
in MapSessionManager
class
MappingSet
Modifier and Type | Method and Description |
---|---|
Mapping |
getMapping(String el1,
String el2)
Load a Mapping between two elements
el1 and el2 . |
protected static MappingManager |
getMappingManager() |
void |
saveOrUpdate(Mapping m)
Give persistence to the given
MappingSet object using associated Hibernate mappings. |
protected static MappingManager getMappingManager()
public Mapping getMapping(String el1, String el2)
el1
and el2
.el1
- the first element of the mappingel2
- the second element of the mappingel1
as first element and el2
as second element.public void saveOrUpdate(Mapping m)
Give persistence to the given MappingSet
object using associated Hibernate mappings.
This method executes the saveOrUpdate
method of the Hibernate Session
.
As the saved object is the main class of this package, by saving this object a cascade save is started for all connected objects (configuration,
new used relations, created users and mappings).