@Transactional public class GroupUserDao extends Object implements IDataProviderDao<GroupUser>
Modifier and Type | Field and Description |
---|---|
static String[] |
searchFields |
Constructor and Description |
---|
GroupUserDao() |
Modifier and Type | Method and Description |
---|---|
long |
count()
Count the number of instances of
T |
long |
count(long groupId) |
long |
count(long groupId,
String search) |
long |
count(String search)
Count the number of instances of
T |
void |
delete(GroupUser entity,
Long userId)
Delete an instance of
T |
List<GroupUser> |
get(int start,
int count)
Get a list of instances of
T |
GroupUser |
get(Long id)
Get an instance of an
T |
List<GroupUser> |
get(long groupId,
int start,
int count) |
List<GroupUser> |
get(long groupId,
String search,
int start,
int count,
String sort) |
List<GroupUser> |
get(String search,
int start,
int count,
String sort)
Get a list of instances of
T |
GroupUser |
getByGroupAndUser(long groupId,
long userId) |
boolean |
isUserInGroup(long groupId,
long userId) |
GroupUser |
update(GroupUser entity,
Long userId)
Update an instance of
T |
void |
update(List<GroupUser> list,
Long userId) |
public static final String[] searchFields
public GroupUser get(Long id)
IDataProviderDao
T
get
in interface IDataProviderDao<GroupUser>
id
- - id of instance to retrievepublic List<GroupUser> get(int start, int count)
IDataProviderDao
T
get
in interface IDataProviderDao<GroupUser>
start
- - the start to range to retrievecount
- - maximum instance count to retrievepublic List<GroupUser> get(String search, int start, int count, String sort)
IDataProviderDao
T
get
in interface IDataProviderDao<GroupUser>
search
- - string search criteria to filter entitiesstart
- - the start to range to retrievecount
- - maximum instance count to retrievesort
- - column and sort orderpublic GroupUser getByGroupAndUser(long groupId, long userId)
public boolean isUserInGroup(long groupId, long userId)
public long count()
IDataProviderDao
T
count
in interface IDataProviderDao<GroupUser>
public long count(String search)
IDataProviderDao
T
count
in interface IDataProviderDao<GroupUser>
search
- - string search criteria to filter entitiespublic long count(long groupId, String search)
public long count(long groupId)
public GroupUser update(GroupUser entity, Long userId)
IDataProviderDao
T
update
in interface IDataProviderDao<GroupUser>
entity
- - entity to be updateduserId
- - user performed updatepublic void delete(GroupUser entity, Long userId)
IDataProviderDao
T
delete
in interface IDataProviderDao<GroupUser>
entity
- - entity to be deleteduserId
- - user performed deleteCopyright © 2012–2016 Apache Software Foundation. All rights reserved.