Class ClusterDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.releaser.business.ClusterDAO
-
- All Implemented Interfaces:
IClusterDAO
public final class ClusterDAO extends java.lang.Object implements IClusterDAO
This class provides Data Access methods for Cluster objects
-
-
Constructor Summary
Constructors Constructor Description ClusterDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(Cluster cluster, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Clusterload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)Generates a new primary keyjava.util.List<Cluster>selectClustersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the cluster objects and returns them as a listfr.paris.lutece.util.ReferenceListselectClustersReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the cluster objects and returns them as a referenceListjava.util.List<java.lang.Integer>selectIdClustersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the cluster objects and returns them as a listvoidstore(Cluster cluster, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key- Parameters:
plugin- The Plugin- Returns:
- The new primary key
-
insert
public void insert(Cluster cluster, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIClusterDAO- Parameters:
cluster- instance of the Cluster object to insertplugin- the Plugin
-
load
public Cluster load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIClusterDAO- Parameters:
nKey- The identifier of the clusterplugin- the Plugin- Returns:
- The instance of the cluster
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIClusterDAO- Parameters:
nKey- The identifier of the Cluster to deleteplugin- the Plugin
-
store
public void store(Cluster cluster, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIClusterDAO- Parameters:
cluster- the reference of the Clusterplugin- the Plugin
-
selectClustersList
public java.util.List<Cluster> selectClustersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the cluster objects and returns them as a list- Specified by:
selectClustersListin interfaceIClusterDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the cluster objects
-
selectIdClustersList
public java.util.List<java.lang.Integer> selectIdClustersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the cluster objects and returns them as a list- Specified by:
selectIdClustersListin interfaceIClusterDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the cluster objects
-
selectClustersReferenceList
public fr.paris.lutece.util.ReferenceList selectClustersReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the cluster objects and returns them as a referenceList- Specified by:
selectClustersReferenceListin interfaceIClusterDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the cluster objects
-
-