@Repository public class JPATaskDAO extends AbstractDAO<Task> implements TaskDAO
LOG
Constructor and Description |
---|
JPATaskDAO() |
clear, detach, entityManager, entityManagerFactory, refresh
public Class<? extends Task> getEntityReference(TaskType type)
getEntityReference
in interface TaskDAO
@Transactional(readOnly=true) public boolean exists(TaskType type, String key)
@Transactional(readOnly=true) public <T extends Task> T find(String key)
public List<SchedTask> findByDelegate(Implementation delegate)
findByDelegate
in interface TaskDAO
public List<PullTask> findByReconFilterBuilder(Implementation reconFilterBuilder)
findByReconFilterBuilder
in interface TaskDAO
public List<PullTask> findByPullActions(Implementation pullActions)
findByPullActions
in interface TaskDAO
public List<PushTask> findByPushActions(Implementation pushActions)
findByPushActions
in interface TaskDAO
public <T extends Task> List<T> findToExec(TaskType type)
findToExec
in interface TaskDAO
@Transactional(readOnly=true) public <T extends Task> List<T> findAll(TaskType type)
public <T extends Task> List<T> findAll(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey, int page, int itemsPerPage, List<OrderByClause> orderByClauses)
public int count(TaskType type, ExternalResource resource, Notification notification, AnyTypeKind anyTypeKind, String entityKey)
@Transactional(rollbackFor=java.lang.Throwable.class) public <T extends Task> T save(T task)
public void deleteAll(ExternalResource resource, TaskType type)
public List<PropagationTaskTO> purgePropagations(Date since, List<ExecStatus> statuses, List<ExternalResource> externalResources)
purgePropagations
in interface TaskDAO
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.