Class HtmlPageDAO

java.lang.Object
fr.paris.lutece.plugins.htmlpage.business.HtmlPageDAO
All Implemented Interfaces:
IHtmlPageDAO

public class HtmlPageDAO extends Object implements IHtmlPageDAO
This class provides Data Access methods for HtmlPage objects
Author:
lenaini
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    insert(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of HtmlPage from the table
    selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the list of htmlpages
    selectEnabledHtmlPage(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load enabled htmlpage
    selectEnabledHtmlPageList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the list of htmlpages
    void
    store(HtmlPage htmlpage, 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

    • HtmlPageDAO

      public HtmlPageDAO()
  • Method Details

    • insert

      public void insert(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IHtmlPageDAO
      Parameters:
      htmlpage - The htmlpage object
      plugin - The plugin
    • load

      public HtmlPage load(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of HtmlPage from the table
      Specified by:
      load in interface IHtmlPageDAO
      Parameters:
      nHtmlPageId - The identifier of HtmlPage
      plugin - The plugin
      Returns:
      the instance of the HtmlPage
    • delete

      public void delete(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IHtmlPageDAO
      Parameters:
      htmlpage - The HtmlPage object
      plugin - The plugin
    • store

      public void store(HtmlPage htmlpage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IHtmlPageDAO
      Parameters:
      htmlpage - The reference of htmlpage
      plugin - The plugin
    • selectAll

      public Collection<HtmlPage> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the list of htmlpages
      Specified by:
      selectAll in interface IHtmlPageDAO
      Parameters:
      plugin - The plugin
      Returns:
      The Collection of the HtmlPages
    • selectEnabledHtmlPage

      public HtmlPage selectEnabledHtmlPage(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load enabled htmlpage
      Specified by:
      selectEnabledHtmlPage in interface IHtmlPageDAO
      Parameters:
      nHtmlPageId - The page id
      plugin - The plugin
      Returns:
      The Collection of the HtmlPages
    • selectEnabledHtmlPageList

      public Collection<HtmlPage> selectEnabledHtmlPageList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the list of htmlpages
      Specified by:
      selectEnabledHtmlPageList in interface IHtmlPageDAO
      Parameters:
      plugin - The plugin
      Returns:
      The Collection of the HtmlPages