Class GroupHome


  • public final class GroupHome
    extends Object
    This class provides instances management methods (create, find, ...) for Group objects
    • Method Detail

      • create

        public static Group create​(Group group)
        Create an instance of the group class
        Parameters:
        group - The instance of the Group which contains the informations to store
        Returns:
        The instance of group which has been created with its primary key.
      • update

        public static Group update​(Group group)
        Update of the group which is specified in parameter
        Parameters:
        group - The instance of the Group which contains the data to store
        Returns:
        The instance of the group which has been updated
      • remove

        public static void remove​(int nKey)
        Remove the group whose identifier is specified in parameter
        Parameters:
        nKey - The group Id
      • findByPrimaryKey

        public static Group findByPrimaryKey​(int nKey)
        Returns an instance of a group whose identifier is specified in parameter
        Parameters:
        nKey - The group primary key
        Returns:
        an instance of Group
      • getGroupsList

        public static List<Group> getGroupsList()
        Load the data of all the group objects and returns them as a list
        Returns:
        the list which contains the data of all the group objects
      • getIdGroupsList

        public static List<Integer> getIdGroupsList()
        Load the id of all the group objects and returns them as a list
        Returns:
        the list which contains the id of all the group objects
      • getGroupsReferenceList

        public static fr.paris.lutece.util.ReferenceList getGroupsReferenceList()
        Load the data of all the group objects and returns them as a referenceList
        Returns:
        the referenceList which contains the data of all the group objects
      • getGroupsListByIdStepList

        public static List<Group> getGroupsListByIdStepList​(List<Integer> idStepList)
        Load the data of all the group objects and returns them as a list
        Parameters:
        idStepList -
        Returns:
        the list which contains the data of all the group objects