@Repository public class JPATaskExecDAO extends AbstractDAO<org.apache.syncope.core.persistence.api.entity.task.TaskExec> implements org.apache.syncope.core.persistence.api.dao.TaskExecDAO
LOG
Constructor and Description |
---|
JPATaskExecDAO() |
Modifier and Type | Method and Description |
---|---|
int |
count(String taskKey) |
void |
delete(String key) |
void |
delete(org.apache.syncope.core.persistence.api.entity.task.TaskExec execution) |
org.apache.syncope.core.persistence.api.entity.task.TaskExec |
find(String key) |
<T extends org.apache.syncope.core.persistence.api.entity.task.Task> |
findAll(T task,
Date startedBefore,
Date startedAfter,
Date endedBefore,
Date endedAfter) |
<T extends org.apache.syncope.core.persistence.api.entity.task.Task> |
findAll(T task,
int page,
int itemsPerPage,
List<org.apache.syncope.core.persistence.api.dao.search.OrderByClause> orderByClauses) |
<T extends org.apache.syncope.core.persistence.api.entity.task.Task> |
findLatestEnded(T task) |
<T extends org.apache.syncope.core.persistence.api.entity.task.Task> |
findLatestStarted(T task) |
List<org.apache.syncope.core.persistence.api.entity.task.TaskExec> |
findRecent(int max) |
org.apache.syncope.core.persistence.api.entity.task.TaskExec |
save(org.apache.syncope.core.persistence.api.entity.task.TaskExec execution) |
void |
saveAndAdd(String taskKey,
org.apache.syncope.core.persistence.api.entity.task.TaskExec execution) |
clear, detach, entityManager, flush, refresh
public org.apache.syncope.core.persistence.api.entity.task.TaskExec find(String key)
find
in interface org.apache.syncope.core.persistence.api.dao.TaskExecDAO
public List<org.apache.syncope.core.persistence.api.entity.task.TaskExec> findRecent(int max)
findRecent
in interface org.apache.syncope.core.persistence.api.dao.TaskExecDAO
public <T extends org.apache.syncope.core.persistence.api.entity.task.Task> org.apache.syncope.core.persistence.api.entity.task.TaskExec findLatestStarted(T task)
findLatestStarted
in interface org.apache.syncope.core.persistence.api.dao.TaskExecDAO
public <T extends org.apache.syncope.core.persistence.api.entity.task.Task> org.apache.syncope.core.persistence.api.entity.task.TaskExec findLatestEnded(T task)
findLatestEnded
in interface org.apache.syncope.core.persistence.api.dao.TaskExecDAO
public <T extends org.apache.syncope.core.persistence.api.entity.task.Task> List<org.apache.syncope.core.persistence.api.entity.task.TaskExec> findAll(T task, Date startedBefore, Date startedAfter, Date endedBefore, Date endedAfter)
findAll
in interface org.apache.syncope.core.persistence.api.dao.TaskExecDAO
public int count(String taskKey)
count
in interface org.apache.syncope.core.persistence.api.dao.TaskExecDAO
public <T extends org.apache.syncope.core.persistence.api.entity.task.Task> List<org.apache.syncope.core.persistence.api.entity.task.TaskExec> findAll(T task, int page, int itemsPerPage, List<org.apache.syncope.core.persistence.api.dao.search.OrderByClause> orderByClauses)
findAll
in interface org.apache.syncope.core.persistence.api.dao.TaskExecDAO
public org.apache.syncope.core.persistence.api.entity.task.TaskExec save(org.apache.syncope.core.persistence.api.entity.task.TaskExec execution)
save
in interface org.apache.syncope.core.persistence.api.dao.TaskExecDAO
@Transactional(rollbackFor=java.lang.Throwable.class) public void saveAndAdd(String taskKey, org.apache.syncope.core.persistence.api.entity.task.TaskExec execution)
saveAndAdd
in interface org.apache.syncope.core.persistence.api.dao.TaskExecDAO
public void delete(String key)
delete
in interface org.apache.syncope.core.persistence.api.dao.TaskExecDAO
public void delete(org.apache.syncope.core.persistence.api.entity.task.TaskExec execution)
delete
in interface org.apache.syncope.core.persistence.api.dao.TaskExecDAO
Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.