Class ResponseDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.form.business.ResponseDAO
-
- All Implemented Interfaces:
IResponseDAO
public final class ResponseDAO extends java.lang.Object implements IResponseDAO
This class provides Data Access methods for Response objects
-
-
Constructor Summary
Constructors Constructor Description ResponseDAO()
-
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 responses associate to the form submit whose identifier is specified in parameterjava.util.List<StatisticEntrySubmit>getStatisticByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)return a list of statistic on the entryvoidinsert(Response response, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Responseload(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of the response from the tablejava.util.List<Response>selectListByFilter(ResponseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the response who verify the filter and returns them in a listvoidstore(Response response, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the the response in the table
-
-
-
Method Detail
-
insert
public void insert(Response response, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIResponseDAO- Parameters:
response- instance of the Response object to insertplugin- the plugin
-
load
public Response load(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the response from the table- Specified by:
loadin interfaceIResponseDAO- Parameters:
nIdResponse- The identifier of the responseplugin- the plugin- Returns:
- the instance of the response
-
delete
public void delete(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete all responses associate to the form submit whose identifier is specified in parameter- Specified by:
deletein interfaceIResponseDAO- Parameters:
nIdFormSubmit- The identifier of the formSubmitplugin- the plugin
-
store
public void store(Response response, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the the response in the table- Specified by:
storein interfaceIResponseDAO- Parameters:
response- instance of the response object to updateplugin- the plugin
-
selectListByFilter
public java.util.List<Response> selectListByFilter(ResponseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the response who verify the filter and returns them in a list- Specified by:
selectListByFilterin interfaceIResponseDAO- Parameters:
filter- the filterplugin- the plugin- Returns:
- the list of response
-
getStatisticByIdEntry
public java.util.List<StatisticEntrySubmit> getStatisticByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
return a list of statistic on the entry- Specified by:
getStatisticByIdEntryin interfaceIResponseDAO- Parameters:
nIdEntry- the id of the entryplugin- the plugin- Returns:
- return a list of statistic on the entry
-
-