Interface StatisticRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Statistic,​java.lang.Long>, org.springframework.data.jpa.repository.JpaRepository<Statistic,​java.lang.Long>, org.springframework.data.repository.PagingAndSortingRepository<Statistic,​java.lang.Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Statistic>, org.springframework.data.repository.Repository<Statistic,​java.lang.Long>

    @Repository
    public interface StatisticRepository
    extends org.springframework.data.jpa.repository.JpaRepository<Statistic,​java.lang.Long>
    This interface is a repository for Statistic class.
    This interface gives an opportunity to make different operations with Statistic class in database(CRUD and a lot of more).
    Author:
    Arterm Koliushko, https://www.linkedin.com/in/artem-koliushko/
    See Also:
    JPA Repositories
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Optional<Statistic> findByName​(java.lang.String statisticName)
      This method allow to find statistic in database by statistic name.
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • findByName

        java.util.Optional<Statistic> findByName​(java.lang.String statisticName)
        This method allow to find statistic in database by statistic name.
        Parameters:
        statisticName - String value for the name of statistic.
        Returns:
        Optional with the result of the statistic seeking in the database by statistic name.