Interface IFormResponseDAO

All Known Implementing Classes:
FormResponseDAO

public interface IFormResponseDAO
IFormResponseDAO Interface
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    deleteByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove all the formResponse linked to a given Form
    boolean
    deleteIfDraft(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete the record of a form response only if it is still a draft (from_save = 1) in the table
    getFormResponseByFilter(FormResponseFilter formResponseFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the formResponse from filter
    void
    insert(FormResponse formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectAllCompletedFormResponseByUser(String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the FormResponse objects and returns them as a list
    selectAllFormResponsesId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the primary keys of all the FormResponse objects and returns them as a list
    selectFormResponseByAdmin(String strAdmin, int nIdForm, boolean fromBackup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the FormResponse objects and returns them as a list
    selectFormResponseByPrimaryKeyList(List<Integer> listIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all formResponses Objects for a given list of formResponses identifiers
    selectFormResponseByRole(List<String> listRole, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the FormResponse objects by front office role and returns them as a list
    selectFormResponseByUser(String strGuid, int nIdForm, boolean fromBackup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the FormResponse objects and returns them as a list
    selectFormResponseList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the FormResponse objects and returns them as a list
    selectFormResponseListUncompleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the FormResponse objects and returns them as a list
    void
    store(FormResponse formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table
    boolean
    storeIfDraft(FormResponse formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record of a form response only if it is still a draft (from_save = 1) in the table
  • Method Details

    • insert

      void insert(FormResponse formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Parameters:
      formResponse - instance of the formResponse object to insert
      plugin - the Plugin
    • store

      void store(FormResponse formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Parameters:
      formResponse - the reference of the FormResponse
      plugin - the Plugin
    • delete

      void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Parameters:
      nKey - The identifier of the FormResponse to delete
      plugin - the Plugin
    • storeIfDraft

      boolean storeIfDraft(FormResponse formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record of a form response only if it is still a draft (from_save = 1) in the table
      Parameters:
      formResponse - the FormResponse to update
      plugin - the Plugin
      Returns:
      true if the record was a draft and has been updated, false otherwise
    • deleteIfDraft

      boolean deleteIfDraft(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete the record of a form response only if it is still a draft (from_save = 1) in the table
      Parameters:
      nKey - The identifier of the FormResponse to delete
      plugin - the Plugin
      Returns:
      true if the record was a draft and has been deleted, false otherwise
    • load

      FormResponse load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Parameters:
      nKey - The identifier of the FormResponse
      plugin - the Plugin
      Returns:
      The instance of the FormResponse
    • selectFormResponseList

      List<FormResponse> selectFormResponseList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormResponse objects and returns them as a list
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the FormResponse objects
    • selectAllFormResponsesId

      List<Integer> selectAllFormResponsesId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the primary keys of all the FormResponse objects and returns them as a list
      Parameters:
      plugin -
      Returns:
      the list of the primary keys of all the form responses
    • selectFormResponseListUncompleteByIdForm

      List<FormResponse> selectFormResponseListUncompleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormResponse objects and returns them as a list
      Parameters:
      nIdForm - the id of the form
      plugin - the Plugin
      Returns:
      The list which contains the data of all the FormResponse objects
    • selectFormResponseByUser

      List<FormResponse> selectFormResponseByUser(String strGuid, int nIdForm, boolean fromBackup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormResponse objects and returns them as a list
      Parameters:
      strGuid - the given guid
      nIdForm - the form id key
      plugin - the Plugin
      Returns:
      The list which contains the data of all the FormResponse objects
    • selectFormResponseByAdmin

      List<FormResponse> selectFormResponseByAdmin(String strAdmin, int nIdForm, boolean fromBackup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormResponse objects and returns them as a list
      Parameters:
      strGuid - the given admin id
      nIdForm - the form id key
      plugin - the Plugin
      Returns:
      The list which contains the data of all the FormResponse objects
    • selectAllCompletedFormResponseByUser

      List<FormResponse> selectAllCompletedFormResponseByUser(String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormResponse objects and returns them as a list
      Parameters:
      strGuid - the given guid
      plugin - the Plugin
      Returns:
      The list which contains the data of all the FormResponse objects
    • selectFormResponseByRole

      List<FormResponse> selectFormResponseByRole(List<String> listRole, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormResponse objects by front office role and returns them as a list
      Parameters:
      listRole - the given role FO
      plugin - the Plugin
      Returns:
      The list which contains the data of all the FormResponse objects
    • selectFormResponseByPrimaryKeyList

      List<FormResponse> selectFormResponseByPrimaryKeyList(List<Integer> listIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all formResponses Objects for a given list of formResponses identifiers
      Parameters:
      listIdFormResponse - the list of formResponses identifiers
      plugin - the Plugin
      Returns:
      The list which contains the data of all the FormResponse objects
    • deleteByForm

      void deleteByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove all the formResponse linked to a given Form
      Parameters:
      nIdForm - The form Identifier
      plugin - the Plugin
    • getFormResponseByFilter

      List<FormResponse> getFormResponseByFilter(FormResponseFilter formResponseFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the formResponse from filter
      Parameters:
      formResponseFilter - the formResponseFilter
      plugin - the Plugin
      Returns:
      the formResponse objects