Class QuicklinksPortletDAO

java.lang.Object
fr.paris.lutece.plugins.quicklinks.business.portlet.QuicklinksPortletDAO
All Implemented Interfaces:
IQuicklinksPortletDAO, fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO

@ApplicationScoped public final class QuicklinksPortletDAO extends Object implements IQuicklinksPortletDAO
This class provides Data Access methods for QuicklinksPortlet objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nPortletId)
    Deletes records for a portlet identifier in the table quicklinks_portlet
    void
    insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
    Insert a new record in the table quicklinks_portlet
    fr.paris.lutece.portal.business.portlet.Portlet
    load(int nPortletId)
    Loads the data of Quicklinks Portlet whose identifier is specified in parameter
    int
    return number of quicklinks portlet who are associate to the id quicklinks
    void
    store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
    Update the record in the table

    Methods inherited from class java.lang.Object

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

    • QuicklinksPortletDAO

      public QuicklinksPortletDAO()
  • Method Details

    • insert

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

      public void delete(int nPortletId)
      Deletes records for a portlet identifier in the table quicklinks_portlet
      Specified by:
      delete in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
      Specified by:
      delete in interface IQuicklinksPortletDAO
      Parameters:
      nPortletId - the portlet identifier
    • load

      public fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
      Loads the data of Quicklinks Portlet whose identifier is specified in parameter
      Specified by:
      load in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
      Specified by:
      load in interface IQuicklinksPortletDAO
      Parameters:
      nPortletId - The Portlet identifier
      Returns:
      theDocumentListPortlet object
    • selectCountPortletByIdQuicklinks

      public int selectCountPortletByIdQuicklinks(int nIdQuicklinks)
      return number of quicklinks portlet who are associate to the id quicklinks
      Specified by:
      selectCountPortletByIdQuicklinks in interface IQuicklinksPortletDAO
      Parameters:
      nIdQuicklinks - the id of the quicklinks
      Returns:
      number of quicklinks portlet who are associate to the id quicklinks
    • store

      public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
      Update the record in the table
      Specified by:
      store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
      Specified by:
      store in interface IQuicklinksPortletDAO
      Parameters:
      portlet - A portlet