eu.etaxonomy.cdm.persistence.dao.hibernate.common
Class GroupDaoImpl
java.lang.Object
eu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBase
eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase<Group>
eu.etaxonomy.cdm.persistence.dao.hibernate.common.GroupDaoImpl
- All Implemented Interfaces:
- ICdmEntityDao<Group>, IGroupDao
@Repository
public class GroupDaoImpl
- extends CdmEntityDaoBase<Group>
- implements IGroupDao
|
Method Summary |
int |
countByName(String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criterion)
Return a count of groups matching the given query string in the name, optionally filtered by class, optionally with a particular MatchMode |
List<Group> |
findByName(String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criterion,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Return a List of groups matching the given query string, optionally filtered by class, optionally with a particular MatchMode |
Group |
findGroupByName(String groupName)
|
List<String> |
listMembers(Group group,
Integer pageSize,
Integer pageNumber)
|
List<String> |
listNames(Integer pageSize,
Integer pageNumber)
|
| Methods inherited from class eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase |
addCriteria, addExample, addGroups, addOrder, clear, count, count, count, countByParam, countGroups, delete, exists, findById, findByParam, findByUuid, getSession, getType, group, list, list, list, list, list, list, list, list, listByIds, load, load, load, lock, merge, refresh, refresh, replace, rows, save, saveAll, saveCdmObj, saveOrUpdate, saveOrUpdateAll, setDefaultBeanInitializer, setPagingParameter, setPagingParameter, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.ICdmEntityDao |
clear, count, count, count, delete, exists, findById, findByUuid, flush, getSession, getType, group, list, list, list, list, list, list, list, listByIds, load, load, load, lock, merge, refresh, refresh, replace, rows, save, saveAll, saveOrUpdate, saveOrUpdateAll, update |
GroupDaoImpl
public GroupDaoImpl()
findGroupByName
public Group findGroupByName(String groupName)
- Specified by:
findGroupByName in interface IGroupDao
listNames
public List<String> listNames(Integer pageSize,
Integer pageNumber)
- Specified by:
listNames in interface IGroupDao
listMembers
public List<String> listMembers(Group group,
Integer pageSize,
Integer pageNumber)
- Specified by:
listMembers in interface IGroupDao
countByName
public int countByName(String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criterion)
- Description copied from interface:
IGroupDao
- Return a count of groups matching the given query string in the name, optionally filtered by class, optionally with a particular MatchMode
- Specified by:
countByName in interface IGroupDao
- Parameters:
queryString - the query string to filter bymatchmode - use a particular type of matching (can be null - defaults to exact matching)criterion - extra restrictions to apply
- Returns:
- a count of instances of type Group matching the queryString
- See Also:
IIdentifiableDao#countByTitle(Class, String, MatchMode, List)}
findByName
public List<Group> findByName(String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criterion,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
- Description copied from interface:
IGroupDao
- Return a List of groups matching the given query string, optionally filtered by class, optionally with a particular MatchMode
- Specified by:
findByName in interface IGroupDao
- Parameters:
queryString - the query string to filter bymatchmode - use a particular type of matching (can be null - defaults to exact matching)criterion - extra restrictions to applypageSize - The maximum number of rights returned (can be null for all rights)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints - Supports path like orderHints.propertyNames which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths - properties to initialize - see IBeanInitializer.initialize(Object, List)
- Returns:
- a List of instances of Group matching the queryString
- See Also:
IIdentifiableDao#findByTitle(Class, String, MatchMode, List, Integer, Integer, List, List)}
Copyright © 2007-2013 EDIT. All Rights Reserved.