Interface ImportedTickersRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ImportedTicker,Long>
,org.springframework.data.jpa.repository.JpaRepository<ImportedTicker,Long>
,org.springframework.data.repository.PagingAndSortingRepository<ImportedTicker,Long>
,org.springframework.data.repository.query.QueryByExampleExecutor<ImportedTicker>
,org.springframework.data.repository.Repository<ImportedTicker,Long>
@Repository public interface ImportedTickersRepository extends org.springframework.data.jpa.repository.JpaRepository<ImportedTicker,Long>
ImportedTicker
repository.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<ImportedTicker>
findByCurrencyPairOrderByTimestampAsc(String currencyPair)
Returns imported tickers with a specific currency pair (ordered by timestamp).List<ImportedTicker>
findByOrderByTimestampAsc()
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
-
-
-
-
Method Detail
-
findByOrderByTimestampAsc
List<ImportedTicker> findByOrderByTimestampAsc()
Returns imported tickers (ordered by timestamp).- Returns:
- imported tickers
-
findByCurrencyPairOrderByTimestampAsc
List<ImportedTicker> findByCurrencyPairOrderByTimestampAsc(String currencyPair)
Returns imported tickers with a specific currency pair (ordered by timestamp).- Parameters:
currencyPair
- currency pair- Returns:
- imported tickers
-
-