|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.persistence.GroupRepositoryImpl
public class GroupRepositoryImpl
JPA implementation of a group repository.
Constructor Summary | |
---|---|
GroupRepositoryImpl(javax.persistence.EntityManager em)
Constructor. |
|
GroupRepositoryImpl(ccc.persistence.Repository repo)
Constructor. |
Method Summary | |
---|---|
void |
create(GroupEntity g)
Create a new group in the repository. |
GroupEntity |
find(java.util.UUID groupId)
Look up a group from its Id. |
java.util.Collection<GroupEntity> |
list(java.lang.String name,
int pageNo,
int pageSize)
List groups. |
long |
totalCount(java.lang.String name)
Return number of group entities with given filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupRepositoryImpl(ccc.persistence.Repository repo)
repo
- The repository used to perform queries.public GroupRepositoryImpl(javax.persistence.EntityManager em)
em
- The JPA entity manager for this repository.Method Detail |
---|
public void create(GroupEntity g)
create
in interface GroupRepository
g
- The group to create.public GroupEntity find(java.util.UUID groupId)
find
in interface GroupRepository
groupId
- The UUID for the group.
public java.util.Collection<GroupEntity> list(java.lang.String name, int pageNo, int pageSize)
list
in interface GroupRepository
name
- Filter groups based on name. NULL disables the filter.pageNo
- The page of results to return.pageSize
- The number of results in a page.
public long totalCount(java.lang.String name)
totalCount
in interface GroupRepository
name
- Filter groups based on name. NULL disables the filter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |