it.unimi.dico.islab.idbs2.map.session
Class MappingManager

java.lang.Object
  extended by it.unimi.dico.islab.idbs2.map.session.MappingManager

public class MappingManager
extends Object

Manages object saving and querying for 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

Author:
Vegeziel
See Also:
MappingSet

Method Summary
protected static MappingManager getMappingManager()
           
 void saveOrUpdate(Mapping m)
          Give persistence to the given MappingSet object using associated Hibernate mappings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMappingManager

protected static MappingManager getMappingManager()

saveOrUpdate

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