Interface MarketPriceFetchRequestRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<MarketPriceFetchRequest, Long>, org.springframework.data.jpa.repository.JpaRepository<MarketPriceFetchRequest, Long>, org.springframework.data.repository.ListCrudRepository<MarketPriceFetchRequest, Long>, org.springframework.data.repository.ListPagingAndSortingRepository<MarketPriceFetchRequest, Long>, org.springframework.data.repository.PagingAndSortingRepository<MarketPriceFetchRequest, Long>, org.springframework.data.repository.query.QueryByExampleExecutor<MarketPriceFetchRequest>, org.springframework.data.repository.Repository<MarketPriceFetchRequest, Long>
@Repository
public interface MarketPriceFetchRequestRepository
extends org.springframework.data.jpa.repository.JpaRepository<MarketPriceFetchRequest, Long>
Data-access layer for
MarketPriceFetchRequest.- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptionfindFirstBySymbolAliasAndDataSourceAndTimeIntervalAndStartAndEndAndStatusIn(SymbolAlias symbolAlias, DataSource dataSource, MarketTimeInterval timeInterval, LocalDateTime start, LocalDateTime end, Collection<MarketPriceFetchRequestStatus> statuses) Finds an active request matching the exact requested resolution parameters.Returns the oldest pending requests up to the configured batch size.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
-
findFirstBySymbolAliasAndDataSourceAndTimeIntervalAndStartAndEndAndStatusIn
Optional<MarketPriceFetchRequest> findFirstBySymbolAliasAndDataSourceAndTimeIntervalAndStartAndEndAndStatusIn(SymbolAlias symbolAlias, DataSource dataSource, MarketTimeInterval timeInterval, LocalDateTime start, LocalDateTime end, Collection<MarketPriceFetchRequestStatus> statuses) Finds an active request matching the exact requested resolution parameters.- Parameters:
symbolAlias-SymbolAliasdataSource-DataSourcetimeInterval-MarketTimeIntervalstart- request startend- request endstatuses- active statuses- Returns:
- matching
OptionalMarketPriceFetchRequest
-
findTop25ByStatusOrderByCreatedAtAsc
List<MarketPriceFetchRequest> findTop25ByStatusOrderByCreatedAtAsc(MarketPriceFetchRequestStatus status) Returns the oldest pending requests up to the configured batch size.- Parameters:
status- pending status- Returns:
ListofMarketPriceFetchRequest
-