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 Type
    Method
    Description
    Busca a análise pelo nome da empresa.
    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, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    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

    • findByTicker

      Optional<StockAnalysis> findByTicker(String ticker)
      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

      Optional<StockAnalysis> findByCompanyName(String company)
      Busca a análise pelo nome da empresa.
      Parameters:
      company - O nome da empresa.
      Returns:
      A análise, se existir.