Class ActionTakenDaoJpa

java.lang.Object
org.kuali.rice.kew.actiontaken.dao.impl.ActionTakenDaoJpa
All Implemented Interfaces:
ActionTakenDao

public class ActionTakenDaoJpa extends Object implements ActionTakenDao
JPA implementation of the ActionTakenDao.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Field Details

  • Constructor Details

    • ActionTakenDaoJpa

      public ActionTakenDaoJpa()
  • Method Details

    • getLastActionTakenDate

      public Timestamp getLastActionTakenDate(String documentId, ActionType actionType)
      Description copied from interface: ActionTakenDao
      Returns the Timestamp of the last action of the given type taken against the document.

      Both documentId and actionType must be supplied to this query. Otherwise an IllegalArgumentException will be thrown.

      Specified by:
      getLastActionTakenDate in interface ActionTakenDao
      Parameters:
      documentId - the id of the document to check
      actionType - 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)