Class FormSubmitDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.form.business.FormSubmitDAO
-
- All Implemented Interfaces:
IFormSubmitDAO
public final class FormSubmitDAO extends java.lang.Object implements IFormSubmitDAO
This class provides Data Access methods for FormResponse objects
-
-
Constructor Summary
Constructors Constructor Description FormSubmitDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(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.FormSubmitload(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 listjava.util.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 listjava.util.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 statisticvoidstore(FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the the formSubmit in the table
-
-
-
Method Detail
-
insert
public int insert(FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
public FormSubmit load(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
public void store(FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the the formSubmit in the table- Specified by:
storein interfaceIFormSubmitDAO- Parameters:
formSubmit- instance of the formSubmit object to updateplugin- the plugin
-
selectListByFilter
public java.util.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 java.util.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
-
-