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

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

public class CloudEdgeManager
extends Object

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

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

Author:
Vegeziel

Method Summary
protected static CloudEdgeManager getCloudEdgeManager()
           
 void save(CloudEdge node)
          Give persistence to the given CloudNode 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

getCloudEdgeManager

protected static CloudEdgeManager getCloudEdgeManager()

save

public void save(CloudEdge node)

Give persistence to the given CloudNode object using associated Hibernate mappings.

This method executes the saveOrUpdate method of the Hibernate Session. Every CloudNode object is saved in cascade mode by default when saving the owner Cloud object: invoking this method directly will save this object, its parameters, types and keywords; no action will be performed for other connected objects.