Interface IngestedBatchRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<IngestedBatch,IngestedBatch.IngestedBatchId>, org.springframework.data.jpa.repository.JpaRepository<IngestedBatch,IngestedBatch.IngestedBatchId>, org.springframework.data.repository.ListCrudRepository<IngestedBatch,IngestedBatch.IngestedBatchId>, org.springframework.data.repository.ListPagingAndSortingRepository<IngestedBatch,IngestedBatch.IngestedBatchId>, org.springframework.data.repository.PagingAndSortingRepository<IngestedBatch,IngestedBatch.IngestedBatchId>, org.springframework.data.repository.query.QueryByExampleExecutor<IngestedBatch>, org.springframework.data.repository.Repository<IngestedBatch,IngestedBatch.IngestedBatchId>

public interface IngestedBatchRepository extends org.springframework.data.jpa.repository.JpaRepository<IngestedBatch,IngestedBatch.IngestedBatchId>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    existsByRunIdAndIdempotencyKey(UUID runId, String idempotencyKey)
    Checks whether a batch with the given idempotency key has already been committed for the run.

    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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

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

    findAll, findAllById, saveAll

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

    findAll

    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

    • existsByRunIdAndIdempotencyKey

      boolean existsByRunIdAndIdempotencyKey(UUID runId, String idempotencyKey)
      Checks whether a batch with the given idempotency key has already been committed for the run.
      Parameters:
      runId - the run id
      idempotencyKey - the idempotency key
      Returns:
      true if a matching batch record exists