Class ChildPagesPortletDAO

java.lang.Object
fr.paris.lutece.plugins.childpages.business.portlet.ChildPagesPortletDAO
All Implemented Interfaces:
IChildPagesPortletDAO, fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO

public final class ChildPagesPortletDAO extends Object implements IChildPagesPortletDAO
This class provides Data Access methods for ChildPagesPortlet objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nPortletId)
    Deletes a record from the table
    getChildPagesPortlets(int parentPageId)
    Returns the list of ChildPages portlets whose parent page id is specified
    void
    insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
    Insert a new record in the table childpages_portlet
    fr.paris.lutece.portal.business.portlet.Portlet
    load(int nPortletId)
    Loads the data of a ChildPagesPortlet whose identifier is specified in parameter from the table
    fr.paris.lutece.util.ReferenceList
    selectChildPagesList(int nPageId)
    Load the list of the child pages of a page whose identifier is specified in parameter
    fr.paris.lutece.util.ReferenceList
    Load the list of all the pages of the database
    void
    store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
    Updates a record in the table with the Portlet instance specified in parameter

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChildPagesPortletDAO

      public ChildPagesPortletDAO()
  • Method Details

    • insert

      public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
      Insert a new record in the table childpages_portlet
      Specified by:
      insert in interface IChildPagesPortletDAO
      Specified by:
      insert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
      Parameters:
      portlet - the instance of the Portlet object to insert
    • delete

      public void delete(int nPortletId)
      Deletes a record from the table
      Specified by:
      delete in interface IChildPagesPortletDAO
      Specified by:
      delete in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
      Parameters:
      nPortletId - Identifier portlet
    • load

      public fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
      Loads the data of a ChildPagesPortlet whose identifier is specified in parameter from the table
      Specified by:
      load in interface IChildPagesPortletDAO
      Specified by:
      load in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
      Parameters:
      nPortletId - The ChildPagesPortlet identifier
      Returns:
      the ChildPagesPortlet object
    • store

      public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
      Updates a record in the table with the Portlet instance specified in parameter
      Specified by:
      store in interface IChildPagesPortletDAO
      Specified by:
      store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
      Parameters:
      portlet - the instance of Portlet class to be updated
    • selectChildPagesList

      public fr.paris.lutece.util.ReferenceList selectChildPagesList(int nPageId)
      Load the list of the child pages of a page whose identifier is specified in parameter
      Specified by:
      selectChildPagesList in interface IChildPagesPortletDAO
      Parameters:
      nPageId - the identifier of the page
      Returns:
      the list in form of a ReferenceList object
    • selectPagesList

      public fr.paris.lutece.util.ReferenceList selectPagesList()
      Load the list of all the pages of the database
      Specified by:
      selectPagesList in interface IChildPagesPortletDAO
      Returns:
      the list in form of a ReferenceList object
    • getChildPagesPortlets

      public List<ChildPagesPortlet> getChildPagesPortlets(int parentPageId)
      Description copied from interface: IChildPagesPortletDAO
      Returns the list of ChildPages portlets whose parent page id is specified
      Specified by:
      getChildPagesPortlets in interface IChildPagesPortletDAO
      Parameters:
      parentPageId - the parent page id
      Returns:
      list of ChildPages portlets whose parent page id is parentPageId