Class FeedbackTypeDAO

    • Constructor Detail

      • FeedbackTypeDAO

        public FeedbackTypeDAO()
    • 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:
        insert in interface IFeedbackTypeDAO
        Parameters:
        feedbackType - instance of the FeedbackType object to inssert
        plugin - the Plugin
      • load

        public Optional<FeedbackType> load​(int nId,
                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface IFeedbackTypeDAO
        plugin - 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:
        delete in interface IFeedbackTypeDAO
        Parameters:
        nFeedbackTypeId - int identifier of the FeedbackType to delete
        plugin - the Plugin
      • store

        public void store​(FeedbackType feedbackType,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IFeedbackTypeDAO
        Parameters:
        feedbackType - the reference of the FeedbackType
        plugin - 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:
        selectFeedbackTypesList in interface IFeedbackTypeDAO
        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:
        findByOrder in interface IFeedbackTypeDAO
        Parameters:
        nOrder - The nOrder
        plugin - the Plugin
        Returns:
        The instance of the feedbackType