Class OptionalQuestionIndexationDAO

java.lang.Object
fr.paris.lutece.plugins.elasticdata.modules.forms.business.OptionalQuestionIndexationDAO
All Implemented Interfaces:
IOptionalQuestionIndexationDAO

@ApplicationScoped public final class OptionalQuestionIndexationDAO extends Object implements IOptionalQuestionIndexationDAO
This class provides Data Access methods for OptionalQuestionIndexation objects
  • Constructor Details

    • OptionalQuestionIndexationDAO

      public OptionalQuestionIndexationDAO()
  • Method Details

    • insert

      public void insert(OptionalQuestionIndexation optionalQuestionIndexation, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IOptionalQuestionIndexationDAO
      Parameters:
      optionalQuestionIndexation - instance of the OptionalQuestionIndexation object to insert
      plugin - the Plugin
    • load

      public OptionalQuestionIndexation load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IOptionalQuestionIndexationDAO
      Parameters:
      nKey - The identifier of the optionalQuestionIndexation
      plugin - the Plugin
      Returns:
      The instance of the optionalQuestionIndexation
    • loadByQuestionId

      public OptionalQuestionIndexation loadByQuestionId(int nQuestionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      loadByQuestionId in interface IOptionalQuestionIndexationDAO
      Parameters:
      nQuestionId - The identifier of the question
      plugin - the Plugin
      Returns:
      The instance of the optionalQuestionIndexation
    • delete

      public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IOptionalQuestionIndexationDAO
      Parameters:
      nKey - The identifier of the OptionalQuestionIndexation to delete
      plugin - the Plugin
    • store

      public void store(OptionalQuestionIndexation optionalQuestionIndexation, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IOptionalQuestionIndexationDAO
      Parameters:
      optionalQuestionIndexation - the reference of the OptionalQuestionIndexation
      plugin - the Plugin
    • selectOptionalQuestionIndexationsList

      public List<OptionalQuestionIndexation> selectOptionalQuestionIndexationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the optionalQuestionIndexation objects and returns them as a list
      Specified by:
      selectOptionalQuestionIndexationsList in interface IOptionalQuestionIndexationDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the optionalQuestionIndexation objects
    • selectOptionalQuestionIndexationsListByFormId

      public List<OptionalQuestionIndexation> selectOptionalQuestionIndexationsListByFormId(int nFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the optionalQuestionIndexation objects by form id and returns them as a list
      Specified by:
      selectOptionalQuestionIndexationsListByFormId in interface IOptionalQuestionIndexationDAO
      plugin - the Plugin
      Returns:
      The list which contains the data of all the optionalQuestionIndexation objects
    • selectIdOptionalQuestionIndexationsList

      public List<Integer> selectIdOptionalQuestionIndexationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the optionalQuestionIndexation objects and returns them as a list
      Specified by:
      selectIdOptionalQuestionIndexationsList in interface IOptionalQuestionIndexationDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the id of all the optionalQuestionIndexation objects