Class ClusterDAO
java.lang.Object
fr.paris.lutece.plugins.releaser.business.ClusterDAO
- All Implemented Interfaces:
IClusterDAO
This class provides Data Access methods for Cluster objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidInsert a new record in the table.load(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 keyselectClustersList(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 referenceListselectIdClustersList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the cluster objects and returns them as a listvoidUpdate the record in the table
-
Constructor Details
-
ClusterDAO
public ClusterDAO()
-
-
Method Details
-
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
Insert a new record in the table.- Specified by:
insertin interfaceIClusterDAO- Parameters:
cluster- instance of the Cluster object to insertplugin- the Plugin
-
load
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
Update the record in the table- Specified by:
storein interfaceIClusterDAO- Parameters:
cluster- the reference of the Clusterplugin- the Plugin
-
selectClustersList
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
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
-