Interface IndicatorValueRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<IndicatorValue, Long>, org.springframework.data.jpa.repository.JpaRepository<IndicatorValue, Long>, org.springframework.data.repository.ListCrudRepository<IndicatorValue, Long>, org.springframework.data.repository.ListPagingAndSortingRepository<IndicatorValue, Long>, org.springframework.data.repository.PagingAndSortingRepository<IndicatorValue, Long>, org.springframework.data.repository.query.QueryByExampleExecutor<IndicatorValue>, org.springframework.data.repository.Repository<IndicatorValue, Long>
@Repository
public interface IndicatorValueRepository
extends org.springframework.data.jpa.repository.JpaRepository<IndicatorValue, Long>
Data-access layer for
IndicatorValue.- Version:
- 1.0.9
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteBySymbolAlias(SymbolAlias symbolAlias) DeletesIndicatorValues bySymbolAlias.findIndicatorValueByDateAndIntervalAndSymbolAliasAndIndicatorType(LocalDateTime date, MarketTimeInterval interval, SymbolAlias symbolAlias, IndicatorType indicatorType) Looks up anIndicatorValuefor the given inputs.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
-
findIndicatorValueByDateAndIntervalAndSymbolAliasAndIndicatorType
IndicatorValue findIndicatorValueByDateAndIntervalAndSymbolAliasAndIndicatorType(LocalDateTime date, MarketTimeInterval interval, SymbolAlias symbolAlias, IndicatorType indicatorType) Looks up anIndicatorValuefor the given inputs.- Parameters:
date-LocalDateTimeinterval-MarketTimeIntervalsymbolAlias-SymbolAliasindicatorType-IndicatorType- Returns:
- nullable
IndicatorValue
-
deleteBySymbolAlias
@Modifying @Query("DELETE FROM IndicatorValue iv WHERE iv.symbolAlias = :symbolAlias") void deleteBySymbolAlias(@Param("symbolAlias") SymbolAlias symbolAlias) DeletesIndicatorValues bySymbolAlias.- Parameters:
symbolAlias-SymbolAlias
-