Class FormDisplayDAO

    • Constructor Detail

      • FormDisplayDAO

        public FormDisplayDAO()
    • Method Detail

      • insert

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

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

        public void store​(FormDisplay formDisplay,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IFormDisplayDAO
        Parameters:
        formDisplay - the reference of the FormDisplay
        plugin - the Plugin
      • selectFormDisplayList

        public List<FormDisplay> selectFormDisplayList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the FormDisplay objects and returns them as a list
        Specified by:
        selectFormDisplayList in interface IFormDisplayDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormDisplay objects
      • selectFormDisplayListByParent

        public List<FormDisplay> selectFormDisplayListByParent​(int nIdStep,
                                                               int nIdParent,
                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the FormDisplay objects by parent for a form step and returns them as a list
        Specified by:
        selectFormDisplayListByParent in interface IFormDisplayDAO
        Parameters:
        nIdStep - the step id
        nIdParent - the parent id
        plugin - the plugin to use
        Returns:
        The list which contains the data of all the FormDisplay objects
      • selectFormDisplayListByParentOrderByQuestionExportDisplayOrder

        public List<FormDisplay> selectFormDisplayListByParentOrderByQuestionExportDisplayOrder​(int nIdStep,
                                                                                                int nIdParent,
                                                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Specified by:
        selectFormDisplayListByParentOrderByQuestionExportDisplayOrder in interface IFormDisplayDAO
        nIdParent - TODO
        Returns:
        The list which contains the data of all the FormDisplay objects ordered by export_display_order column from forms_question
      • selectGroupDisplayReferenceListByStep

        public fr.paris.lutece.util.ReferenceList selectGroupDisplayReferenceListByStep​(int nIdStep,
                                                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IFormDisplayDAO
        Load the data of all the FormDisplay objects of type "Group" linked to a given FormStep and returns them as a referenceList
        Specified by:
        selectGroupDisplayReferenceListByStep in interface IFormDisplayDAO
        Parameters:
        nIdStep - the step identifier
        plugin - the plugin to use
        Returns:
        the referenceList which contains the data of all the Display objects of group type
      • selectFormdisplayByFormStepAndComposite

        public FormDisplay selectFormdisplayByFormStepAndComposite​(int nIdForm,
                                                                   int nIdStep,
                                                                   int nIdComposite,
                                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Select the FormDisplay associated to the given parameter
        Specified by:
        selectFormdisplayByFormStepAndComposite in interface IFormDisplayDAO
        Parameters:
        nIdForm - The identifier of the Form to match
        nIdStep - The identifier of the Step to match
        nIdComposite - The identifier of the Composite to match
        plugin - The plugin to use to execute the query
        Returns:
        the FormDisplay associated to the given parameter
      • selectFormDisplayListByForm

        public List<FormDisplay> selectFormDisplayListByForm​(int nIdForm,
                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IFormDisplayDAO
        Load the data of all the FormDisplay for a form and returns them as a list
        Specified by:
        selectFormDisplayListByForm in interface IFormDisplayDAO
        Parameters:
        nIdForm - the form id
        plugin - the plugin to use
        Returns:
        The list which contains the data of all the FormDisplay objects