Class TemplateControlDAO

    • 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 deleteByControlTarget​(int nIdControlTarget, fr.paris.lutece.plugins.forms.business.ControlType controlType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table by the control target
      void deleteControlQuestion​(int nControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteControlQuestionValue​(int nControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(int nIdControl, int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      void insert​(int nIdControl, int nIdQuestion, String strValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      void insert​(fr.paris.lutece.plugins.forms.business.Control control, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      fr.paris.lutece.plugins.forms.business.Control load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Set<Integer> loadIdQuestions​(int nIdControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      List<fr.paris.lutece.plugins.forms.business.Control> selectControlByControlTargetAndType​(int nIdControlTarget, fr.paris.lutece.plugins.forms.business.ControlType controlType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select a control for conditional display based on its attached display id
      List<fr.paris.lutece.plugins.forms.business.Control> selectControlByQuestion​(int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select control list based on its attached question and control type
      List<fr.paris.lutece.plugins.forms.business.Control> selectControlByQuestionAndType​(int nIdQuestion, String strControlType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select control list based on its attached question and control type
      List<fr.paris.lutece.plugins.forms.business.ControlMapping> selectMappingControlList​(int nIdControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the control mapping and returns them as a List
      void store​(fr.paris.lutece.plugins.forms.business.Control control, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Constructor Detail

      • TemplateControlDAO

        public TemplateControlDAO()
    • Method Detail

      • insert

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

        public void insert​(int nIdControl,
                           int nIdQuestion,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface ITemplateControlDAO
        nIdQuestion - the question id
        plugin - the Plugin
      • insert

        public void insert​(int nIdControl,
                           int nIdQuestion,
                           String strValue,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface ITemplateControlDAO
        nIdQuestion - the question id
        strValue - the value
        plugin - the Plugin
      • load

        public fr.paris.lutece.plugins.forms.business.Control load​(int nKey,
                                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface ITemplateControlDAO
        Parameters:
        nKey - The identifier of the control
        plugin - the Plugin
        Returns:
        The instance of the control
      • loadIdQuestions

        public Set<Integer> loadIdQuestions​(int nIdControl,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        loadIdQuestions in interface ITemplateControlDAO
        Parameters:
        nIdControl - The identifier of the control
        plugin - the Plugin
        Returns:
        The list of id questions
      • 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 ITemplateControlDAO
        Parameters:
        nKey - The identifier of the Control to delete
        plugin - the Plugin
      • deleteControlQuestion

        public void deleteControlQuestion​(int nControl,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Specified by:
        deleteControlQuestion in interface ITemplateControlDAO
        plugin - the Plugin
      • deleteControlQuestionValue

        public void deleteControlQuestionValue​(int nControl,
                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Specified by:
        deleteControlQuestionValue in interface ITemplateControlDAO
        plugin - the Plugin
      • deleteByControlTarget

        public void deleteByControlTarget​(int nIdControlTarget,
                                          fr.paris.lutece.plugins.forms.business.ControlType controlType,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table by the control target
        Specified by:
        deleteByControlTarget in interface ITemplateControlDAO
        Parameters:
        nIdControlTarget - The identifier of the Control target
        controlType - The control type
        plugin - the Plugin
      • store

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

        public List<fr.paris.lutece.plugins.forms.business.Control> selectControlByControlTargetAndType​(int nIdControlTarget,
                                                                                                        fr.paris.lutece.plugins.forms.business.ControlType controlType,
                                                                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ITemplateControlDAO
        Select a control for conditional display based on its attached display id
        Specified by:
        selectControlByControlTargetAndType in interface ITemplateControlDAO
        Parameters:
        nIdControlTarget - the control target id
        controlType - the control type
        plugin - the Plugin
        Returns:
        The control
      • selectControlByQuestionAndType

        public List<fr.paris.lutece.plugins.forms.business.Control> selectControlByQuestionAndType​(int nIdQuestion,
                                                                                                   String strControlType,
                                                                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ITemplateControlDAO
        Select control list based on its attached question and control type
        Specified by:
        selectControlByQuestionAndType in interface ITemplateControlDAO
        Parameters:
        nIdQuestion - the question id
        strControlType - the control type
        plugin - the Plugin
        Returns:
        The control
      • selectControlByQuestion

        public List<fr.paris.lutece.plugins.forms.business.Control> selectControlByQuestion​(int nIdQuestion,
                                                                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Select control list based on its attached question and control type
        Specified by:
        selectControlByQuestion in interface ITemplateControlDAO
        Parameters:
        nIdQuestion - the question id
        plugin - the Plugin
        Returns:
        The control
      • selectMappingControlList

        public List<fr.paris.lutece.plugins.forms.business.ControlMapping> selectMappingControlList​(int nIdControl,
                                                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ITemplateControlDAO
        Load the data of all the control mapping and returns them as a List
        Specified by:
        selectMappingControlList in interface ITemplateControlDAO
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the control mapping object