Class FormResponseDAO
java.lang.Object
fr.paris.lutece.plugins.forms.business.FormResponseDAO
- All Implemented Interfaces:
IFormResponseDAO
This class provides Data Access methods for Form objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectAllCompletedFormResponseByUser(String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the FormResponse objects and returns them as a listselectAllFormResponsesId(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the primary keys of all the FormResponse objects and returns them as a listselectFormResponseByAdmin(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 listselectFormResponseByPrimaryKeyList(List<Integer> listIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all formResponses Objects for a given list of formResponses identifiersselectFormResponseByRole(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 listselectFormResponseByUser(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 listselectFormResponseList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the FormResponse objects and returns them as a listselectFormResponseListUncompleteByIdForm(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
-
Constructor Details
-
FormResponseDAO
public FormResponseDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIFormResponseDAO- Parameters:
formResponse- instance of the formResponse object to insertplugin- the Plugin
-
load
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
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
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
-