eu.etaxonomy.cdm.persistence.dao.hibernate.common
Class UserDaoImpl
java.lang.Object
eu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBase
eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase<User>
eu.etaxonomy.cdm.persistence.dao.hibernate.common.UserDaoImpl
- All Implemented Interfaces:
- ICdmEntityDao<User>, IUserDao
@Repository
public class UserDaoImpl
- extends CdmEntityDaoBase<User>
- implements IUserDao
|
Method Summary |
int |
countByUsername(String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criterion)
Return a count of users matching the given query string in the username, optionally filtered by class, optionally with a particular MatchMode |
List<User> |
findByUsername(String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criterion,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Return a List of users matching the given query string, optionally filtered by class, optionally with a particular MatchMode |
User |
findUserByUsername(String username)
|
| 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 |
UserDaoImpl
public UserDaoImpl()
findUserByUsername
public User findUserByUsername(String username)
- Specified by:
findUserByUsername in interface IUserDao
countByUsername
public int countByUsername(String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criterion)
- Description copied from interface:
IUserDao
- Return a count of users matching the given query string in the username, optionally filtered by class, optionally with a particular MatchMode
- Specified by:
countByUsername in interface IUserDao
- 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 User matching the queryString
- See Also:
IIdentifiableDao#countByTitle(Class, String, MatchMode, List)}
findByUsername
public List<User> findByUsername(String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criterion,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
- Description copied from interface:
IUserDao
- Return a List of users matching the given query string, optionally filtered by class, optionally with a particular MatchMode
- Specified by:
findByUsername in interface IUserDao
- 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 User matching the queryString
- See Also:
IIdentifiableDao#findByTitle(Class, String, MatchMode, List, Integer, Integer, List, List)}
Copyright © 2007-2013 EDIT. All Rights Reserved.