public class CloudManager extends Object
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
Modifier and Type | Method and Description |
---|---|
Set<Cloud> |
getAllClouds()
Fetch all the cloud present on the connected database.
|
Cloud |
getCloudById(Integer id)
Fetch the
Cloud object with the given id . |
protected static CloudManager |
getCloudManager() |
void |
saveOrUpdate(Cloud cloud)
Give persistence to this
Cloud object using associated Hibernate mappings. |
protected static CloudManager getCloudManager()
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).
public Cloud getCloudById(Integer id)
Cloud
object with the given id
.id
- the identifier of the required Cloud.Cloud
C having id
as identifier if such Cloud exists, null otherwise.