public final class ResponseDAO extends Object implements IResponseDAO
Constructor and Description |
---|
ResponseDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a response from its id
|
int |
getMaxNumber(int nIdEntry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the max number from a given id resource
|
List<StatisticEntrySubmit> |
getStatisticByIdEntry(int nIdEntry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
return a list of statistic on the entry
|
void |
insert(Response response,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Response |
load(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the response from the table
|
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
|
void |
store(Response response,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the the response in the table
|
public void insert(Response response, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IResponseDAO
response
- instance of the Response object to insertplugin
- the pluginpublic Response load(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IResponseDAO
nIdResponse
- The identifier of the entryplugin
- the pluginpublic void delete(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IResponseDAO
nIdResponse
- The identifier of the responseplugin
- the pluginpublic void store(Response response, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IResponseDAO
response
- instance of the response object to updateplugin
- the pluginpublic List<Response> selectListByFilter(ResponseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectListByFilter
in interface IResponseDAO
filter
- the filterplugin
- the pluginpublic List<StatisticEntrySubmit> getStatisticByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getStatisticByIdEntry
in interface IResponseDAO
nIdEntry
- the id of the entryplugin
- the pluginpublic int getMaxNumber(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getMaxNumber
in interface IResponseDAO
nIdEntry
- the id of the entryplugin
- Plugin
Copyright © 2020 City of Paris. All rights reserved.