Class ActionTakenDaoJpa
java.lang.Object
org.kuali.rice.kew.actiontaken.dao.impl.ActionTakenDaoJpa
- All Implemented Interfaces:
ActionTakenDao
JPA implementation of the
ActionTakenDao.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.persistence.EntityManagergetLastActionTakenDate(String documentId, org.kuali.rice.kew.api.action.ActionType actionType) Returns the Timestamp of the last action of the given type taken against the document.voidsetEntityManager(javax.persistence.EntityManager entityManager)
-
Field Details
-
GET_LAST_ACTION_TAKEN_DATE_NAME
- See Also:
-
GET_LAST_ACTION_TAKEN_DATE_QUERY
- See Also:
-
-
Constructor Details
-
ActionTakenDaoJpa
public ActionTakenDaoJpa()
-
-
Method Details
-
getLastActionTakenDate
public Timestamp getLastActionTakenDate(String documentId, org.kuali.rice.kew.api.action.ActionType actionType) Description copied from interface:ActionTakenDaoReturns the Timestamp of the last action of the given type taken against the document.Both
documentIdandactionTypemust be supplied to this query. Otherwise anIllegalArgumentExceptionwill be thrown.- Specified by:
getLastActionTakenDatein interfaceActionTakenDao- Parameters:
documentId- the id of the document to checkactionType- the type of the action to look for- Returns:
- the Timestamp of the last action of the given type taken against the document, or null if the document has no actions
-
getEntityManager
public javax.persistence.EntityManager getEntityManager() -
setEntityManager
public void setEntityManager(javax.persistence.EntityManager entityManager)
-