Interface ImportedTickerRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ImportedTicker,
,Long> org.springframework.data.jpa.repository.JpaRepository<ImportedTicker,
,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<ImportedTicker>
,org.springframework.data.repository.PagingAndSortingRepository<ImportedTicker,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<ImportedTicker>
,org.springframework.data.repository.Repository<ImportedTicker,
Long>
@Repository
public interface ImportedTickerRepository
extends org.springframework.data.jpa.repository.JpaRepository<ImportedTicker,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<ImportedTicker>
ImportedTicker
repository.-
Method Summary
Modifier and TypeMethodDescriptionfindByCurrencyPairOrderByTimestampAsc
(String currencyPair) Returns imported tickers of a specific currency pair (ordered by timestamp).Returns imported tickers (ordered by timestamp).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, saveAll, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, findAll, findAll, findAll, findOne
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
-
findByOrderByTimestampAsc
List<ImportedTicker> findByOrderByTimestampAsc()Returns imported tickers (ordered by timestamp).- Returns:
- imported tickers
-
findByCurrencyPairOrderByTimestampAsc
Returns imported tickers of a specific currency pair (ordered by timestamp).- Parameters:
currencyPair
- currency pair- Returns:
- imported tickers
-