Interface ReactiveFindByQueryOperation.TerminatingFindByQuery<T>
- All Superinterfaces:
OneAndAllReactive<T>
- All Known Subinterfaces:
ReactiveFindByQueryOperation.FindByQueryConsistentWith<T>,ReactiveFindByQueryOperation.FindByQueryInCollection<T>,ReactiveFindByQueryOperation.FindByQueryInScope<T>,ReactiveFindByQueryOperation.FindByQueryWithConsistency<T>,ReactiveFindByQueryOperation.FindByQueryWithDistinct<T>,ReactiveFindByQueryOperation.FindByQueryWithOptions<T>,ReactiveFindByQueryOperation.FindByQueryWithProjecting<T>,ReactiveFindByQueryOperation.FindByQueryWithProjection<T>,ReactiveFindByQueryOperation.FindByQueryWithQuery<T>,ReactiveFindByQueryOperation.ReactiveFindByQuery<T>
- Enclosing interface:
- ReactiveFindByQueryOperation
public static interface ReactiveFindByQueryOperation.TerminatingFindByQuery<T>
extends OneAndAllReactive<T>
Compose find execution by calling one of the terminating methods.
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<T>all()Get all matching elements.reactor.core.publisher.Mono<Long>count()Get the number of matching elements.reactor.core.publisher.Mono<Boolean>exists()Check for the presence of matching elements.reactor.core.publisher.Mono<T>first()Get the first or no result.reactor.core.publisher.Mono<T>one()Get exactly zero or one result.
-
Method Details
-
one
reactor.core.publisher.Mono<T> one()Get exactly zero or one result.- Specified by:
onein interfaceOneAndAllReactive<T>- Returns:
- a mono with the match if found (an empty one otherwise).
- Throws:
IncorrectResultSizeDataAccessException- if more than one match found.
-
first
reactor.core.publisher.Mono<T> first()Get the first or no result.- Specified by:
firstin interfaceOneAndAllReactive<T>- Returns:
- the first or an empty mono if none found.
-
all
reactor.core.publisher.Flux<T> all()Get all matching elements.- Specified by:
allin interfaceOneAndAllReactive<T>- Returns:
- never null.
-
count
reactor.core.publisher.Mono<Long> count()Get the number of matching elements.- Specified by:
countin interfaceOneAndAllReactive<T>- Returns:
- total number of matching elements.
-
exists
reactor.core.publisher.Mono<Boolean> exists()Check for the presence of matching elements.- Specified by:
existsin interfaceOneAndAllReactive<T>- Returns:
- true if at least one matching element exists.
-