Class ResponseDAO
java.lang.Object
fr.paris.lutece.plugins.form.business.ResponseDAO
- All Implemented Interfaces:
IResponseDAO
This class provides Data Access methods for Response objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdFormSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all responses associate to the form submit whose identifier is specified in parametergetStatisticByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) return a list of statistic on the entryvoidInsert a new record in the table.load(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the response from the tableselectListByFilter(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 listvoidUpdate the the response in the table
-
Constructor Details
-
ResponseDAO
public ResponseDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIResponseDAO- Parameters:
response- instance of the Response object to insertplugin- the plugin
-
load
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
Update the the response in the table- Specified by:
storein interfaceIResponseDAO- Parameters:
response- instance of the response object to updateplugin- the plugin
-
selectListByFilter
public 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 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
-