Interface IControlDAO

  • All Known Implementing Classes:
    ControlDAO

    public interface IControlDAO
    IControlDAO 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 deleteByControlTarget​(int nIdControlTarget, 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, java.lang.String strValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      void insert​(Control control, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Control load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.Set<java.lang.Integer> loadIdQuestions​(int nIdControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<Control> selectControlByControlTargetAndType​(int nIdControlTarget, ControlType controlType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select a control for conditional display based on its attached display id
      java.util.List<Control> selectControlByQuestion​(int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select control list based on its attached question and control type
      java.util.List<Control> selectControlByQuestionAndType​(int nIdQuestion, java.lang.String strControlType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Select control list based on its attached question and control type
      java.util.List<Control> selectControlsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the control objects and returns them as a list
      fr.paris.lutece.util.ReferenceList selectControlsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the control objects and returns them as a referenceList
      java.util.List<java.lang.Integer> selectIdControlsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the control objects and returns them as a list
      java.util.List<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
      fr.paris.lutece.util.ReferenceList selectMappingControlReferenceList​(int nIdControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the control mapping and returns them as a referenceList
      void store​(Control control, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

        void insert​(Control control,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        control - instance of the Control object to insert
        plugin - the Plugin
      • insert

        void insert​(int nIdControl,
                    int nIdQuestion,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        nIdcontrol - id of the Control object to insert
        nIdQuestion - the question id
        plugin - the Plugin
      • insert

        void insert​(int nIdControl,
                    int nIdQuestion,
                    java.lang.String strValue,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        nIdcontrol - id of the Control object to insert
        nIdQuestion - the question id
        strValue - the value
        plugin - the Plugin
      • store

        void store​(Control control,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        control - the reference of the Control
        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 Control to delete
        plugin - the Plugin
      • deleteControlQuestion

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

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

        void deleteByControlTarget​(int nIdControlTarget,
                                   ControlType controlType,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table by the control target
        Parameters:
        nIdControlTarget - The identifier of the Control target
        controlType - The control type
        plugin - the Plugin
      • load

        Control load​(int nKey,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the control
        plugin - the Plugin
        Returns:
        The instance of the control
      • loadIdQuestions

        java.util.Set<java.lang.Integer> loadIdQuestions​(int nIdControl,
                                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nIdControl - The identifier of the control
        plugin - the Plugin
        Returns:
        The list of id questions
      • selectControlsList

        java.util.List<Control> selectControlsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the control objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the control objects
      • selectIdControlsList

        java.util.List<java.lang.Integer> selectIdControlsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the id of all the control objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the control objects
      • selectControlsReferenceList

        fr.paris.lutece.util.ReferenceList selectControlsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the control objects and returns them as a referenceList
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the control objects
      • selectControlByControlTargetAndType

        java.util.List<Control> selectControlByControlTargetAndType​(int nIdControlTarget,
                                                                    ControlType controlType,
                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Select a control for conditional display based on its attached display id
        Parameters:
        nIdControlTarget - the control target id
        controlType - the control type
        plugin - the Plugin
        Returns:
        The control
      • selectControlByQuestionAndType

        java.util.List<Control> selectControlByQuestionAndType​(int nIdQuestion,
                                                               java.lang.String strControlType,
                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Select control list based on its attached question and control type
        Parameters:
        nIdQuestion - the question id
        strControlType - the control type
        plugin - the Plugin
        Returns:
        The control
      • selectControlByQuestion

        java.util.List<Control> selectControlByQuestion​(int nIdQuestion,
                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Select control list based on its attached question and control type
        Parameters:
        nIdQuestion - the question id
        plugin - the Plugin
        Returns:
        The control
      • selectMappingControlReferenceList

        fr.paris.lutece.util.ReferenceList selectMappingControlReferenceList​(int nIdControl,
                                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the control mapping and returns them as a referenceList
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the control mapping object
      • selectMappingControlList

        java.util.List<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
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the control mapping object