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 Summary
Modifier and TypeMethodDescriptionlongcountDistinctTitleByPagesGreaterThan(int pageCount) longcountTitleByPagesGreaterThan(int pageCount) intdeleteByTitleStartingWith(String title) booleanexistsByAuthor(Author author) longfindAvgPagesByAuthor(Author author) findByAuthor(Author author) findByPagesGreaterThan(int pageCount) findByPagesGreaterThanEquals(int pages) findByPagesLessThan(int pageCount) findByPagesLessThanEquals(int pageCount) findByPublicationYearAfter(int year) findByPublicationYearBefore(int year) findByPublicationYearBetween(int startYear, int endYear) findByTitleContains(String keyword) findByTitleEndingWith(String keyword) findByTitleIn(Collection<String> titles) findByTitleLike(String like) findByTitleStartingWith(String keyword) findDistinctTitleByPagesGreaterThan(int pageCount) longfindMaxPagesByAuthor(Author author) longfindMinPagesByAuthor(Author author) longfindSumPagesByAuthor(Author author) saveBooks(Collection<Book> books) intupdate(com.tangosol.util.UUID id, int pages) voidupdateByTitleStartingWith(String title, int pages) Methods inherited from interface io.micronaut.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findById, save, saveAll, update, updateAll
-
Method Details
-
existsByAuthor
-
findByAuthor
-
findByPagesGreaterThanEquals
-
findByPagesLessThanEquals
-
findByTitleLike
-
findByPagesGreaterThan
-
findByPagesLessThan
-
findByPublicationYearAfter
-
findByPublicationYearBefore
-
findByTitleContains
-
findByTitleStartingWith
-
findByTitleEndingWith
-
findByTitleIn
-
findByPublicationYearBetween
-
findByAuthorIsNull
-
findByAuthorIsNotNull
-
countTitleByPagesGreaterThan
long countTitleByPagesGreaterThan(int pageCount) -
countDistinctTitleByPagesGreaterThan
long countDistinctTitleByPagesGreaterThan(int pageCount) -
findDistinctTitleByPagesGreaterThan
-
findMaxPagesByAuthor
-
findMinPagesByAuthor
-
findSumPagesByAuthor
-
findAvgPagesByAuthor
-
update
-
updateByTitleStartingWith
-
deleteByTitleStartingWith
-
saveBooks
-