Class 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
      void delete​(int nFeedbackTypeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      java.util.Optional<FeedbackType> findByOrder​(int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      FeedbackType insert​(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 table
      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
      void store​(FeedbackType feedbackType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.util.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 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:
        selectFeedbackTypesList in interface IFeedbackTypeDAO
        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:
        findByOrder in interface IFeedbackTypeDAO
        Parameters:
        nOrder - The nOrder
        plugin - the Plugin
        Returns:
        The instance of the feedbackType