Class DashboardAssociationDAO

java.lang.Object
fr.paris.lutece.plugins.mydashboard.business.DashboardAssociationDAO
All Implemented Interfaces:
IDashboardAssociationDAO

public final class DashboardAssociationDAO extends Object implements IDashboardAssociationDAO
This class provides Data Access methods for DashboardAssociation objects
  • Constructor Details

    • DashboardAssociationDAO

      public DashboardAssociationDAO()
  • 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

      public void insert(DashboardAssociation dashboardAssociation, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IDashboardAssociationDAO
      Parameters:
      dashboardAssociation - instance of the DashboardAssociation object to insert
      plugin - the Plugin
    • load

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

      public void store(DashboardAssociation dashboardAssociation, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IDashboardAssociationDAO
      Parameters:
      dashboardAssociation - the reference of the DashboardAssociation
      plugin - the Plugin
    • selectDashboardAssociationsList

      public List<DashboardAssociation> selectDashboardAssociationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the dashboardAssociation objects and returns them as a list
      Specified by:
      selectDashboardAssociationsList in interface IDashboardAssociationDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the dashboardAssociation objects
    • selectDashboardAssociationsListByIdPanel

      public List<DashboardAssociation> selectDashboardAssociationsListByIdPanel(int nIdPanel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the dashboardAssociation objects associated to a panel and returns them as a list
      Specified by:
      selectDashboardAssociationsListByIdPanel in interface IDashboardAssociationDAO
      Parameters:
      nIdPanel - the panel Id
      plugin - the Plugin
      Returns:
      The list which contains the data of all the dashboardAssociation objects
    • selectCountDashboardAssociations

      public int selectCountDashboardAssociations(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      return the number of association
      Specified by:
      selectCountDashboardAssociations in interface IDashboardAssociationDAO
      Parameters:
      plugin - the plugin
      Returns:
      the number of association
    • selectIdDashboardAssociationsList

      public List<Integer> selectIdDashboardAssociationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the dashboardAssociation objects and returns them as a list
      Specified by:
      selectIdDashboardAssociationsList in interface IDashboardAssociationDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the id of all the dashboardAssociation objects
    • selectDashboardAssociationsReferenceList

      public fr.paris.lutece.util.ReferenceList selectDashboardAssociationsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the dashboardAssociation objects and returns them as a referenceList
      Specified by:
      selectDashboardAssociationsReferenceList in interface IDashboardAssociationDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The referenceList which contains the data of all the dashboardAssociation objects