Class FormResponseStepDAO

  • All Implemented Interfaces:
    IFormResponseStepDAO

    public final class FormResponseStepDAO
    extends java.lang.Object
    implements IFormResponseStepDAO
    This class provides Data Access methods for Form objects
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteByFormResponse​(int nIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove all the formResponseStep linked to a given FormResponse
      void deleteByStep​(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Removes all the formResponseStep linked to a given step
      void insert​(FormResponseStep formResponseStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      FormResponseStep load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<FormResponseStep> selectFormResponseStepsByFormResponse​(int nIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the order steps list by FormResponse id
      void store​(FormResponseStep formResponseStep, 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

      • FormResponseStepDAO

        public FormResponseStepDAO()
    • Method Detail

      • insert

        public void insert​(FormResponseStep formResponseStep,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface IFormResponseStepDAO
        Parameters:
        formResponseStep - instance of the formResponseStep object to insert
        plugin - the Plugin
      • load

        public FormResponseStep load​(int nKey,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface IFormResponseStepDAO
        Parameters:
        nKey - The identifier of the FormResponseStep
        plugin - the Plugin
        Returns:
        The instance of the FormResponseStep
      • delete

        public void delete​(int nKey,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Specified by:
        delete in interface IFormResponseStepDAO
        Parameters:
        nKey - The identifier of the FormResponseStep to delete
        plugin - the Plugin
      • store

        public void store​(FormResponseStep formResponseStep,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IFormResponseStepDAO
        Parameters:
        formResponseStep - the reference of the FormResponseStep
        plugin - the Plugin
      • deleteByFormResponse

        public void deleteByFormResponse​(int nIdFormResponse,
                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove all the formResponseStep linked to a given FormResponse
        Specified by:
        deleteByFormResponse in interface IFormResponseStepDAO
        Parameters:
        nIdFormResponse - The form Identifier
        plugin - the Plugin
      • deleteByStep

        public void deleteByStep​(int nIdStep,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Removes all the formResponseStep linked to a given step
        Specified by:
        deleteByStep in interface IFormResponseStepDAO
        Parameters:
        nIdStep - The step id
        plugin - the Plugin
      • selectFormResponseStepsByFormResponse

        public java.util.List<FormResponseStep> selectFormResponseStepsByFormResponse​(int nIdFormResponse,
                                                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the order steps list by FormResponse id
        Specified by:
        selectFormResponseStepsByFormResponse in interface IFormResponseStepDAO
        Parameters:
        nIdFormResponse - The identifier of the FormResponse
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponseStep objects