public final class FormSubmitDAO extends Object implements IFormSubmitDAO
| Constructor and Description |
|---|
FormSubmitDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
anonymizeEntries(List<Integer> listIdEntries,
Timestamp dateCleanTo,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Anonymize entries of responses
|
void |
associateResponseWithFormSubmit(int nIdResponse,
int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Associate a response with a form submit
|
void |
delete(int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
FormSubmit |
findFormSubmitFromResponseId(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a form submit from the id of a response associated with it
|
List<Integer> |
getResponseListFromIdFormSubmit(int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of responses associated with a form submit
|
int |
insert(FormSubmit formSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
FormSubmit |
load(int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the formResponse from the table
|
void |
removeResponseFormSubmitAssociation(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the association between a response and a form submit
|
int |
selectCountByFilter(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the formResponse who verify the filter and returns
them in a list
|
List<FormSubmit> |
selectListByFilter(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the formResponse who verify the filter and returns
them in a list
|
List<StatisticFormSubmit> |
selectStatisticFormSubmit(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the number of formSubmit who verify the filter and returns them in a
list of statistic
|
void |
store(FormSubmit formSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the the formResponse in the table
|
public int insert(FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IFormSubmitDAOformSubmit - instance of the formResponse object to insertplugin - the pluginpublic FormSubmit load(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IFormSubmitDAOnIdFormSubmit - The identifier of the formResponseplugin - the pluginpublic void delete(int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IFormSubmitDAOnIdFormSubmit - The identifier of the formResponseplugin - the pluginpublic void store(FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IFormSubmitDAOformSubmit - instance of the formResponse object to updateplugin - the pluginpublic List<FormSubmit> selectListByFilter(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectListByFilter in interface IFormSubmitDAOfilter - the filterplugin - the pluginpublic int selectCountByFilter(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCountByFilter in interface IFormSubmitDAOfilter - the filterplugin - the pluginpublic List<StatisticFormSubmit> selectStatisticFormSubmit(fr.paris.lutece.plugins.genericattributes.business.ResponseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectStatisticFormSubmit in interface IFormSubmitDAOfilter - the filterplugin - the pluginpublic void anonymizeEntries(List<Integer> listIdEntries, Timestamp dateCleanTo, fr.paris.lutece.portal.service.plugin.Plugin plugin)
anonymizeEntries in interface IFormSubmitDAOlistIdEntries - The list of id of entries to anonymize responses ofdateCleanTo - Anonymize responses posted before this dateplugin - The pluginpublic FormSubmit findFormSubmitFromResponseId(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findFormSubmitFromResponseId in interface IFormSubmitDAOnIdResponse - The id of the responseplugin - The pluginpublic List<Integer> getResponseListFromIdFormSubmit(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getResponseListFromIdFormSubmit in interface IFormSubmitDAOnIdFormSubmit - The id of the form submitplugin - The pluginpublic void associateResponseWithFormSubmit(int nIdResponse,
int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
associateResponseWithFormSubmit in interface IFormSubmitDAOnIdResponse - The id of the responsenIdFormSubmit - The id of the form submitplugin - The pluginpublic void removeResponseFormSubmitAssociation(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeResponseFormSubmitAssociation in interface IFormSubmitDAOnIdResponse - The id of the responseplugin - The pluginCopyright © 2015 Mairie de Paris. All rights reserved.