public class GroupDAO extends HibernateRepository<Group>
Group objects.| Constructor and Description |
|---|
GroupDAO() |
| Modifier and Type | Method and Description |
|---|---|
Group |
get(long id)
Retrieve
Group object from the database by its id. |
Group |
getByUUID(String uuid)
Retrieve
Group object from the database by its uuid. |
List<Group> |
getGroupsBy(GroupType type,
boolean isAutoJoin)
Retrieves groups by type and
autoJoin value |
List<Group> |
getGroupsByType(GroupType type,
int offset,
int limit) |
long |
getGroupsByTypeCount(GroupType type) |
List<Group> |
getMatchingGroups(Account account,
String token,
int limit) |
long |
getMemberCount(String uuid) |
List<String> |
getMemberGroupUUIDs(Account account)
Retrieves all UUIDs that the specified account either owns or is a member of
|
List<Group> |
retrieveMemberGroups(Account account) |
create, currentSession, delete, get, getBuilder, updatepublic Group get(long id)
Group object from the database by its id.id - group unique identifierDAOException - on Exceptionpublic Group getByUUID(String uuid)
Group object from the database by its uuid.uuid - universally unique identifier for groupDAOExceptionpublic long getMemberCount(String uuid)
public List<String> getMemberGroupUUIDs(Account account)
account - accountDAOException - on hibernate exceptionpublic long getGroupsByTypeCount(GroupType type)
public List<Group> getGroupsBy(GroupType type, boolean isAutoJoin)
autoJoin valuetype - type of groups to retrieveisAutoJoin - auto join statusDAOException - on Exception retrieving groupsCopyright © 2017. All rights reserved.