Class PortalComponentDAO

    • Constructor Detail

      • PortalComponentDAO

        public PortalComponentDAO()
    • Method Detail

      • insert

        public void insert​(PortalComponent portalComponent)
        Insert a new record in the table.
        Specified by:
        insert in interface IPortalComponentDAO
        Parameters:
        portalComponent - component The Instance of the object PortalComponent
      • load

        public PortalComponent load​(int nPortalComponentId)
        load the data of PortalComponent from the table
        Specified by:
        load in interface IPortalComponentDAO
        Parameters:
        nPortalComponentId - The indentifier of the object PortalComponent
        Returns:
        The Instance of the object PortalComponent
      • delete

        public void delete​(int nPortalComponentId)
        Delete a record from the table
        Specified by:
        delete in interface IPortalComponentDAO
        Parameters:
        nPortalComponentId - The indentifier of the object PortalComponent
      • store

        public void store​(PortalComponent portalComponent)
        Update the record in the table
        Specified by:
        store in interface IPortalComponentDAO
        Parameters:
        portalComponent - The instance of the PortalComponent to update
      • selectXslFile

        public StyleSheet selectXslFile​(int nPortalComponentId,
                                        int nIdMode)
        Returns the stylesheet of the portlet according to the mode
        Specified by:
        selectXslFile in interface IPortalComponentDAO
        Parameters:
        nPortalComponentId - the identifier of the portlet
        nIdMode - the selected mode
        Returns:
        the stylesheet