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

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

public class MappingSetManager
extends Object

Manages object saving and querying for MappingSet wrapper. This class contains most used interrogations (such as getKnowledgeChunkById 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 MappingSetManager getMappingSetManager()
           
 void saveOrUpdate(MappingSet mset)
          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

getMappingSetManager

protected static MappingSetManager getMappingSetManager()

saveOrUpdate

public void saveOrUpdate(MappingSet mset)

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