public final class FormResponseDAO extends Object implements IFormResponseDAO
Constructor and Description |
---|
FormResponseDAO() |
Modifier and Type | Method and 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
|
void |
insert(FormResponse formResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
FormResponse |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
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
|
FormResponse |
selectFormResponseForBackup(String strGuid,
int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the FormResponse objects and returns them as a list
|
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
|
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
|
void |
store(FormResponse formResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(FormResponse formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IFormResponseDAO
formResponse
- instance of the formResponse object to insertplugin
- the Pluginpublic FormResponse load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IFormResponseDAO
nKey
- The identifier of the FormResponseplugin
- the Pluginpublic void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IFormResponseDAO
nKey
- The identifier of the FormResponse to deleteplugin
- the Pluginpublic void store(FormResponse formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IFormResponseDAO
formResponse
- the reference of the FormResponseplugin
- the Pluginpublic List<FormResponse> selectFormResponseList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFormResponseList
in interface IFormResponseDAO
plugin
- the Pluginpublic List<Integer> selectAllFormResponsesId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAllFormResponsesId
in interface IFormResponseDAO
public List<FormResponse> selectFormResponseListUncompleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFormResponseListUncompleteByIdForm
in interface IFormResponseDAO
nIdForm
- the id of the formplugin
- the Pluginpublic FormResponse selectFormResponseForBackup(String strGuid, int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFormResponseForBackup
in interface IFormResponseDAO
strGuid
- the given guidnIdForm
- the form id keyplugin
- the Pluginpublic void deleteByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByForm
in interface IFormResponseDAO
nIdForm
- The form Identifierplugin
- the PluginCopyright © 2020 City of Paris. All rights reserved.