Interface CollectionRunRequestsRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<CollectionRunRequest,,UUID> org.springframework.data.jpa.repository.JpaRepository<CollectionRunRequest,,UUID> org.springframework.data.repository.PagingAndSortingRepository<CollectionRunRequest,,UUID> org.springframework.data.repository.query.QueryByExampleExecutor<CollectionRunRequest>,org.springframework.data.repository.Repository<CollectionRunRequest,UUID>
public interface CollectionRunRequestsRepository
extends org.springframework.data.jpa.repository.JpaRepository<CollectionRunRequest,UUID>
-
Method Summary
Modifier and TypeMethodDescriptionintcountByCollectionRunId(UUID testRunId) intdeleteByCreatedWhenBefore(Timestamp createdWhen) booleanexistsByCollectionRunIdAndRequestId(UUID testRunId, UUID requestId) findAllByCollectionRunIdAndOrderGreaterThanEqualOrderByOrder(UUID testRunId, Integer order) findFirstByCollectionRunIdAndRequestIdOrderByOrderDesc(UUID testRunId, UUID requestId) findFirstByCollectionRunIdAndRequestNameOrderByOrderDesc(UUID testRunId, String requestName) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
deleteByCreatedWhenBefore
@Modifying @Transactional @Query("DELETE FROM CollectionRunRequest cr WHERE cr.createdWhen < :createdWhen") int deleteByCreatedWhenBefore(@Param("createdWhen") Timestamp createdWhen) -
existsByCollectionRunIdAndRequestId
-
findFirstByCollectionRunIdAndRequestNameOrderByOrderDesc
CollectionRunRequest findFirstByCollectionRunIdAndRequestNameOrderByOrderDesc(UUID testRunId, String requestName) -
findFirstByCollectionRunIdAndRequestIdOrderByOrderDesc
CollectionRunRequest findFirstByCollectionRunIdAndRequestIdOrderByOrderDesc(UUID testRunId, UUID requestId) -
countByCollectionRunId
-
findAllByCollectionRunIdAndOrderGreaterThanEqualOrderByOrder
List<CollectionRunRequest> findAllByCollectionRunIdAndOrderGreaterThanEqualOrderByOrder(UUID testRunId, Integer order)
-