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