Class XmlWorkflowItemDAOImpl
- java.lang.Object
-
- org.dspace.core.AbstractHibernateDAO<XmlWorkflowItem>
-
- org.dspace.xmlworkflow.storedcomponents.dao.impl.XmlWorkflowItemDAOImpl
-
- All Implemented Interfaces:
GenericDAO<XmlWorkflowItem>,XmlWorkflowItemDAO
public class XmlWorkflowItemDAOImpl extends AbstractHibernateDAO<XmlWorkflowItem> implements XmlWorkflowItemDAO
Hibernate implementation of the Database Access Object interface class for the XmlWorkflowItem object. This class is responsible for all database calls for the XmlWorkflowItem object and is autowired by Spring. This class should never be accessed directly.- Author:
- kevinvandevelde at atmire.com
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedXmlWorkflowItemDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountAll(Context context)intcountAllInCollection(Context context, Collection collection)intcountBySubmitter(Context context, EPerson ep)Count the number of workflow items from a specific submitterList<XmlWorkflowItem>findAllInCollection(Context context, Integer offset, Integer limit, Collection collection)Find all the workflow items in a specific collection using the pagination parameters (offset, limit)List<XmlWorkflowItem>findByCollection(Context context, Collection collection)XmlWorkflowItemfindByItem(Context context, Item item)List<XmlWorkflowItem>findBySubmitter(Context context, EPerson ep)List<XmlWorkflowItem>findBySubmitter(Context context, EPerson ep, Integer offset, Integer limit)Return all the workflow items from a specific submitter respecting the pagination parameters-
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
-
findAllInCollection
public List<XmlWorkflowItem> findAllInCollection(Context context, Integer offset, Integer limit, Collection collection) throws SQLException
Description copied from interface:XmlWorkflowItemDAOFind all the workflow items in a specific collection using the pagination parameters (offset, limit)- Specified by:
findAllInCollectionin interfaceXmlWorkflowItemDAO- Parameters:
context- dspace contextoffset- the first record to returnlimit- the max number of records to returncollection- the collection where the workflowitem has been submitted- Returns:
- all the workflow items respecting the parameters conditions
- Throws:
SQLException
-
countAll
public int countAll(Context context) throws SQLException
- Specified by:
countAllin interfaceXmlWorkflowItemDAO- Throws:
SQLException
-
countAllInCollection
public int countAllInCollection(Context context, Collection collection) throws SQLException
- Specified by:
countAllInCollectionin interfaceXmlWorkflowItemDAO- Throws:
SQLException
-
findBySubmitter
public List<XmlWorkflowItem> findBySubmitter(Context context, EPerson ep) throws SQLException
- Specified by:
findBySubmitterin interfaceXmlWorkflowItemDAO- Throws:
SQLException
-
findBySubmitter
public List<XmlWorkflowItem> findBySubmitter(Context context, EPerson ep, Integer offset, Integer limit) throws SQLException
Description copied from interface:XmlWorkflowItemDAOReturn all the workflow items from a specific submitter respecting the pagination parameters- Specified by:
findBySubmitterin interfaceXmlWorkflowItemDAO- Parameters:
context- The relevant DSpace Context.ep- the eperson that has submitted the itemoffset- the first record to returnlimit- the max number of records to return- Returns:
- Throws:
SQLException
-
countBySubmitter
public int countBySubmitter(Context context, EPerson ep) throws SQLException
Description copied from interface:XmlWorkflowItemDAOCount the number of workflow items from a specific submitter- Specified by:
countBySubmitterin interfaceXmlWorkflowItemDAO- Parameters:
context- The relevant DSpace Context.ep- the eperson that has submitted the item- Returns:
- Throws:
SQLException
-
findByCollection
public List<XmlWorkflowItem> findByCollection(Context context, Collection collection) throws SQLException
- Specified by:
findByCollectionin interfaceXmlWorkflowItemDAO- Throws:
SQLException
-
findByItem
public XmlWorkflowItem findByItem(Context context, Item item) throws SQLException
- Specified by:
findByItemin interfaceXmlWorkflowItemDAO- Throws:
SQLException
-
-