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 -
Method Summary
Modifier and TypeMethodDescriptionintintcountAllInCollection(Context context, Collection collection) intcountBySubmitter(Context context, EPerson ep) Count the number of workflow items from a specific submitterfindAllInCollection(Context context, Integer offset, Integer limit, Collection collection) Find all the workflow items in a specific collection using the pagination parameters (offset, limit)findByCollection(Context context, Collection collection) findByItem(Context context, Item item) findBySubmitter(Context context, EPerson ep) findBySubmitter(Context context, EPerson ep, Integer offset, Integer limit) Return all the workflow items from a specific submitter respecting the pagination parametersMethods inherited from class org.dspace.core.AbstractHibernateDAO
count, count, countLong, create, createQuery, createQuery, delete, executeCriteriaQuery, findAll, findAll, findByID, findByID, findByID, findByX, findMany, findMany, findUnique, getCriteriaBuilder, getCriteriaQuery, getHibernateSession, iterate, list, list, list, list, save, singleResult, singleResult, uniqueResult, uniqueResult
-
Constructor Details
-
XmlWorkflowItemDAOImpl
protected XmlWorkflowItemDAOImpl()
-
-
Method Details
-
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
- Specified by:
countAllin interfaceXmlWorkflowItemDAO- Throws:
SQLException
-
countAllInCollection
- Specified by:
countAllInCollectionin interfaceXmlWorkflowItemDAO- Throws:
SQLException
-
findBySubmitter
- 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
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
- Specified by:
findByItemin interfaceXmlWorkflowItemDAO- Throws:
SQLException
-