Interface BookRepository

All Superinterfaces:
CrudRepository<Book,com.tangosol.util.UUID>, GenericRepository<Book,com.tangosol.util.UUID>

@CoherenceRepository("book") public interface BookRepository extends CrudRepository<Book,com.tangosol.util.UUID>
A Book Repository to test queries generated by Micronaut.
  • Method Details

    • existsByAuthor

      boolean existsByAuthor(Author author)
    • findByAuthor

      List<Book> findByAuthor(Author author)
    • findByPagesGreaterThanEquals

      List<Book> findByPagesGreaterThanEquals(int pages)
    • findByPagesLessThanEquals

      List<Book> findByPagesLessThanEquals(int pageCount)
    • findByTitleLike

      List<Book> findByTitleLike(String like)
    • findByPagesGreaterThan

      List<Book> findByPagesGreaterThan(int pageCount)
    • findByPagesLessThan

      List<Book> findByPagesLessThan(int pageCount)
    • findByPublicationYearAfter

      List<Book> findByPublicationYearAfter(int year)
    • findByPublicationYearBefore

      List<Book> findByPublicationYearBefore(int year)
    • findByTitleContains

      List<Book> findByTitleContains(String keyword)
    • findByTitleStartingWith

      List<Book> findByTitleStartingWith(String keyword)
    • findByTitleEndingWith

      List<Book> findByTitleEndingWith(String keyword)
    • findByTitleIn

      List<Book> findByTitleIn(Collection<String> titles)
    • findByPublicationYearBetween

      List<Book> findByPublicationYearBetween(int startYear, int endYear)
    • findByAuthorIsNull

      List<Book> findByAuthorIsNull()
    • findByAuthorIsNotNull

      List<Book> findByAuthorIsNotNull()
    • countTitleByPagesGreaterThan

      long countTitleByPagesGreaterThan(int pageCount)
    • countDistinctTitleByPagesGreaterThan

      long countDistinctTitleByPagesGreaterThan(int pageCount)
    • findDistinctTitleByPagesGreaterThan

      List<String> findDistinctTitleByPagesGreaterThan(int pageCount)
    • findMaxPagesByAuthor

      long findMaxPagesByAuthor(Author author)
    • findMinPagesByAuthor

      long findMinPagesByAuthor(Author author)
    • findSumPagesByAuthor

      long findSumPagesByAuthor(Author author)
    • findAvgPagesByAuthor

      long findAvgPagesByAuthor(Author author)
    • update

      int update(@Id com.tangosol.util.UUID id, int pages)
    • updateByTitleStartingWith

      void updateByTitleStartingWith(String title, int pages)
    • deleteByTitleStartingWith

      int deleteByTitleStartingWith(String title)
    • saveBooks

      Collection<Book> saveBooks(Collection<Book> books)