Interface IPortletTemplateDAO

All Known Implementing Classes:
PortletTemplateDAO

public interface IPortletTemplateDAO
Data access interface of the portlet templates
  • Method Details

    • insert

      void insert(PortletTemplate template)
      Inserts a template and sets its generated identifier
      Parameters:
      template - the template
    • store

      void store(PortletTemplate template)
      Updates a template
      Parameters:
      template - the template
    • delete

      void delete(int nIdTemplate)
      Deletes a template
      Parameters:
      nIdTemplate - the template identifier
    • load

      PortletTemplate load(int nIdTemplate)
      Loads a template
      Parameters:
      nIdTemplate - the template identifier
      Returns:
      the template, null when it does not exist
    • selectAll

      List<PortletTemplate> selectAll()
      Loads every template
      Returns:
      the templates, ordered by portlet type then identifier
    • selectByPortletType

      List<PortletTemplate> selectByPortletType(String strPortletTypeId)
      Loads the templates registered for a portlet type
      Parameters:
      strPortletTypeId - the portlet type identifier
      Returns:
      the templates, ordered by identifier
    • selectByPrimaryKeyList

      List<PortletTemplate> selectByPrimaryKeyList(List<Integer> listIdTemplates)
      Loads the templates whose identifiers are given
      Parameters:
      listIdTemplates - the template identifiers
      Returns:
      the templates, ordered by portlet type then identifier
    • selectAllIds

      List<Integer> selectAllIds()
      Loads the identifiers of every template
      Returns:
      the identifiers, ordered by portlet type then identifier
    • selectIdsByPortletType

      List<Integer> selectIdsByPortletType(String strPortletTypeId)
      Loads the identifiers of the templates registered for a portlet type
      Parameters:
      strPortletTypeId - the portlet type identifier
      Returns:
      the identifiers, ordered by identifier
    • checkTemplateIsUsed

      boolean checkTemplateIsUsed(int nIdTemplate)
      Tells whether at least one portlet uses a template
      Parameters:
      nIdTemplate - the template identifier
      Returns:
      true when a portlet uses the template