Interface CollectionRunRequestsCountRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<CollectionRunRequestsCount,UUID>, org.springframework.data.jpa.repository.JpaRepository<CollectionRunRequestsCount,UUID>, org.springframework.data.repository.PagingAndSortingRepository<CollectionRunRequestsCount,UUID>, org.springframework.data.repository.query.QueryByExampleExecutor<CollectionRunRequestsCount>, org.springframework.data.repository.Repository<CollectionRunRequestsCount,UUID>

public interface CollectionRunRequestsCountRepository extends org.springframework.data.jpa.repository.JpaRepository<CollectionRunRequestsCount,UUID>
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
     
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • deleteByCreatedWhenBefore

      @Modifying @Transactional @Query("DELETE FROM CollectionRunRequestsCount cr WHERE cr.createdWhen < :createdWhen") int deleteByCreatedWhenBefore(@Param("createdWhen") Timestamp createdWhen)
    • findCountByCollectionRunIdAndRequestId

      @Query("select c.count from CollectionRunRequestsCount c where c.collectionRunId = ?1 and c.requestId = ?2") Integer findCountByCollectionRunIdAndRequestId(UUID testRunId, UUID requestId)
    • findByCollectionRunIdAndRequestId

      CollectionRunRequestsCount findByCollectionRunIdAndRequestId(UUID testRunId, UUID requestId)