Interface BooksRepository

All Superinterfaces:
BookRepositoryCustom, org.springframework.data.repository.CrudRepository<Book,String>, org.springframework.data.repository.ListCrudRepository<Book,String>, org.springframework.data.repository.ListPagingAndSortingRepository<Book,String>, org.springframework.data.mongodb.repository.MongoRepository<Book,String>, org.springframework.data.repository.PagingAndSortingRepository<Book,String>, org.springframework.data.repository.query.QueryByExampleExecutor<Book>, org.springframework.data.repository.Repository<Book,String>

public interface BooksRepository extends org.springframework.data.mongodb.repository.MongoRepository<Book,String>, BookRepositoryCustom
  • Method Details

    • getByTitle

      Optional<Book> getByTitle(String title)
    • findByTitle

      List<Book> findByTitle(String title)
    • findByTitleNot

      List<Book> findByTitleNot(String title)
    • findByTitleContaining

      List<Book> findByTitleContaining(String string)
    • findByTitleNotContaining

      List<Book> findByTitleNotContaining(String title)
    • findByTitleMatches

      List<Book> findByTitleMatches(String string)
    • findByTitleNotMatches

      @Query("{ \'title\' : { $not : /?0/ } }") List<Book> findByTitleNotMatches(String title)
    • findByPublishedAfter

      List<Book> findByPublishedAfter(LocalDate date)
    • findByPublishedGreaterThanEqual

      List<Book> findByPublishedGreaterThanEqual(LocalDate date)
    • findByPublishedBetween

      @Query("{ \'published\': { $gte: ?0, $lte: ?1 } }") List<Book> findByPublishedBetween(LocalDate starting, LocalDate ending)
    • findByPublishedBetween

      @Query(value="{ \'published\': { $gte: ?0, $lte: ?1 } }", sort="{\'_id\':1}") org.springframework.data.domain.Page<Book> findByPublishedBetween(LocalDate starting, LocalDate ending, org.springframework.data.domain.Pageable pageable)
    • findByPublishedAfter

      org.springframework.data.domain.Page<Book> findByPublishedAfter(LocalDate date, org.springframework.data.domain.Pageable pageable)
    • findByTitleNullAndPublishedAfter

      List<Book> findByTitleNullAndPublishedAfter(LocalDate date)
    • findByTitleNullAndPublishedAfter

      org.springframework.data.domain.Slice<Book> findByTitleNullAndPublishedAfter(LocalDate date, org.springframework.data.domain.Pageable pageable)
    • findPageByTitleNullAndPublishedAfter

      org.springframework.data.domain.Page<Book> findPageByTitleNullAndPublishedAfter(LocalDate date, org.springframework.data.domain.Pageable pageable)
    • getTitlesGESizeAsBook

      @Query(value="{ \'title\': /^.{?0,}$/ }", fields="{\'_id\':0, \'title\':1}") List<Book> getTitlesGESizeAsBook(int length)
    • findByTitleStartingWith

      List<Book> findByTitleStartingWith(String string, org.springframework.data.domain.Sort sort)
    • findByTitleStartingWith

      org.springframework.data.domain.Slice<Book> findByTitleStartingWith(String string, org.springframework.data.domain.Pageable pageable)
    • findPageByTitleStartingWith

      org.springframework.data.domain.Page<Book> findPageByTitleStartingWith(String string, org.springframework.data.domain.Pageable pageable)