Class RequestItemDAOImpl
- java.lang.Object
-
- org.dspace.core.AbstractHibernateDAO<RequestItem>
-
- org.dspace.app.requestitem.dao.impl.RequestItemDAOImpl
-
- All Implemented Interfaces:
RequestItemDAO,GenericDAO<RequestItem>
public class RequestItemDAOImpl extends AbstractHibernateDAO<RequestItem> implements RequestItemDAO
Hibernate implementation of the Database Access Object interface class for the RequestItem object. This class is responsible for all database calls for the RequestItem object and is autowired by Spring. This class should never be accessed directly.- Author:
- kevinvandevelde at atmire.com
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRequestItemDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<RequestItem>findByItem(Context context, Item item)RequestItemfindByToken(Context context, String token)Fetch a request named by its unique token (passed in emails).-
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, 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.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
findByToken
public RequestItem findByToken(Context context, String token) throws SQLException
Description copied from interface:RequestItemDAOFetch a request named by its unique token (passed in emails).- Specified by:
findByTokenin interfaceRequestItemDAO- Parameters:
context- the current DSpace context.token- uniquely identifies the request.- Returns:
- the found request (or
null?) - Throws:
SQLException- passed through.
-
findByItem
public Iterator<RequestItem> findByItem(Context context, Item item) throws SQLException
- Specified by:
findByItemin interfaceRequestItemDAO- Throws:
SQLException
-
-