Class ExtendFeedbackDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.modules.feedback.business.ExtendFeedbackDAO
-
- All Implemented Interfaces:
IExtendFeedbackDAO
public final class ExtendFeedbackDAO extends Object implements IExtendFeedbackDAO
This class provides Data Access methods for ExtendFeedback objects
-
-
Constructor Summary
Constructors Constructor Description ExtendFeedbackDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nExtendFeedbackId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tableList<ExtendFeedback>findAllByIdAndTypeResource(int nIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableOptional<ExtendFeedback>findByIdHistory(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablevoidinsert(ExtendFeedback extendFeedback, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Optional<ExtendFeedback>load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableList<ExtendFeedback>selectExtendFeedbacksList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the extendFeedback objects and returns them as a ListList<ExtendFeedback>selectExtendFeedbacksList(String strStatus, String strSorting, String strFeedbackType, String extendableResourceTypeFilter, fr.paris.lutece.plugins.extend.business.extender.ResourceExtenderDTO resourceExtenderDTO, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the extendFeedback objects and returns them as a Listvoidstore(ExtendFeedback extendFeedback, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(ExtendFeedback extendFeedback, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIExtendFeedbackDAO- Parameters:
extendFeedback- instance of the ExtendFeedback object to inssertplugin- the Plugin
-
load
public Optional<ExtendFeedback> load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIExtendFeedbackDAOplugin- the Plugin- Returns:
- The instance of the extendFeedback
-
delete
public void delete(int nExtendFeedbackId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIExtendFeedbackDAO- Parameters:
nExtendFeedbackId- int identifier of the ExtendFeedback to deleteplugin- the Plugin
-
store
public void store(ExtendFeedback extendFeedback, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIExtendFeedbackDAO- Parameters:
extendFeedback- the reference of the ExtendFeedbackplugin- the Plugin
-
selectExtendFeedbacksList
public List<ExtendFeedback> selectExtendFeedbacksList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the extendFeedback objects and returns them as a List- Specified by:
selectExtendFeedbacksListin interfaceIExtendFeedbackDAO- Parameters:
plugin- the Plugin- Returns:
- The List which contains the data of all the extendFeedback objects
-
findAllByIdAndTypeResource
public List<ExtendFeedback> findAllByIdAndTypeResource(int nIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
findAllByIdAndTypeResourcein interfaceIExtendFeedbackDAO- Parameters:
nIdResource- The identifier of resourcestrResourceType- The type of resourceplugin- the Plugin- Returns:
- The instance of the extendFeedback
-
findByIdHistory
public Optional<ExtendFeedback> findByIdHistory(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IExtendFeedbackDAOLoad the data from the table- Specified by:
findByIdHistoryin interfaceIExtendFeedbackDAOplugin- the Plugin- Returns:
- The instance of the extendFeedback
-
selectExtendFeedbacksList
public List<ExtendFeedback> selectExtendFeedbacksList(String strStatus, String strSorting, String strFeedbackType, String extendableResourceTypeFilter, fr.paris.lutece.plugins.extend.business.extender.ResourceExtenderDTO resourceExtenderDTO, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IExtendFeedbackDAOLoad the data of all the extendFeedback objects and returns them as a List- Specified by:
selectExtendFeedbacksListin interfaceIExtendFeedbackDAOplugin- the Plugin- Returns:
- The List which contains the data of all the extendFeedback objects
-
-