Interface StockAnalysisRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<StockAnalysis, Long>, org.springframework.data.jpa.repository.JpaRepository<StockAnalysis, Long>, org.springframework.data.repository.ListCrudRepository<StockAnalysis, Long>, org.springframework.data.repository.ListPagingAndSortingRepository<StockAnalysis, Long>, org.springframework.data.repository.PagingAndSortingRepository<StockAnalysis, Long>, org.springframework.data.repository.query.QueryByExampleExecutor<StockAnalysis>, org.springframework.data.repository.Repository<StockAnalysis, Long>
@Repository
public interface StockAnalysisRepository
extends org.springframework.data.jpa.repository.JpaRepository<StockAnalysis, Long>
Repositório para Análises Fundamentalistas.
Propósito: Armazenar e recuperar análises consolidadas de empresas.
-
Method Summary
Modifier and TypeMethodDescriptionfindByCompanyName(String company) Busca a análise pelo nome da empresa.findByTicker(String ticker) Busca a análise mais recente de uma empresa pelo Ticker.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
-
findByTicker
Busca a análise mais recente de uma empresa pelo Ticker.- Parameters:
ticker- O código do ativo.- Returns:
- A análise, se existir.
-
findByCompanyName
Busca a análise pelo nome da empresa.- Parameters:
company- O nome da empresa.- Returns:
- A análise, se existir.
-