@Transactional(readOnly=true) public interface IndexTaskRepository extends org.springframework.data.jpa.repository.JpaRepository<IndexTask,Long>
Modifier and Type | Method and Description |
---|---|
Long |
countByStatus(String status)
Returns a count of the number of
IndexTask s in the repository,
with the given status. |
List<IndexTask> |
findByPid(String pid)
Return a List of IndexTask objects whose pid value matches the pid
parameter value.
|
List<IndexTask> |
findByPidAndStatus(String pid,
String status)
Return a List of IndexTask objects whose pid and status values match the
corresponding parameter values.
|
List<IndexTask> |
findByStatusAndNextExecutionLessThan(String status,
long time) |
List<IndexTask> |
findByStatusAndNextExecutionLessThanAndTryCountLessThan(String status,
long time,
int tryCount) |
List<IndexTask> |
findByStatusAndTryCountLessThanOrderByPriorityAscTaskModifiedDateAsc(String status,
int tryCount) |
List<IndexTask> |
findByStatusOrderByPriorityAscTaskModifiedDateAsc(String status)
Return a List of IndexTasks that have a matching status and order the
results by priority and modified date
|
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, flush, save, saveAndFlush
List<IndexTask> findByPid(String pid)
pid
- List<IndexTask> findByPidAndStatus(String pid, String status)
pid
- status
- - a constant defined by the IndexTask class.List<IndexTask> findByStatusOrderByPriorityAscTaskModifiedDateAsc(String status)
status
- List<IndexTask> findByStatusAndTryCountLessThanOrderByPriorityAscTaskModifiedDateAsc(String status, int tryCount)
List<IndexTask> findByStatusAndNextExecutionLessThan(String status, long time)
List<IndexTask> findByStatusAndNextExecutionLessThanAndTryCountLessThan(String status, long time, int tryCount)
Copyright © 2018. All rights reserved.