Package org.dspace.content.dao.impl
Class WorkspaceItemDAOImpl
- java.lang.Object
-
- org.dspace.core.AbstractHibernateDAO<WorkspaceItem>
-
- org.dspace.content.dao.impl.WorkspaceItemDAOImpl
-
- All Implemented Interfaces:
WorkspaceItemDAO,GenericDAO<WorkspaceItem>
public class WorkspaceItemDAOImpl extends AbstractHibernateDAO<WorkspaceItem> implements WorkspaceItemDAO
Hibernate implementation of the Database Access Object interface class for the WorkspaceItem object. This class is responsible for all database calls for the WorkspaceItem object and is autowired by Spring. This class should never be accessed directly.- Author:
- kevinvandevelde at atmire.com
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWorkspaceItemDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountRows(Context context)intcountRows(Context context, EPerson ep)List<WorkspaceItem>findAll(Context context)List<WorkspaceItem>findAll(Context context, Integer limit, Integer offset)List<WorkspaceItem>findByCollection(Context context, Collection c)List<WorkspaceItem>findByEPerson(Context context, EPerson ep)List<WorkspaceItem>findByEPerson(Context context, EPerson ep, Integer limit, Integer offset)WorkspaceItemfindByItem(Context context, Item i)List<WorkspaceItem>findBySupervisedGroupMember(Context context, EPerson ePerson)List<WorkspaceItem>findWithSupervisedGroup(Context context)List<Map.Entry<Integer,Long>>getStageReachedCounts(Context context)-
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
-
findByEPerson
public List<WorkspaceItem> findByEPerson(Context context, EPerson ep) throws SQLException
- Specified by:
findByEPersonin interfaceWorkspaceItemDAO- Throws:
SQLException
-
findByEPerson
public List<WorkspaceItem> findByEPerson(Context context, EPerson ep, Integer limit, Integer offset) throws SQLException
- Specified by:
findByEPersonin interfaceWorkspaceItemDAO- Throws:
SQLException
-
findByCollection
public List<WorkspaceItem> findByCollection(Context context, Collection c) throws SQLException
- Specified by:
findByCollectionin interfaceWorkspaceItemDAO- Throws:
SQLException
-
findByItem
public WorkspaceItem findByItem(Context context, Item i) throws SQLException
- Specified by:
findByItemin interfaceWorkspaceItemDAO- Throws:
SQLException
-
findAll
public List<WorkspaceItem> findAll(Context context) throws SQLException
- Specified by:
findAllin interfaceWorkspaceItemDAO- Throws:
SQLException
-
findAll
public List<WorkspaceItem> findAll(Context context, Integer limit, Integer offset) throws SQLException
- Specified by:
findAllin interfaceWorkspaceItemDAO- Throws:
SQLException
-
findWithSupervisedGroup
public List<WorkspaceItem> findWithSupervisedGroup(Context context) throws SQLException
- Specified by:
findWithSupervisedGroupin interfaceWorkspaceItemDAO- Throws:
SQLException
-
findBySupervisedGroupMember
public List<WorkspaceItem> findBySupervisedGroupMember(Context context, EPerson ePerson) throws SQLException
- Specified by:
findBySupervisedGroupMemberin interfaceWorkspaceItemDAO- Throws:
SQLException
-
countRows
public int countRows(Context context) throws SQLException
- Specified by:
countRowsin interfaceWorkspaceItemDAO- Throws:
SQLException
-
countRows
public int countRows(Context context, EPerson ep) throws SQLException
- Specified by:
countRowsin interfaceWorkspaceItemDAO- Throws:
SQLException
-
getStageReachedCounts
public List<Map.Entry<Integer,Long>> getStageReachedCounts(Context context) throws SQLException
- Specified by:
getStageReachedCountsin interfaceWorkspaceItemDAO- Throws:
SQLException
-
-