Interface NewsRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<News,String>, org.springframework.data.mongodb.repository.MongoRepository<News,String>, org.springframework.data.repository.PagingAndSortingRepository<News,String>, org.springframework.data.repository.query.QueryByExampleExecutor<News>, org.springframework.data.repository.Repository<News,String>

public interface NewsRepository extends org.springframework.data.mongodb.repository.MongoRepository<News,String>
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<News>
    findBySource(String source, org.springframework.data.domain.Pageable page)
     
    org.springframework.data.domain.Page<News>
    findBySourceAndType(String source, String type, org.springframework.data.domain.Pageable page)
     
    org.springframework.data.domain.Page<News>
    findByTitleContaining(String title, org.springframework.data.domain.Pageable page)
    this method docker

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAllById, findById, save

    Methods inherited from interface org.springframework.data.mongodb.repository.MongoRepository

    findAll, findAll, findAll, findAll, insert, insert, saveAll

    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

    • findByTitleContaining

      org.springframework.data.domain.Page<News> findByTitleContaining(String title, org.springframework.data.domain.Pageable page)
      this method docker
      Parameters:
      title -
      page -
      Returns:
    • findBySource

      org.springframework.data.domain.Page<News> findBySource(String source, org.springframework.data.domain.Pageable page)
    • findBySourceAndType

      org.springframework.data.domain.Page<News> findBySourceAndType(String source, String type, org.springframework.data.domain.Pageable page)