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

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

public class CloudNodeManager
extends Object

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

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

Author:
Vegeziel

Method Summary
protected static CloudNodeManager getCloudNodeManager()
           
 void save(CloudNode 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

getCloudNodeManager

protected static CloudNodeManager getCloudNodeManager()

save

public void save(CloudNode 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.