Class ClusterHome
- java.lang.Object
-
- fr.paris.lutece.plugins.releaser.business.ClusterHome
-
public final class ClusterHome extends Object
This class provides instances management methods (create, find, ...) for Cluster objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Clustercreate(Cluster cluster)Create an instance of the cluster classstatic ClusterfindByPrimaryKey(int nKey)Returns an instance of a cluster whose identifier is specified in parameterstatic List<Cluster>getClustersList()Load the data of all the cluster objects and returns them as a liststatic List<Cluster>getClustersListWithoutSites()Load the data of all the cluster objects without sites and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetClustersReferenceList()Load the data of all the cluster objects and returns them as a referenceListstatic List<Integer>getIdClustersList()Load the id of all the cluster objects and returns them as a liststatic voidremove(int nKey)Remove the cluster whose identifier is specified in parameterstatic Clusterupdate(Cluster cluster)Update of the cluster which is specified in parameter
-
-
-
Method Detail
-
create
public static Cluster create(Cluster cluster)
Create an instance of the cluster class- Parameters:
cluster- The instance of the Cluster which contains the informations to store- Returns:
- The instance of cluster which has been created with its primary key.
-
update
public static Cluster update(Cluster cluster)
Update of the cluster which is specified in parameter- Parameters:
cluster- The instance of the Cluster which contains the data to store- Returns:
- The instance of the cluster which has been updated
-
remove
public static void remove(int nKey)
Remove the cluster whose identifier is specified in parameter- Parameters:
nKey- The cluster Id
-
findByPrimaryKey
public static Cluster findByPrimaryKey(int nKey)
Returns an instance of a cluster whose identifier is specified in parameter- Parameters:
nKey- The cluster primary key- Returns:
- an instance of Cluster
-
getClustersList
public static List<Cluster> getClustersList()
Load the data of all the cluster objects and returns them as a list- Returns:
- the list which contains the data of all the cluster objects
-
getClustersListWithoutSites
public static List<Cluster> getClustersListWithoutSites()
Load the data of all the cluster objects without sites and returns them as a list- Returns:
- the list which contains the data of all the cluster objects
-
getIdClustersList
public static List<Integer> getIdClustersList()
Load the id of all the cluster objects and returns them as a list- Returns:
- the list which contains the id of all the cluster objects
-
getClustersReferenceList
public static fr.paris.lutece.util.ReferenceList getClustersReferenceList()
Load the data of all the cluster objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the cluster objects
-
-