Class ExtendFeedbackDAO
java.lang.Object
fr.paris.lutece.plugins.extend.modules.feedback.business.ExtendFeedbackDAO
- All Implemented Interfaces:
IExtendFeedbackDAO
This class provides Data Access methods for ExtendFeedback objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nExtendFeedbackId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindAllByIdAndTypeResource(int nIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tablefindByIdHistory(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.load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectExtendFeedbacksList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the extendFeedback objects and returns them as a ListselectExtendFeedbacksList(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
-
Constructor Details
-
ExtendFeedbackDAO
public ExtendFeedbackDAO()
-
-
Method Details
-
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
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
-