Class MyLutecePortletDAO

  • All Implemented Interfaces:
    IMyLutecePortletDAO, fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO

    public final class MyLutecePortletDAO
    extends java.lang.Object
    implements IMyLutecePortletDAO
    this class provides Data Access methods for HtmlPortlet objects
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nPortletId)
      Delete a record from the table
      void insert​(fr.paris.lutece.portal.business.portlet.Portlet portlet)
      Insert a new record in the table.
      fr.paris.lutece.portal.business.portlet.Portlet load​(int nPortletId)
      loads the data of portlet from the table
      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 Detail

      • MyLutecePortletDAO

        public MyLutecePortletDAO()
    • Method Detail

      • insert

        public void insert​(fr.paris.lutece.portal.business.portlet.Portlet portlet)
        Insert a new record in the table.
        Specified by:
        insert in interface IMyLutecePortletDAO
        Specified by:
        insert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        portlet - the object to be inserted
      • delete

        public void delete​(int nPortletId)
        Delete a record from the table
        Specified by:
        delete in interface IMyLutecePortletDAO
        Specified by:
        delete in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        nPortletId - the Html Portlet identifier
      • load

        public fr.paris.lutece.portal.business.portlet.Portlet load​(int nPortletId)
        loads the data of portlet from the table
        Specified by:
        load in interface IMyLutecePortletDAO
        Specified by:
        load in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        nPortletId - The Html Portlet identifier
        Returns:
        the Html Portlet object
      • store

        public void store​(fr.paris.lutece.portal.business.portlet.Portlet portlet)
        Update the record in the table
        Specified by:
        store in interface IMyLutecePortletDAO
        Specified by:
        store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
        Parameters:
        portlet - the instance of Portlet class to be updated