Class FormSubmitDAO
java.lang.Object
fr.paris.lutece.plugins.form.business.FormSubmitDAO
- All Implemented Interfaces:
IFormSubmitDAO
This class provides Data Access methods for FormResponse objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all response associate to the form submit whose identifier is specified in parameterintinsert(FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the formResponse from the tableintselectCountByFilter(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 listselectListByFilter(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 listselectStatisticFormSubmit(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 statisticvoidstore(FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the the formSubmit in the table
-
Constructor Details
-
FormSubmitDAO
public FormSubmitDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIFormSubmitDAO- Parameters:
formSubmit- instance of the formResponse object to insertplugin- the plugin- Returns:
- the id of the new form Submit
-
load
Load the data of the formResponse from the table- Specified by:
loadin interfaceIFormSubmitDAO- Parameters:
nIdFormSubmit- The identifier of the formResponseplugin- the plugin- Returns:
- the instance of the formSubmit
-
delete
public 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- Specified by:
deletein interfaceIFormSubmitDAO- Parameters:
nIdFormSubmit- The identifier of the formResponseplugin- the plugin
-
store
Update the the formSubmit in the table- Specified by:
storein interfaceIFormSubmitDAO- Parameters:
formSubmit- instance of the formSubmit object to updateplugin- the plugin
-
selectListByFilter
public List<FormSubmit> selectListByFilter(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- Specified by:
selectListByFilterin interfaceIFormSubmitDAO- Parameters:
filter- the filterplugin- the plugin- Returns:
- the list of formResponse
-
selectCountByFilter
public int selectCountByFilter(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- Specified by:
selectCountByFilterin interfaceIFormSubmitDAO- Parameters:
filter- the filterplugin- the plugin- Returns:
- the list of formResponse
-
selectStatisticFormSubmit
public List<StatisticFormSubmit> selectStatisticFormSubmit(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- Specified by:
selectStatisticFormSubmitin interfaceIFormSubmitDAO- Parameters:
filter- the filterplugin- the plugin- Returns:
- the list of statistic
-