Interface CollectionRunNextRequestRepository

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

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

    Modifier and Type
    Method
    Description
    int
     
    boolean
     
     
    void
     

    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 CollectionRunNextRequest cr WHERE cr.createdWhen < :createdWhen") int deleteByCreatedWhenBefore(@Param("createdWhen") Timestamp createdWhen)
    • existsByCollectionRunId

      boolean existsByCollectionRunId(UUID testRunId)
    • getNextRequestByCollectionRunId

      @Query("select nextRequest from CollectionRunNextRequest where collectionRunId = ?1") String getNextRequestByCollectionRunId(UUID testRunId)
    • removeByCollectionRunId

      void removeByCollectionRunId(UUID testRunId)