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

    • insert

      <S extends Book> S insert(S entity)
      Description copied from interface: CrudRepository
      This method issues an explicit insert for the given entity. The method differs from CrudRepository.save(Object) in that an insert will be generated regardless of the entity identity state. If the entity already exists then an exception may be thrown.
      Specified by:
      insert in interface CrudRepository<Book, com.tangosol.util.UUID>
      Type Parameters:
      S - The generic type
      Parameters:
      entity - The entity to insert. Must not be null.
      Returns:
      The inserted entity will never be null.
    • 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)
    • insertBooks

      Collection<Book> insertBooks(Collection<Book> books)