Class PortletTypeDAO

  • All Implemented Interfaces:
    IPortletTypeDAO

    public final class PortletTypeDAO
    extends java.lang.Object
    implements IPortletTypeDAO
    This class provides Data Access methods for PortletType objects
    • Constructor Detail

      • PortletTypeDAO

        public PortletTypeDAO()
    • Method Detail

      • insert

        public void insert​(PortletType portletType)
        Insert a new record in the table PortletType
        Specified by:
        insert in interface IPortletTypeDAO
        Parameters:
        portletType - The portlet Type object
      • load

        public PortletType load​(java.lang.String strPortletTypeId)
        Load the data of PortletType from the table
        Specified by:
        load in interface IPortletTypeDAO
        Parameters:
        strPortletTypeId - The identifier of PortletType
        Returns:
        The instance of the PortletType
      • delete

        public void delete​(java.lang.String strPortletTypeId)
        Delete a record from the table
        Specified by:
        delete in interface IPortletTypeDAO
        Parameters:
        strPortletTypeId - The POrtletTYpe identifier
      • selectPortletTypeId

        public java.lang.String selectPortletTypeId​(java.lang.String strPluginHomeClass)
        Returns the portlet type identifier
        Specified by:
        selectPortletTypeId in interface IPortletTypeDAO
        Parameters:
        strPluginHomeClass - the name of the portlet type
        Returns:
        the identifier of the portlet type
      • selectNbPortletTypeByPortlet

        public int selectNbPortletTypeByPortlet​(java.lang.String strPortletTypeId)
        Returns the portlet count for a given provider
        Specified by:
        selectNbPortletTypeByPortlet in interface IPortletTypeDAO
        Parameters:
        strPortletTypeId - The provider's identifier
        Returns:
        nCount
      • selectPortletsTypesList

        public ReferenceList selectPortletsTypesList​(java.util.Locale locale)
        Return a Reference List of portletType
        Specified by:
        selectPortletsTypesList in interface IPortletTypeDAO
        Parameters:
        locale - The current locale
        Returns:
        list The reference List