T - public interface ReactiveQueryByExampleExecutor<T>
Example instances using a reactive infrastructure.| Modifier and Type | Method and Description |
|---|---|
<S extends T> |
count(Example<S> example)
Returns the number of instances matching the given
Example. |
<S extends T> |
exists(Example<S> example)
Checks whether the data store contains elements that match the given
Example. |
<S extends T> |
findAll(Example<S> example)
Returns all entities matching the given
Example. |
<S extends T> |
findAll(Example<S> example,
Sort sort)
|
<S extends T,R,P extends org.reactivestreams.Publisher<R>> |
findBy(Example<S> example,
Function<FluentQuery.ReactiveFluentQuery<S>,P> queryFunction)
Returns entities matching the given
Example applying the queryFunction that defines the
query and its result type. |
<S extends T> |
findOne(Example<S> example)
Returns a single entity matching the given
Example or Mono.empty() if none was found. |
<S extends T> reactor.core.publisher.Mono<S> findOne(Example<S> example)
Example or Mono.empty() if none was found.example - must not be null.Example or Mono.empty() if none was found.IncorrectResultSizeDataAccessException - via Mono.error(Throwable) if the
example yields more than one result.<S extends T> reactor.core.publisher.Flux<S> findAll(Example<S> example)
Example. In case no match could be found Flux.empty() is
returned.example - must not be null.Example.<S extends T> reactor.core.publisher.Mono<Long> count(Example<S> example)
Example.<S extends T> reactor.core.publisher.Mono<Boolean> exists(Example<S> example)
Example.<S extends T,R,P extends org.reactivestreams.Publisher<R>> P findBy(Example<S> example, Function<FluentQuery.ReactiveFluentQuery<S>,P> queryFunction)
Example applying the queryFunction that defines the
query and its result type.example - must not be null.queryFunction - the query function defining projection, sorting, and the result typeExample.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.