Class ClaimedTaskDAOImpl
java.lang.Object
org.dspace.core.AbstractHibernateDAO<ClaimedTask>
org.dspace.xmlworkflow.storedcomponents.dao.impl.ClaimedTaskDAOImpl
- All Implemented Interfaces:
GenericDAO<ClaimedTask>,ClaimedTaskDAO
Hibernate implementation of the Database Access Object interface class for the ClaimedTask object.
This class is responsible for all database calls for the ClaimedTask 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 TypeMethodDescriptionfindByEperson(Context context, EPerson ePerson) findByEPersonAndWorkflowItemAndStepIdAndActionId(Context context, EPerson ePerson, XmlWorkflowItem workflowItem, String stepID, String actionID) findByStep(Context context, String stepID) findByWorkflowItem(Context context, XmlWorkflowItem workflowItem) Find all claimed tasks for a given workflow item.findByWorkflowItemAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson) Find the single task for a given workflow item which is claimed by a given EPerson.findByWorkflowItemAndStepId(Context context, XmlWorkflowItem workflowItem, String stepID) findByWorkflowItemAndStepIdAndActionId(Context context, XmlWorkflowItem workflowItem, String stepID, String actionID) Methods 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
-
ClaimedTaskDAOImpl
protected ClaimedTaskDAOImpl()
-
-
Method Details
-
findByWorkflowItem
public List<ClaimedTask> findByWorkflowItem(Context context, XmlWorkflowItem workflowItem) throws SQLException Description copied from interface:ClaimedTaskDAOFind all claimed tasks for a given workflow item.- Specified by:
findByWorkflowItemin interfaceClaimedTaskDAO- Parameters:
context- current DSpace session.workflowItem- the interesting workflow item.- Returns:
- all claimed tasks for that item.
- Throws:
SQLException- passed through.
-
findByWorkflowItemAndEPerson
public ClaimedTask findByWorkflowItemAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson) throws SQLException Description copied from interface:ClaimedTaskDAOFind the single task for a given workflow item which is claimed by a given EPerson.- Specified by:
findByWorkflowItemAndEPersonin interfaceClaimedTaskDAOworkflowItem- find task for this item.ePerson- find task claimed by this EPerson.- Returns:
- the matching task, or null if none.
- Throws:
SQLException- if query cannot be created or fails.
-
findByEperson
- Specified by:
findByEpersonin interfaceClaimedTaskDAO- Throws:
SQLException
-
findByWorkflowItemAndStepId
public List<ClaimedTask> findByWorkflowItemAndStepId(Context context, XmlWorkflowItem workflowItem, String stepID) throws SQLException - Specified by:
findByWorkflowItemAndStepIdin interfaceClaimedTaskDAO- Throws:
SQLException
-
findByEPersonAndWorkflowItemAndStepIdAndActionId
public ClaimedTask findByEPersonAndWorkflowItemAndStepIdAndActionId(Context context, EPerson ePerson, XmlWorkflowItem workflowItem, String stepID, String actionID) throws SQLException - Specified by:
findByEPersonAndWorkflowItemAndStepIdAndActionIdin interfaceClaimedTaskDAO- Throws:
SQLException
-
findByWorkflowItemAndStepIdAndActionId
public List<ClaimedTask> findByWorkflowItemAndStepIdAndActionId(Context context, XmlWorkflowItem workflowItem, String stepID, String actionID) throws SQLException - Specified by:
findByWorkflowItemAndStepIdAndActionIdin interfaceClaimedTaskDAO- Throws:
SQLException
-
findByStep
- Specified by:
findByStepin interfaceClaimedTaskDAO- Throws:
SQLException
-