Class DisplayDAO

  • All Implemented Interfaces:
    IDisplayDAO

    public final class DisplayDAO
    extends java.lang.Object
    implements IDisplayDAO
    This class provides Data Access methods for Display objects
    Author:
    Laurent Payen
    • Constructor Summary

      Constructors 
      Constructor Description
      DisplayDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nIdDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteByIdForm​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Display findByIdForm​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns the display of the given form
      void insert​(Display display, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Display select​(int nIdDisplay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      void update​(Display display, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      • Methods inherited from class java.lang.Object

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

      • DisplayDAO

        public DisplayDAO()
    • Method Detail

      • insert

        public void insert​(Display display,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IDisplayDAO
        Insert a new record in the table.
        Specified by:
        insert in interface IDisplayDAO
        Parameters:
        display - instance of the Display object to insert
        plugin - the Plugin
      • update

        public void update​(Display display,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IDisplayDAO
        Update the record in the table
        Specified by:
        update in interface IDisplayDAO
        Parameters:
        display - the reference of the Display
        plugin - the Plugin
      • delete

        public void delete​(int nIdDisplay,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IDisplayDAO
        Delete a record from the table
        Specified by:
        delete in interface IDisplayDAO
        Parameters:
        nIdDisplay - identifier of the Display to delete
        plugin - the Plugin
      • deleteByIdForm

        public void deleteByIdForm​(int nIdForm,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IDisplayDAO
        Delete a record from the table
        Specified by:
        deleteByIdForm in interface IDisplayDAO
        Parameters:
        nIdForm - identifier of the form
        plugin - the Plugin
      • select

        public Display select​(int nIdDisplay,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IDisplayDAO
        Load the data from the table
        Specified by:
        select in interface IDisplayDAO
        Parameters:
        nIdDisplay - The identifier of the Display
        plugin - the Plugin
        Returns:
        The instance of the Display
      • findByIdForm

        public Display findByIdForm​(int nIdForm,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IDisplayDAO
        Returns the display of the given form
        Specified by:
        findByIdForm in interface IDisplayDAO
        Parameters:
        nIdForm - the form id
        plugin - the plugin
        Returns:
        the form display