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
-
Field Summary
Fields inherited from class CommonJPADAO
clzFields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindLatestTaskLogsBefore(Collection<Long> taskIds, Date before, Collection<String> actionNames) 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.org.exoplatform.commons.utils.ListAccess<ChangeLog> findTaskLogs(Long taskId) findTaskLogsSince(Collection<Long> taskIds, Date since) Reads, in one query, the change log entries of several tasks logged at or after a date.Methods inherited from class CommonJPADAO
buildCountQuery, buildPath, buildQuery, buildSingleCondition, cloneEntities, cloneEntity, create, find, findEntities, getCacheMethods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, createAll, delete, deleteAll, deleteAll, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAllMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Constructor Details
-
TaskLogDAOImpl
public TaskLogDAOImpl()
-
-
Method Details
-
findTaskLogsSince
Description copied from interface:TaskLogHandlerReads, in one query, the change log entries of several tasks logged at or after a date.- Specified by:
findTaskLogsSincein interfaceTaskLogHandler- Parameters:
taskIds- the taskssince- 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:TaskLogHandlerReads, 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:
findLatestTaskLogsBeforein interfaceTaskLogHandler- Parameters:
taskIds- the tasksbefore- the date the entries precede, excludedactionNames- the actions of the entries- Returns:
- the latest entry of each task, in no order
-
findTaskLogs
- Specified by:
findTaskLogsin interfaceTaskLogHandler
-