Class FeedbackTypeDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.modules.feedback.business.FeedbackTypeDAO
-
- All Implemented Interfaces:
IFeedbackTypeDAO
public final class FeedbackTypeDAO extends java.lang.Object implements IFeedbackTypeDAO
This class provides Data Access methods for FeedbackType objects
-
-
Constructor Summary
Constructors Constructor Description FeedbackTypeDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nFeedbackTypeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablejava.util.Optional<FeedbackType>findByOrder(int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableFeedbackTypeinsert(FeedbackType feedbackType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.java.util.Optional<FeedbackType>load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<FeedbackType>selectFeedbackTypesList(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
-
-
-
Method Detail
-
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
public java.util.Optional<FeedbackType> load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
public void store(FeedbackType feedbackType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIFeedbackTypeDAO- Parameters:
feedbackType- the reference of the FeedbackTypeplugin- the Plugin
-
selectFeedbackTypesList
public java.util.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 java.util.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
-
-