Class GroupDAO

  • All Implemented Interfaces:
    IGroupDAO

    public final class GroupDAO
    extends Object
    implements IGroupDAO
    This class provides Data Access methods for Group objects
    • Constructor Summary

      Constructors 
      Constructor Description
      GroupDAO()  
    • 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​(Group group, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Group load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      List<Group> selectGroupsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the group objects and returns them as a list
      List<Group> selectGroupsListByListIdStep​(List<Integer> idSteplist, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the group objects and returns them as a list
      fr.paris.lutece.util.ReferenceList selectGroupsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the group objects and returns them as a referenceList
      List<Integer> selectIdGroupsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the group objects and returns them as a list
      void store​(Group group, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Constructor Detail

      • GroupDAO

        public GroupDAO()
    • Method Detail

      • insert

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

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

        public void store​(Group group,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IGroupDAO
        Parameters:
        group - the reference of the Group
        plugin - the Plugin
      • selectGroupsList

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

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

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

        public List<Group> selectGroupsListByListIdStep​(List<Integer> idSteplist,
                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IGroupDAO
        Load the data of all the group objects and returns them as a list
        Specified by:
        selectGroupsListByListIdStep in interface IGroupDAO
        plugin - the Plugin
        Returns:
        The list which contains the data of all the group objects