Interface ITemplateQuestionDAO

  • All Known Implementing Classes:
    TemplateQuestionDAO

    public interface ITemplateQuestionDAO
    ITemplateQuestionDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract 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
    • Method Detail

      • insert

        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.
        Parameters:
        question - instance of the Question object to insert
        plugin - the Plugin
      • store

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

        void delete​(int nKey,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nKey - The identifier of the Question to delete
        plugin - the Plugin
      • load

        fr.paris.lutece.plugins.forms.business.Question load​(int nKey,
                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the question
        plugin - the Plugin
        Returns:
        The instance of the question
      • selectQuestionsListByTemplate

        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
        Parameters:
        plugin - the Plugin
        nIdTemplate - the template id
        Returns:
        The list which contains the data of all the question objects