Interface AsyncBookRepository
- All Superinterfaces:
AsyncCrudRepository<Book, com.tangosol.util.UUID>, GenericRepository<Book, com.tangosol.util.UUID>
@CoherenceRepository("book")
public interface AsyncBookRepository
extends AsyncCrudRepository<Book, com.tangosol.util.UUID>
A
Book Repository to test queries generated by Micronaut.-
Method Summary
Modifier and TypeMethodDescriptioncountDistinctTitleByPagesGreaterThan(int pageCount) countTitleByPagesGreaterThan(int pageCount) deleteByTitleStartingWith(String title) existsByAuthor(Author author) findAvgPagesByAuthor(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) findMaxPagesByAuthor(Author author) findMinPagesByAuthor(Author author) findSumPagesByAuthor(Author author) <S extends Book>
CompletableFuture<S> insert(S entity) This method issues an explicit insert for the given entity.insertBooks(Collection<Book> books) update(com.tangosol.util.UUID id, int pages) updateByTitleStartingWith(String title, int pages) Methods inherited from interface AsyncCrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findById, insertAll, save, saveAll, update, updateAll
-
Method Details
-
insert
Description copied from interface:AsyncCrudRepositoryThis method issues an explicit insert for the given entity. The method differs fromAsyncCrudRepository.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 interfaceAsyncCrudRepository<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
CompletableFuture<List<Book>> findByAuthorIsNull() -
findByAuthorIsNotNull
CompletableFuture<List<Book>> findByAuthorIsNotNull() -
countTitleByPagesGreaterThan
-
countDistinctTitleByPagesGreaterThan
-
findDistinctTitleByPagesGreaterThan
-
findMaxPagesByAuthor
-
findMinPagesByAuthor
-
findSumPagesByAuthor
-
findAvgPagesByAuthor
-
update
-
updateByTitleStartingWith
-
deleteByTitleStartingWith
-
insertBooks
-