Class HtmlPageDAO

  • All Implemented Interfaces:
    IHtmlPageDAO

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

      Constructors 
      Constructor Description
      HtmlPageDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      HtmlPage load​(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of HtmlPage from the table
      java.util.Collection<HtmlPage> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the list of htmlpages
      HtmlPage selectEnabledHtmlPage​(int nHtmlPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load enabled htmlpage
      java.util.Collection<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 Detail

      • HtmlPageDAO

        public HtmlPageDAO()
    • Method Detail

      • 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 java.util.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 java.util.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