Class FormQuestionResponseDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.FormQuestionResponseDAO
-
- All Implemented Interfaces:
IFormQuestionResponseDAO
public final class FormQuestionResponseDAO extends Object implements IFormQuestionResponseDAO
This class provides Data Access methods for Form objects
-
-
Constructor Summary
Constructors Constructor Description FormQuestionResponseDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompleteListWithEntryResponses(List<FormQuestionResponse> formQuestionResponsesList, fr.paris.lutece.portal.service.plugin.Plugin plugin)Populates the FormQuestionResponse of the list with their Response values.voiddelete(FormQuestionResponse formQuestionResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tableintfindMaxIterationNumberByQuestion(int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find the maximum iteration number for a given questionvoidinsert(FormQuestionResponse formQuestionResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.FormQuestionResponseload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableFormQuestionResponseselectFormQuestionResponseByEntryResponse(fr.paris.lutece.plugins.genericattributes.business.Response response, fr.paris.lutece.portal.service.plugin.Plugin plugin)Retrieves the form question responses associated to the given Entry Response.List<FormQuestionResponse>selectFormQuestionResponseByQuestion(int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)Retrieves the form question responses associated to the specified question.List<FormQuestionResponse>selectFormQuestionResponseByResponseForQuestion(int nIdFormResponse, int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)Retrieves the form question responses associated to the given form response for the specified question.List<FormQuestionResponse>selectFormQuestionResponseList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the FormQuestionResponse objects and returns them as a listList<FormQuestionResponse>selectFormQuestionResponseListByFormResponse(int nIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the FormQuestionResponse objects for saving and returns them as a listList<FormQuestionResponse>selectFormQuestionResponseListByFormResponseIdList(List<Integer> listIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the FormQuestionResponse objects and returns them as a listList<FormQuestionResponse>selectFormQuestionResponseListByListFormResponseStep(List<FormResponseStep> listFormResponseStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the FormQuestionResponse objects and returns them as a listList<FormQuestionResponse>selectFormQuestionResponseListByStepAndFormResponse(int nIdFormResponse, int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the FormQuestionResponse objects and returns them as a listvoidstore(FormQuestionResponse formQuestionResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(FormQuestionResponse formQuestionResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIFormQuestionResponseDAO- Parameters:
formQuestionResponse- instance of the formQuestionResponse object to insertplugin- the Plugin
-
load
public FormQuestionResponse load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIFormQuestionResponseDAO- Parameters:
nKey- The identifier of the FormQuestionResponseplugin- the Plugin- Returns:
- The instance of the FormQuestionResponse
-
delete
public void delete(FormQuestionResponse formQuestionResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table- Specified by:
deletein interfaceIFormQuestionResponseDAO- Parameters:
formQuestionResponse- The formQuestionResponse to deleteplugin- the Plugin
-
selectFormQuestionResponseByQuestion
public List<FormQuestionResponse> selectFormQuestionResponseByQuestion(int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Retrieves the form question responses associated to the specified question.- Specified by:
selectFormQuestionResponseByQuestionin interfaceIFormQuestionResponseDAO- Parameters:
nIdQuestion- The identifier of the Questionplugin- The Plugin to use to execute the query- Returns:
- the list of form question responses
-
selectFormQuestionResponseByEntryResponse
public FormQuestionResponse selectFormQuestionResponseByEntryResponse(fr.paris.lutece.plugins.genericattributes.business.Response response, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormQuestionResponseDAORetrieves the form question responses associated to the given Entry Response.- Specified by:
selectFormQuestionResponseByEntryResponsein interfaceIFormQuestionResponseDAO- Returns:
-
store
public void store(FormQuestionResponse formQuestionResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIFormQuestionResponseDAO- Parameters:
formQuestionResponse- the reference of the FormQuestionResponseplugin- the Plugin
-
selectFormQuestionResponseList
public List<FormQuestionResponse> selectFormQuestionResponseList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the FormQuestionResponse objects and returns them as a list- Specified by:
selectFormQuestionResponseListin interfaceIFormQuestionResponseDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the FormQuestionResponse objects
-
selectFormQuestionResponseListByStepAndFormResponse
public List<FormQuestionResponse> selectFormQuestionResponseListByStepAndFormResponse(int nIdFormResponse, int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the FormQuestionResponse objects and returns them as a list- Specified by:
selectFormQuestionResponseListByStepAndFormResponsein interfaceIFormQuestionResponseDAO- Parameters:
nIdFormResponse- The identifier of the FormResponsenIdStep- The identifier of the Stepplugin- the Plugin- Returns:
- The list which contains the data of all the FormQuestionResponse objects
-
selectFormQuestionResponseListByListFormResponseStep
public List<FormQuestionResponse> selectFormQuestionResponseListByListFormResponseStep(List<FormResponseStep> listFormResponseStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormQuestionResponseDAOLoad the data of all the FormQuestionResponse objects and returns them as a list- Specified by:
selectFormQuestionResponseListByListFormResponseStepin interfaceIFormQuestionResponseDAOplugin- the Plugin- Returns:
- The list which contains the data of all the FormQuestionResponse objects
-
selectFormQuestionResponseListByFormResponse
public List<FormQuestionResponse> selectFormQuestionResponseListByFormResponse(int nIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the FormQuestionResponse objects for saving and returns them as a list- Specified by:
selectFormQuestionResponseListByFormResponsein interfaceIFormQuestionResponseDAO- Parameters:
nIdFormResponse- The identifier of the FormResponseplugin- the Plugin- Returns:
- The list which contains the data of all the FormQuestionResponse objects
-
selectFormQuestionResponseByResponseForQuestion
public List<FormQuestionResponse> selectFormQuestionResponseByResponseForQuestion(int nIdFormResponse, int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Retrieves the form question responses associated to the given form response for the specified question.- Specified by:
selectFormQuestionResponseByResponseForQuestionin interfaceIFormQuestionResponseDAO- Parameters:
nIdFormResponse- The identifier of the FormResponsenIdQuestion- The identifier of the Questionplugin- The Plugin to use to execute the query- Returns:
- the found form question responses
-
selectFormQuestionResponseListByFormResponseIdList
public List<FormQuestionResponse> selectFormQuestionResponseListByFormResponseIdList(List<Integer> listIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the FormQuestionResponse objects and returns them as a list- Specified by:
selectFormQuestionResponseListByFormResponseIdListin interfaceIFormQuestionResponseDAO- Parameters:
listIdFormResponse- The identifier of the FormResponseplugin- the Plugin- Returns:
- The list which contains the data of all the FormQuestionResponse objects
-
completeListWithEntryResponses
public void completeListWithEntryResponses(List<FormQuestionResponse> formQuestionResponsesList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormQuestionResponseDAOPopulates the FormQuestionResponse of the list with their Response values.- Specified by:
completeListWithEntryResponsesin interfaceIFormQuestionResponseDAO
-
findMaxIterationNumberByQuestion
public int findMaxIterationNumberByQuestion(int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find the maximum iteration number for a given question- Specified by:
findMaxIterationNumberByQuestionin interfaceIFormQuestionResponseDAO- Parameters:
nIdQuestion- The identifier of the Questionplugin- The Plugin to use to execute the query- Returns:
- the maximum iteration number
-
-