java.lang.Object
fr.paris.lutece.plugins.extend.modules.feedback.business.ExtendFeedbackDAO
All Implemented Interfaces:
IExtendFeedbackDAO

@ApplicationScoped public final class ExtendFeedbackDAO extends Object implements IExtendFeedbackDAO
This class provides Data Access methods for ExtendFeedback objects
  • 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:
      insert in interface IExtendFeedbackDAO
      Parameters:
      extendFeedback - instance of the ExtendFeedback object to inssert
      plugin - the Plugin
    • load

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

      public void store(ExtendFeedback extendFeedback, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IExtendFeedbackDAO
      Parameters:
      extendFeedback - the reference of the ExtendFeedback
      plugin - 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:
      selectExtendFeedbacksList in interface IExtendFeedbackDAO
      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:
      findAllByIdAndTypeResource in interface IExtendFeedbackDAO
      Parameters:
      nIdResource - The identifier of resource
      strResourceType - The type of resource
      plugin - 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: IExtendFeedbackDAO
      Load the data from the table
      Specified by:
      findByIdHistory in interface IExtendFeedbackDAO
      plugin - 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: IExtendFeedbackDAO
      Load the data of all the extendFeedback objects and returns them as a List
      Specified by:
      selectExtendFeedbacksList in interface IExtendFeedbackDAO
      plugin - the Plugin
      Returns:
      The List which contains the data of all the extendFeedback objects