public class CloudNodeManager extends Object
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
Modifier and Type | Method and Description |
---|---|
protected static CloudNodeManager |
getCloudNodeManager() |
CloudNode |
getNodeById(Integer id) |
Boolean |
removeNode(CloudNode cn)
Removes the
CloudNode given as argument from the current cloud. |
Boolean |
removeNodeById(Integer id)
Removes the
CloudNode having id as identifier. |
void |
save(CloudNode node)
Give persistence to the given
CloudNode object using associated Hibernate mappings. |
protected static CloudNodeManager getCloudNodeManager()
public Boolean removeNodeById(Integer id)
CloudNode
having id
as identifier.id
- the identifier of the node to be removedpublic Boolean removeNode(CloudNode cn)
CloudNode
given as argument from the current cloud.cn
- the CloudNode
wrapper of the node to be removedremoveNodeById(Integer)
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.