Class TaskLogDAOImpl

java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ChangeLog, Long>
org.exoplatform.task.dao.jpa.CommonJPADAO<ChangeLog, Long>
org.exoplatform.task.dao.jpa.TaskLogDAOImpl
All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<ChangeLog, Long>, TaskLogHandler

public class TaskLogDAOImpl extends CommonJPADAO<ChangeLog, Long> implements TaskLogHandler
  • Constructor Details

    • TaskLogDAOImpl

      public TaskLogDAOImpl()
  • Method Details

    • findTaskLogsSince

      public List<ChangeLog> findTaskLogsSince(Collection<Long> taskIds, Date since)
      Description copied from interface: TaskLogHandler
      Reads, in one query, the change log entries of several tasks logged at or after a date.
      Specified by:
      findTaskLogsSince in interface TaskLogHandler
      Parameters:
      taskIds - the tasks
      since - the earliest date, included
      Returns:
      their entries, in no order
    • findLatestTaskLogsBefore

      public List<ChangeLog> findLatestTaskLogsBefore(Collection<Long> taskIds, Date before, Collection<String> actionNames)
      Description copied from interface: TaskLogHandler
      Reads, in one query, the latest change log entry of each of several tasks logged before a date with one of the given actions: two entries logged at that same latest time both come back.
      Specified by:
      findLatestTaskLogsBefore in interface TaskLogHandler
      Parameters:
      taskIds - the tasks
      before - the date the entries precede, excluded
      actionNames - the actions of the entries
      Returns:
      the latest entry of each task, in no order
    • findTaskLogs

      public org.exoplatform.commons.utils.ListAccess<ChangeLog> findTaskLogs(Long taskId)
      Specified by:
      findTaskLogs in interface TaskLogHandler