Interface IPageTemplateDAO

  • All Known Implementing Classes:
    PageTemplateDAO

    public interface IPageTemplateDAO
    Author:
    LEVY
    • Method Detail

      • delete

        void delete​(int nPageTemplateId)
        Delete a record from the table
        Parameters:
        nPageTemplateId - The indentifier of the object PageTemplate
      • insert

        void insert​(PageTemplate pageTemplate)
        Insert a new record in the table.
        Parameters:
        pageTemplate - The Instance of the object PageTemplate
      • load

        PageTemplate load​(int nPageTemplateId)
        load the data of PageTemplate from the table
        Parameters:
        nPageTemplateId - The indentifier of the object PageTemplate
        Returns:
        The Instance of the object PageTemplate
      • selectPageTemplatesList

        List<PageTemplate> selectPageTemplatesList()
        Returns a list of all the page templates
        Returns:
        A list of PageTemplates objects
      • store

        void store​(PageTemplate pageTemplate)
        Update the record in the table
        Parameters:
        pageTemplate - The instance of the PageTemplate to update
      • checkPageTemplateIsUsed

        boolean checkPageTemplateIsUsed​(int nPageTemplateId)
        Checks if a page template has been used by a page
        Parameters:
        nPageTemplateId - The identifier of the page template
        Returns:
        true if a page template is used by a page, false otherwise