Class FormResponseDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.FormResponseDAO
-
- All Implemented Interfaces:
IFormResponseDAO
public final class FormResponseDAO extends Object implements IFormResponseDAO
This class provides Data Access methods for Form objects
-
-
Constructor Summary
Constructors Constructor Description FormResponseDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoiddeleteByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove all the formResponse linked to a given Formvoidinsert(FormResponse formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.FormResponseload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableList<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 listList<Integer>selectAllFormResponsesId(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the primary keys of all the FormResponse objects and returns them as a listList<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 listList<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 identifiersList<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 listList<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 listList<FormResponse>selectFormResponseList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the FormResponse objects and returns them as a listList<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 listvoidstore(FormResponse formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(FormResponse formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIFormResponseDAO- Parameters:
formResponse- instance of the formResponse object to insertplugin- the Plugin
-
load
public FormResponse load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIFormResponseDAO- Parameters:
nKey- The identifier of the FormResponseplugin- the Plugin- Returns:
- The instance of the FormResponse
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIFormResponseDAO- Parameters:
nKey- The identifier of the FormResponse to deleteplugin- the Plugin
-
store
public void store(FormResponse formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIFormResponseDAO- Parameters:
formResponse- the reference of the FormResponseplugin- the Plugin
-
selectFormResponseList
public 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- Specified by:
selectFormResponseListin interfaceIFormResponseDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the FormResponse objects
-
selectAllFormResponsesId
public 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- Specified by:
selectAllFormResponsesIdin interfaceIFormResponseDAO- Returns:
- the list of the primary keys of all the form responses
-
selectFormResponseListUncompleteByIdForm
public 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- Specified by:
selectFormResponseListUncompleteByIdFormin interfaceIFormResponseDAO- Parameters:
nIdForm- the id of the formplugin- the Plugin- Returns:
- The list which contains the data of all the FormResponse objects
-
selectFormResponseByUser
public 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- Specified by:
selectFormResponseByUserin interfaceIFormResponseDAO- Parameters:
strGuid- the given guidnIdForm- the form id keyplugin- the Plugin- Returns:
- The list which contains the data of all the FormResponse objects
-
selectFormResponseByAdmin
public 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- Specified by:
selectFormResponseByAdminin interfaceIFormResponseDAOnIdForm- the form id keyplugin- the Plugin- Returns:
- The list which contains the data of all the FormResponse objects
-
selectAllCompletedFormResponseByUser
public List<FormResponse> selectAllCompletedFormResponseByUser(String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormResponseDAOLoad the data of all the FormResponse objects and returns them as a list- Specified by:
selectAllCompletedFormResponseByUserin interfaceIFormResponseDAO- Parameters:
strGuid- the given guidplugin- the Plugin- Returns:
- The list which contains the data of all the FormResponse objects
-
selectFormResponseByRole
public List<FormResponse> selectFormResponseByRole(List<String> listRole, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IFormResponseDAOLoad the data of all the FormResponse objects by front office role and returns them as a list- Specified by:
selectFormResponseByRolein interfaceIFormResponseDAO- Parameters:
listRole- the given role FOplugin- the Plugin- Returns:
- The list which contains the data of all the FormResponse objects
-
selectFormResponseByPrimaryKeyList
public 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- Specified by:
selectFormResponseByPrimaryKeyListin interfaceIFormResponseDAO- Parameters:
listIdFormResponse- the list of formResponses identifiersplugin- the Plugin- Returns:
- The list which contains the data of all the FormResponse objects
-
deleteByForm
public void deleteByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove all the formResponse linked to a given Form- Specified by:
deleteByFormin interfaceIFormResponseDAO- Parameters:
nIdForm- The form Identifierplugin- the Plugin
-
-