Class TemplateQuestionHome


  • public final class TemplateQuestionHome
    extends Object
    This class provides instances management methods (create, find, ...) for Question objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void create​(fr.paris.lutece.plugins.forms.business.Question question)
      Create an instance of the question class
      static fr.paris.lutece.plugins.forms.business.Question findByPrimaryKey​(int nKey)
      Returns an instance of a question whose identifier is specified in parameter
      static List<fr.paris.lutece.plugins.forms.business.Question> getQuestionsListByStep​(int nIdTemplate)
      Load the data of all the question objects and returns them as a list
      static void remove​(int nKey)
      Remove the question whose identifier is specified in parameter.
      static void update​(fr.paris.lutece.plugins.forms.business.Question question)
      Update of the question which is specified in parameter
    • Method Detail

      • create

        public static void create​(fr.paris.lutece.plugins.forms.business.Question question)
        Create an instance of the question class
        Parameters:
        question - The instance of the Question which contains the informations to store
      • update

        public static void update​(fr.paris.lutece.plugins.forms.business.Question question)
        Update of the question which is specified in parameter
        Parameters:
        question - The instance of the Question which contains the data to store
      • remove

        public static void remove​(int nKey)
        Remove the question whose identifier is specified in parameter. The associated Entry and EntryResponses will be also deleted
        Parameters:
        nKey - The question Id
      • findByPrimaryKey

        public static fr.paris.lutece.plugins.forms.business.Question findByPrimaryKey​(int nKey)
        Returns an instance of a question whose identifier is specified in parameter
        Parameters:
        nKey - The question primary key
        Returns:
        an instance of Question
      • getQuestionsListByStep

        public static List<fr.paris.lutece.plugins.forms.business.Question> getQuestionsListByStep​(int nIdTemplate)
        Load the data of all the question objects and returns them as a list
        Parameters:
        nIdTemplate - The step primary key
        Returns:
        the list which contains the data of all the question objects