Class QuestionDAO

  • All Implemented Interfaces:
    IQuestionDAO

    public final class QuestionDAO
    extends java.lang.Object
    implements IQuestionDAO
    This class provides Data Access methods for Question objects
    • Constructor Summary

      Constructors 
      Constructor Description
      QuestionDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(Question question, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Question load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<Question> loadByCode​(java.lang.String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Question loadByCodeAndEntry​(java.lang.String strCode, int idEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<Question> loadMultiple​(java.util.List<java.lang.Integer> keyList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<java.lang.Integer> selectIdQuestionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the question objects and returns them as a list
      java.util.List<Question> selectQuestionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the question objects and returns them as a list
      java.util.List<Question> selectQuestionsListByFormId​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the question objects by form id and returns them as a list
      java.util.List<Question> selectQuestionsListByFormIdUncomplete​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the question objects by form id and returns them as a list
      java.util.List<Question> selectQuestionsListByStep​(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the question objects by step and returns them as a list
      java.util.List<Question> selectQuestionsListUncomplete​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the question objects and returns them as a list
      fr.paris.lutece.util.ReferenceList selectQuestionsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the question objects and returns them as a referenceList
      fr.paris.lutece.util.ReferenceList selectQuestionsReferenceListByForm​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the question objects for the given form and returns them as a referenceList
      void store​(Question question, 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

      • QuestionDAO

        public QuestionDAO()
    • Method Detail

      • insert

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

        public Question load​(int nKey,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface IQuestionDAO
        Parameters:
        nKey - The identifier of the question
        plugin - the Plugin
        Returns:
        The instance of the question
      • loadByCode

        public java.util.List<Question> loadByCode​(java.lang.String strCode,
                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        loadByCode in interface IQuestionDAO
        Parameters:
        strCode - The code of the question
        plugin - the Plugin
        Returns:
        The instance of the question
      • loadByCodeAndEntry

        public Question loadByCodeAndEntry​(java.lang.String strCode,
                                           int idEntry,
                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IQuestionDAO
        Load the data from the table
        Specified by:
        loadByCodeAndEntry in interface IQuestionDAO
        Parameters:
        strCode - The code of the question
        plugin - the Plugin
        Returns:
        The instance of the question
      • 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 IQuestionDAO
        Parameters:
        nKey - The identifier of the Question to delete
        plugin - the Plugin
      • store

        public void store​(Question question,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IQuestionDAO
        Parameters:
        question - the reference of the Question
        plugin - the Plugin
      • selectQuestionsList

        public java.util.List<Question> selectQuestionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the question objects and returns them as a list
        Specified by:
        selectQuestionsList in interface IQuestionDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the question objects
      • selectQuestionsListByStep

        public java.util.List<Question> selectQuestionsListByStep​(int nIdStep,
                                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the question objects by step and returns them as a list
        Specified by:
        selectQuestionsListByStep in interface IQuestionDAO
        Parameters:
        nIdStep - the step id
        plugin - the Plugin
        Returns:
        The list which contains the data of all the question objects
      • selectIdQuestionsList

        public java.util.List<java.lang.Integer> selectIdQuestionsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the id of all the question objects and returns them as a list
        Specified by:
        selectIdQuestionsList in interface IQuestionDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the question objects
      • selectQuestionsListUncomplete

        public java.util.List<Question> selectQuestionsListUncomplete​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IQuestionDAO
        Load the data of all the question objects and returns them as a list
        Specified by:
        selectQuestionsListUncomplete in interface IQuestionDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the uncomplete data of all the question objects
      • selectQuestionsReferenceList

        public fr.paris.lutece.util.ReferenceList selectQuestionsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the question objects and returns them as a referenceList
        Specified by:
        selectQuestionsReferenceList in interface IQuestionDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the question objects
      • selectQuestionsListByFormId

        public java.util.List<Question> selectQuestionsListByFormId​(int nIdForm,
                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IQuestionDAO
        Load the data of all the question objects by form id and returns them as a list
        Specified by:
        selectQuestionsListByFormId in interface IQuestionDAO
        Parameters:
        nIdForm - The id of the form
        plugin - The plugin
        Returns:
        The list which contains the data of all the question objects by given form id
      • selectQuestionsListByFormIdUncomplete

        public java.util.List<Question> selectQuestionsListByFormIdUncomplete​(int nIdForm,
                                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IQuestionDAO
        Load the data of all the question objects by form id and returns them as a list
        Specified by:
        selectQuestionsListByFormIdUncomplete in interface IQuestionDAO
        Parameters:
        nIdForm - The id of the form
        plugin - The plugin
        Returns:
        The list which contains the data of all the question objects by given form id
      • selectQuestionsReferenceListByForm

        public fr.paris.lutece.util.ReferenceList selectQuestionsReferenceListByForm​(int nIdForm,
                                                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the question objects for the given form and returns them as a referenceList
        Specified by:
        selectQuestionsReferenceListByForm in interface IQuestionDAO
        Parameters:
        nIdForm - the form id
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the question objects
      • loadMultiple

        public java.util.List<Question> loadMultiple​(java.util.List<java.lang.Integer> keyList,
                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IQuestionDAO
        Load the data from the table
        Specified by:
        loadMultiple in interface IQuestionDAO
        Parameters:
        keyList - The identifiers of the questions
        plugin - the Plugin
        Returns:
        The list of questions