Constructor and Description |
---|
JpaGroupSet(javax.persistence.EntityManager aEm)
Constructs the group set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Group aGroup)
Adds a group.
|
boolean |
contains(Group aGroup)
Determines if the group exists.
|
Group |
find(String aName)
Finds the group by name.
|
void |
groupModified(Group aGroup)
Must be called when the group has been modified to notify the group set.
|
Set<Group> |
list()
Returns the current groups.
|
boolean |
remove(Group aGroup)
Removes a group.
|
int |
size() |
public JpaGroupSet(javax.persistence.EntityManager aEm)
aEm
- Contextual reference to an entity manager.public boolean add(Group aGroup)
GroupSet
public boolean contains(Group aGroup)
GroupSet
public Group find(String aName)
GroupSet
public void groupModified(Group aGroup)
GroupSet
groupModified
in interface GroupSet
aGroup
- Group that was modified.public Set<Group> list()
GroupSet
public boolean remove(Group aGroup)
GroupSet
Copyright © 2022. All rights reserved.