Class ResponseDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.genericattributes.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 nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a response from its idintgetMaxNumber(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the max number from a given id resourcejava.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 tablevoidstoreFileKey(int nIdResponse, java.lang.String strFileKey, java.lang.String strFileOrigin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
-
-
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 entryplugin- the plugin- Returns:
- the instance of the Entry
-
delete
public void delete(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a response from its id- Specified by:
deletein interfaceIResponseDAO- Parameters:
nIdResponse- The identifier of the responseplugin- 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
-
getMaxNumber
public int getMaxNumber(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the max number from a given id resource- Specified by:
getMaxNumberin interfaceIResponseDAO- Parameters:
nIdEntry- the id of the entryplugin-Plugin- Returns:
- the max number
-
storeFileKey
public void storeFileKey(int nIdResponse, java.lang.String strFileKey, java.lang.String strFileOrigin, fr.paris.lutece.portal.service.plugin.Plugin plugin)- Specified by:
storeFileKeyin interfaceIResponseDAO
-
-