Class ControlGroupDAO

    • Constructor Detail

      • ControlGroupDAO

        public ControlGroupDAO()
    • Method Detail

      • insert

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

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

        public void store​(ControlGroup controlGroup,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IControlGroupDAO
        Parameters:
        controlGroup - the reference of the ControlGroup
        plugin - the Plugin
      • selectControlGroupsList

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

        public List<Integer> selectIdControlGroupsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the id of all the controlGroup objects and returns them as a list
        Specified by:
        selectIdControlGroupsList in interface IControlGroupDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the controlGroup objects
      • selectControlGroupsReferenceList

        public fr.paris.lutece.util.ReferenceList selectControlGroupsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the controlGroup objects and returns them as a referenceList
        Specified by:
        selectControlGroupsReferenceList in interface IControlGroupDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the controlGroup objects
      • selectLogicalOperatorsReferenceList

        public fr.paris.lutece.util.ReferenceList selectLogicalOperatorsReferenceList​(Locale locale)
        Description copied from interface: IControlGroupDAO
        Load all logical operators from enum
        Specified by:
        selectLogicalOperatorsReferenceList in interface IControlGroupDAO
        Parameters:
        locale - TODO
        Returns:
        The referenceList which contains the logical operators
      • selectControlGroupsListByIds

        public List<ControlGroup> selectControlGroupsListByIds​(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                               List<Integer> listIds)
        Load the data of all the avant objects and returns them as a list
        Specified by:
        selectControlGroupsListByIds in interface IControlGroupDAO
        listIds - liste of ids
        Returns:
        The list which contains the data of all the avant objects