Class TemplateQuestionDAO

    • 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​(fr.paris.lutece.plugins.forms.business.Question question, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      fr.paris.lutece.plugins.forms.business.Question load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      List<fr.paris.lutece.plugins.forms.business.Question> selectQuestionsListByTemplate​(int nIdTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the question objects by step and returns them as a list
      void store​(fr.paris.lutece.plugins.forms.business.Question question, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Constructor Detail

      • TemplateQuestionDAO

        public TemplateQuestionDAO()
    • Method Detail

      • insert

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

        public fr.paris.lutece.plugins.forms.business.Question load​(int nKey,
                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface ITemplateQuestionDAO
        Parameters:
        nKey - The identifier 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 ITemplateQuestionDAO
        Parameters:
        nKey - The identifier of the Question to delete
        plugin - the Plugin
      • store

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

        public List<fr.paris.lutece.plugins.forms.business.Question> selectQuestionsListByTemplate​(int nIdTemplate,
                                                                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ITemplateQuestionDAO
        Load the data of all the question objects by step and returns them as a list
        Specified by:
        selectQuestionsListByTemplate in interface ITemplateQuestionDAO
        Parameters:
        nIdTemplate - the template id
        plugin - the Plugin
        Returns:
        The list which contains the data of all the question objects