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) <S extends Book>
Sinsert(S entity) This method issues an explicit insert for the given entity.insertBooks(Collection<Book> books) intupdate(com.tangosol.util.UUID id, int pages) voidupdateByTitleStartingWith(String title, int pages) Methods inherited from interface CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findById, insertAll, save, saveAll, update, updateAll
-
Method Details
-
insert
Description copied from interface:CrudRepositoryThis method issues an explicit insert for the given entity. The method differs fromCrudRepository.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:
insertin interfaceCrudRepository<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
-
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
-
insertBooks
-