public interface ReactiveQuerydslPredicateExecutor<T>
Predicate instances. ReactiveCrudRepository
interface to wire in Querydslsupport.
public interface PersonRepository extends ReactiveCrudRepository<Person, String>, ReactiveQuerydslPredicateExecutor<Person> {
}
// ...
personRepository.findOne(QPerson.person.email.eq("t-800@skynet.io"))
.flatMap(t800 ->
//....
IMPORTANT: Please check the module specific documentation whether or not Querydsl is supported.| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Long> |
count(com.querydsl.core.types.Predicate predicate)
Returns a
Mono emitting the number of instances matching the given Predicate. |
reactor.core.publisher.Mono<Boolean> |
exists(com.querydsl.core.types.Predicate predicate)
Checks whether the data store contains elements that match the given
Predicate. |
reactor.core.publisher.Flux<T> |
findAll(com.querydsl.core.types.OrderSpecifier<?>... orders)
Returns a
Flux emitting all entities ordered by the given OrderSpecifiers. |
reactor.core.publisher.Flux<T> |
findAll(com.querydsl.core.types.Predicate predicate)
Returns a
Flux emitting all entities matching the given Predicate. |
reactor.core.publisher.Flux<T> |
findAll(com.querydsl.core.types.Predicate predicate,
com.querydsl.core.types.OrderSpecifier<?>... orders)
Returns a
Flux emitting all entities matching the given Predicate applying the given
OrderSpecifiers. |
reactor.core.publisher.Flux<T> |
findAll(com.querydsl.core.types.Predicate predicate,
Sort sort)
|
reactor.core.publisher.Mono<T> |
findOne(com.querydsl.core.types.Predicate predicate)
Returns a
Mono emitting the entity matching the given Predicate or Mono.empty() if none was
found. |
reactor.core.publisher.Mono<T> findOne(com.querydsl.core.types.Predicate predicate)
Mono emitting the entity matching the given Predicate or Mono.empty() if none was
found.predicate - must not be null.Mono emitting a single entity matching the given Predicate or Mono.empty() if
none was found.IllegalArgumentException - if the required parameter is null.IncorrectResultSizeDataAccessException - if the predicate yields more than one
result.reactor.core.publisher.Flux<T> findAll(com.querydsl.core.types.Predicate predicate)
Flux emitting all entities matching the given Predicate. In case no match could be found,
Flux emits no items.predicate - must not be null.Flux emitting all entities matching the given Predicate one by one.IllegalArgumentException - if the required parameter is null.reactor.core.publisher.Flux<T> findAll(com.querydsl.core.types.Predicate predicate, Sort sort)
Flux emitting all entities matching the given Predicate applying the given Sort.
In case no match could be found, Flux emits no items.predicate - must not be null.sort - the Sort specification to sort the results by, may be Sort.unsorted(), must not be
null.Flux emitting all entities matching the given Predicate one by one.IllegalArgumentException - if one of the required parameters is null.reactor.core.publisher.Flux<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders)
Flux emitting all entities matching the given Predicate applying the given
OrderSpecifiers. In case no match could be found, Flux emits no items.predicate - must not be null.orders - the OrderSpecifiers to sort the results by.Flux emitting all entities matching the given Predicate applying the given
OrderSpecifiers.IllegalArgumentException - if one of the required parameter is null, or contains a null
value.reactor.core.publisher.Flux<T> findAll(com.querydsl.core.types.OrderSpecifier<?>... orders)
Flux emitting all entities ordered by the given OrderSpecifiers.orders - the OrderSpecifiers to sort the results by.Flux emitting all entities ordered by the given OrderSpecifiers.IllegalArgumentException - one of the OrderSpecifiers is null.reactor.core.publisher.Mono<Long> count(com.querydsl.core.types.Predicate predicate)
Mono emitting the number of instances matching the given Predicate.predicate - the Predicate to count instances for, must not be null.Mono emitting the number of instances matching the Predicate or 0 if none found.IllegalArgumentException - if the required parameter is null.reactor.core.publisher.Mono<Boolean> exists(com.querydsl.core.types.Predicate predicate)
Predicate.predicate - the Predicate to use for the existence check, must not be null.Mono emitting true if the data store contains elements that match the given
Predicate, false otherwise.IllegalArgumentException - if the required parameter is null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.