Class ControlGroupDAO

  • All Implemented Interfaces:
    IControlGroupDAO

    public final class ControlGroupDAO
    extends java.lang.Object
    implements IControlGroupDAO
    This class provides Data Access methods for ControlGroup objects
    • Constructor Summary

      Constructors 
      Constructor Description
      ControlGroupDAO()  
    • 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 insert​(ControlGroup controlGroup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      java.util.Optional<ControlGroup> load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.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
      java.util.List<ControlGroup> selectControlGroupsListByIds​(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.List<java.lang.Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      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
      java.util.List<java.lang.Integer> selectIdControlGroupsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the controlGroup objects and returns them as a list
      fr.paris.lutece.util.ReferenceList selectLogicalOperatorsReferenceList​(java.util.Locale locale)
      Load all logical operators from enum
      void store​(ControlGroup controlGroup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.util.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 java.util.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 java.util.List<java.lang.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​(java.util.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 java.util.List<ControlGroup> selectControlGroupsListByIds​(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                                         java.util.List<java.lang.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