Class FeedbackTypeDAO
java.lang.Object
fr.paris.lutece.plugins.extend.modules.feedback.business.FeedbackTypeDAO
- All Implemented Interfaces:
IFeedbackTypeDAO
This class provides Data Access methods for FeedbackType objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nFeedbackTypeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindByOrder(int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableinsert(FeedbackType feedbackType, 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 tableselectFeedbackTypesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the feedbackType objects and returns them as a Listvoidstore(FeedbackType feedbackType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
FeedbackTypeDAO
public FeedbackTypeDAO()
-
-
Method Details
-
insert
public FeedbackType insert(FeedbackType feedbackType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.- Specified by:
insertin interfaceIFeedbackTypeDAO- Parameters:
feedbackType- instance of the FeedbackType object to inssertplugin- the Plugin
-
load
Load the data from the table- Specified by:
loadin interfaceIFeedbackTypeDAOplugin- the Plugin- Returns:
- The instance of the feedbackType
-
delete
public void delete(int nFeedbackTypeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIFeedbackTypeDAO- Parameters:
nFeedbackTypeId- int identifier of the FeedbackType to deleteplugin- the Plugin
-
store
Update the record in the table- Specified by:
storein interfaceIFeedbackTypeDAO- Parameters:
feedbackType- the reference of the FeedbackTypeplugin- the Plugin
-
selectFeedbackTypesList
public List<FeedbackType> selectFeedbackTypesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the feedbackType objects and returns them as a List- Specified by:
selectFeedbackTypesListin interfaceIFeedbackTypeDAO- Parameters:
plugin- the Plugin- Returns:
- The List which contains the data of all the feedbackType objects
-
findByOrder
public Optional<FeedbackType> findByOrder(int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the table- Specified by:
findByOrderin interfaceIFeedbackTypeDAO- Parameters:
nOrder- The nOrderplugin- the Plugin- Returns:
- The instance of the feedbackType
-