Package dev.dokimos.server.repository
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 TypeMethodDescriptionbooleanexistsByRunIdAndIdempotencyKey(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, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods 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
-
existsByRunIdAndIdempotencyKey
Checks whether a batch with the given idempotency key has already been committed for the run.- Parameters:
runId- the run ididempotencyKey- the idempotency key- Returns:
- true if a matching batch record exists
-