Class HtmlPageDAO

  • All Implemented Interfaces:
    IHtmlPageDAO

    public class HtmlPageDAO
    extends Object
    implements IHtmlPageDAO
    This class provides Data Access methods for HtmlPage objects
    Author:
    lenaini
    • 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 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