Class FormResponseStepDAO

    • 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 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