java.lang.Object
fr.paris.lutece.plugins.mydashboard.business.PanelDAO
All Implemented Interfaces:
IPanelDAO

public final class PanelDAO extends Object implements IPanelDAO
This class provides Data Access methods for Panel objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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(Panel panel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    loadByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    loadDefaultPanel(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load default Panel
    int
    newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Generates a new primary key
    selectIdPanelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the panel objects and returns them as a list
    selectPanelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the panel objects and returns them as a list
    fr.paris.lutece.util.ReferenceList
    selectPanelsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the panel objects and returns them as a referenceList
    void
    store(Panel panel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PanelDAO

      public PanelDAO()
  • 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(Panel panel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IPanelDAO
      Parameters:
      panel - instance of the Panel object to insert
      plugin - the Plugin
    • load

      public Panel load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IPanelDAO
      Parameters:
      nKey - The identifier of the panel
      plugin - the Plugin
      Returns:
      The instance of the panel
    • loadByCode

      public Panel loadByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      loadByCode in interface IPanelDAO
      plugin - the Plugin
      Returns:
      The instance of the panel
    • 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 IPanelDAO
      Parameters:
      nKey - The identifier of the Panel to delete
      plugin - the Plugin
    • store

      public void store(Panel panel, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IPanelDAO
      Parameters:
      panel - the reference of the Panel
      plugin - the Plugin
    • selectPanelsList

      public List<Panel> selectPanelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the panel objects and returns them as a list
      Specified by:
      selectPanelsList in interface IPanelDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the panel objects
    • selectIdPanelsList

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

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

      public Panel loadDefaultPanel(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load default Panel
      Specified by:
      loadDefaultPanel in interface IPanelDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The instance of the panel