Package org.dspace.eperson.dao.impl
Class EPersonDAOImpl
- java.lang.Object
-
- org.dspace.core.AbstractHibernateDAO<T>
-
- org.dspace.core.AbstractHibernateDSODAO<EPerson>
-
- org.dspace.eperson.dao.impl.EPersonDAOImpl
-
- All Implemented Interfaces:
DSpaceObjectDAO<EPerson>,DSpaceObjectLegacySupportDAO<EPerson>,GenericDAO<EPerson>,EPersonDAO
public class EPersonDAOImpl extends AbstractHibernateDSODAO<EPerson> implements EPersonDAO
Hibernate implementation of the Database Access Object interface class for the EPerson object. This class is responsible for all database calls for the EPerson object and is autowired by spring This class should never be accessed directly.- Author:
- kevinvandevelde at atmire.com
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEPersonDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountRows(Context context)List<EPerson>findAll(Context context, MetadataField metadataSortField, String sortField, int pageSize, int offset)List<EPerson>findAllSubscribers(Context context)EPersonfindByEmail(Context context, String email)List<EPerson>findByGroups(Context context, Set<Group> groups)EPersonfindByNetid(Context context, String netid)List<EPerson>findNotActiveSince(Context context, Date date)List<EPerson>findWithPasswordWithoutDigestAlgorithm(Context context)protected javax.persistence.QuerygetSearchQuery(Context context, String queryString, String queryParam, List<MetadataField> queryFields, List<MetadataField> sortFields, String sortField)protected javax.persistence.QuerygetSearchQuery(Context context, String queryString, String queryParam, List<MetadataField> queryFields, List<MetadataField> sortFields, String sortField, int pageSize, int offset)List<EPerson>search(Context context, String query, List<MetadataField> queryFields, List<MetadataField> sortFields, int offset, int limit)intsearchResultCount(Context context, String query, List<MetadataField> queryFields)-
Methods inherited from class org.dspace.core.AbstractHibernateDSODAO
addMetadataLeftJoin, addMetadataSortQuery, addMetadataSortQuery, addMetadataValueWhereQuery, findByLegacyId
-
Methods inherited from class org.dspace.core.AbstractHibernateDAO
count, count, countLong, create, createQuery, delete, executeCriteriaQuery, findAll, findAll, findByID, findByID, findByX, findMany, findMany, findUnique, getCriteriaBuilder, getCriteriaQuery, getHibernateSession, iterate, list, list, list, save, singleResult, singleResult, uniqueResult, uniqueResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.content.dao.DSpaceObjectLegacySupportDAO
findByLegacyId
-
Methods inherited from interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
findByEmail
public EPerson findByEmail(Context context, String email) throws SQLException
- Specified by:
findByEmailin interfaceEPersonDAO- Throws:
SQLException
-
findByNetid
public EPerson findByNetid(Context context, String netid) throws SQLException
- Specified by:
findByNetidin interfaceEPersonDAO- Throws:
SQLException
-
search
public List<EPerson> search(Context context, String query, List<MetadataField> queryFields, List<MetadataField> sortFields, int offset, int limit) throws SQLException
- Specified by:
searchin interfaceEPersonDAO- Throws:
SQLException
-
searchResultCount
public int searchResultCount(Context context, String query, List<MetadataField> queryFields) throws SQLException
- Specified by:
searchResultCountin interfaceEPersonDAO- Throws:
SQLException
-
findAll
public List<EPerson> findAll(Context context, MetadataField metadataSortField, String sortField, int pageSize, int offset) throws SQLException
- Specified by:
findAllin interfaceEPersonDAO- Throws:
SQLException
-
findByGroups
public List<EPerson> findByGroups(Context context, Set<Group> groups) throws SQLException
- Specified by:
findByGroupsin interfaceEPersonDAO- Throws:
SQLException
-
findWithPasswordWithoutDigestAlgorithm
public List<EPerson> findWithPasswordWithoutDigestAlgorithm(Context context) throws SQLException
- Specified by:
findWithPasswordWithoutDigestAlgorithmin interfaceEPersonDAO- Throws:
SQLException
-
findNotActiveSince
public List<EPerson> findNotActiveSince(Context context, Date date) throws SQLException
- Specified by:
findNotActiveSincein interfaceEPersonDAO- Throws:
SQLException
-
getSearchQuery
protected javax.persistence.Query getSearchQuery(Context context, String queryString, String queryParam, List<MetadataField> queryFields, List<MetadataField> sortFields, String sortField) throws SQLException
- Throws:
SQLException
-
getSearchQuery
protected javax.persistence.Query getSearchQuery(Context context, String queryString, String queryParam, List<MetadataField> queryFields, List<MetadataField> sortFields, String sortField, int pageSize, int offset) throws SQLException
- Throws:
SQLException
-
findAllSubscribers
public List<EPerson> findAllSubscribers(Context context) throws SQLException
- Specified by:
findAllSubscribersin interfaceEPersonDAO- Throws:
SQLException
-
countRows
public int countRows(Context context) throws SQLException
- Specified by:
countRowsin interfaceEPersonDAO- Throws:
SQLException
-
-