Class GroupDAO

java.lang.Object
fr.paris.lutece.plugins.forms.business.GroupDAO
All Implemented Interfaces:
IGroupDAO

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    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.
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectGroupsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the group objects and returns them as a list
    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
    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GroupDAO

      public GroupDAO()
  • Method Details

    • 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