Class ClusterDAO

  • All Implemented Interfaces:
    IClusterDAO

    public final class ClusterDAO
    extends 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
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(Cluster cluster, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Cluster load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      int newPrimaryKey​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Generates a new primary key
      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
      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
      List<Integer> selectIdClustersList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the cluster objects and returns them as a list
      void store​(Cluster cluster, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Constructor Detail

      • ClusterDAO

        public ClusterDAO()
    • 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:
        insert in interface IClusterDAO
        Parameters:
        cluster - instance of the Cluster object to insert
        plugin - the Plugin
      • load

        public Cluster load​(int nKey,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface IClusterDAO
        Parameters:
        nKey - The identifier of the cluster
        plugin - 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:
        delete in interface IClusterDAO
        Parameters:
        nKey - The identifier of the Cluster to delete
        plugin - the Plugin
      • store

        public void store​(Cluster cluster,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IClusterDAO
        Parameters:
        cluster - the reference of the Cluster
        plugin - the Plugin
      • selectClustersList

        public 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:
        selectClustersList in interface IClusterDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the cluster objects
      • selectIdClustersList

        public List<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:
        selectIdClustersList in interface IClusterDAO
        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:
        selectClustersReferenceList in interface IClusterDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the cluster objects