Interface TransactionEntityRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<TransactionEntity,,String> org.springframework.data.jpa.repository.JpaRepository<TransactionEntity,,String> org.springframework.data.repository.ListCrudRepository<TransactionEntity,,String> org.springframework.data.repository.ListPagingAndSortingRepository<TransactionEntity,,String> org.springframework.data.repository.PagingAndSortingRepository<TransactionEntity,,String> org.springframework.data.repository.query.QueryByExampleExecutor<TransactionEntity>,org.springframework.data.repository.Repository<TransactionEntity,String>
public interface TransactionEntityRepository
extends org.springframework.data.jpa.repository.JpaRepository<TransactionEntity,String>
-
Method Summary
Modifier and TypeMethodDescriptionfindDispatchedTransactionsThatAreNotFinalizedYet(String organisationId, Set<BlockchainPublishStatus> publishStatuses, org.springframework.data.domain.Limit limit) findFreeTransactionsByStatus(String organisationId, Set<BlockchainPublishStatus> publishStatuses, LocalDateTime lockTime, org.springframework.data.domain.Limit limit) findTransactionsByStatus(String organisationId, Set<BlockchainPublishStatus> publishStatuses, org.springframework.data.domain.Limit limit) 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
-
findTransactionsByStatus
@Query("SELECT t FROM blockchain_publisher.txs.TransactionEntity t WHERE t.organisation.id = :organisationId AND t.l1SubmissionData.publishStatus IN :publishStatuses ORDER BY t.createdAt ASC, t.id ASC") Set<TransactionEntity> findTransactionsByStatus(@Param("organisationId") String organisationId, @Param("publishStatuses") Set<BlockchainPublishStatus> publishStatuses, org.springframework.data.domain.Limit limit) -
findFreeTransactionsByStatus
@Query("SELECT t FROM blockchain_publisher.txs.TransactionEntity t\nWHERE t.organisation.id = :organisationId\nAND t.l1SubmissionData.publishStatus IN :publishStatuses\nAND (t.lockedAt IS NULL OR t.lockedAt < :lockTime)\nORDER BY t.createdAt ASC, t.id ASC") Set<TransactionEntity> findFreeTransactionsByStatus(@Param("organisationId") String organisationId, @Param("publishStatuses") Set<BlockchainPublishStatus> publishStatuses, @Param("lockTime") LocalDateTime lockTime, org.springframework.data.domain.Limit limit) -
findDispatchedTransactionsThatAreNotFinalizedYet
@Query("SELECT t FROM blockchain_publisher.txs.TransactionEntity t WHERE t.organisation.id = :organisationId AND t.l1SubmissionData.publishStatus IN :publishStatuses AND t.l1SubmissionData is NOT NULL ORDER BY t.createdAt ASC, t.id ASC") Set<TransactionEntity> findDispatchedTransactionsThatAreNotFinalizedYet(@Param("organisationId") String organisationId, @Param("publishStatuses") Set<BlockchainPublishStatus> publishStatuses, org.springframework.data.domain.Limit limit)
-