fr.paris.lutece.plugins.form.business
Class FormSubmitDAO

java.lang.Object
  extended by 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
FormSubmitDAO()
           
 
Method Summary
 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
 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
 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
 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
 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
 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

FormSubmitDAO

public FormSubmitDAO()
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:
insert in interface IFormSubmitDAO
Parameters:
formSubmit - instance of the formResponse object to insert
plugin - 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:
load in interface IFormSubmitDAO
Parameters:
nIdFormSubmit - The identifier of the formResponse
plugin - 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:
delete in interface IFormSubmitDAO
Parameters:
nIdFormSubmit - The identifier of the formResponse
plugin - 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:
store in interface IFormSubmitDAO
Parameters:
formSubmit - instance of the formSubmit object to update
plugin - 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:
selectListByFilter in interface IFormSubmitDAO
Parameters:
filter - the filter
plugin - 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:
selectCountByFilter in interface IFormSubmitDAO
Parameters:
filter - the filter
plugin - 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:
selectStatisticFormSubmit in interface IFormSubmitDAO
Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of statistic


Copyright © 2012 Mairie de Paris. All Rights Reserved.