|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.form.business.FormSubmitDAO
public final class FormSubmitDAO
This class provides Data Access methods for FormResponse objects
| Constructor Summary | |
|---|---|
FormSubmitDAO()
|
|
| Method Summary | |
|---|---|
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 all response associate to the form submit whose identifier is specified in parameter |
void |
deleteResponses(int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete responses and files associated with a form submit |
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 formSubmit 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 formSubmit 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 group by day 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 formSubmit in the table |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormSubmitDAO()
| Method Detail |
|---|
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 plugin
public FormSubmit load(int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IFormSubmitDAOnIdFormSubmit - The identifier of the formResponseplugin - the plugin
public void delete(int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IFormSubmitDAOnIdFormSubmit - The identifier of the formResponseplugin - the plugin
public void store(FormSubmit formSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IFormSubmitDAOformSubmit - instance of the formSubmit object to updateplugin - the plugin
public 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 plugin
public 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 plugin
public 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 plugin
public 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 plugin
public void deleteResponses(int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteResponses in interface IFormSubmitDAOnIdFormSubmit - The if of the form submit to removeplugin - The plugin
public FormSubmit findFormSubmitFromResponseId(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findFormSubmitFromResponseId in interface IFormSubmitDAOnIdResponse - The id of the responseplugin - The plugin
public List<Integer> getResponseListFromIdFormSubmit(int nIdFormSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getResponseListFromIdFormSubmit in interface IFormSubmitDAOnIdFormSubmit - The id of the form submitplugin - The plugin
public 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 plugin
public void removeResponseFormSubmitAssociation(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeResponseFormSubmitAssociation in interface IFormSubmitDAOnIdResponse - The id of the responseplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||