it.unimi.dico.islab.idbs2.cloud.session
Class CloudManager

java.lang.Object
  extended by it.unimi.dico.islab.idbs2.cloud.session.CloudManager

public class CloudManager
extends Object

Manages object saving and querying for Cloud wrapper. This class contains most used interrogations and methods for saving an object of Cloud class.

IMPORTANT: this class has no public constructor. A singleton instance of this class is contained in CloudSessionManager class

Author:
Vegeziel

Method Summary
 Cloud getCloudById(Integer id)
           
protected static CloudManager getCloudManager()
           
 void saveOrUpdate(Cloud cloud)
          Give persistence to this Cloud 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

getCloudManager

protected static CloudManager getCloudManager()

saveOrUpdate

public void saveOrUpdate(Cloud cloud)

Give persistence to this Cloud object using associated Hibernate mappings.

This method executes the saveOrUpdate method of the Hibernate Session. As Cloud is the main class of this package, by saving this object a cascade save is started for all connected objects (nodes, edges, and all classes connected to them).


getCloudById

public Cloud getCloudById(Integer id)