Class ReactiveQuerydslMongoPredicateExecutor<T>
java.lang.Object
org.springframework.data.mongodb.repository.support.ReactiveQuerydslMongoPredicateExecutor<T>
- All Implemented Interfaces:
ReactiveQuerydslPredicateExecutor<T>
public class ReactiveQuerydslMongoPredicateExecutor<T>
extends Object
implements ReactiveQuerydslPredicateExecutor<T>
MongoDB-specific
QuerydslPredicateExecutor that allows execution Predicates in various forms.- Since:
- 2.2
- Author:
- Mark Paluch, Christoph Strobl
-
Constructor Summary
ConstructorsConstructorDescriptionReactiveQuerydslMongoPredicateExecutor(MongoEntityInformation<T, ?> entityInformation, ReactiveMongoOperations mongoOperations) Creates a newReactiveQuerydslMongoPredicateExecutorfor the givenMongoEntityInformationandReactiveMongoOperations.ReactiveQuerydslMongoPredicateExecutor(MongoEntityInformation<T, ?> entityInformation, ReactiveMongoOperations mongoOperations, EntityPathResolver resolver) Creates a newReactiveQuerydslMongoPredicateExecutorfor the givenMongoEntityInformation,ReactiveMongoOperationsandEntityPathResolver. -
Method Summary
Modifier and TypeMethodDescriptioncount(com.querydsl.core.types.Predicate predicate) exists(com.querydsl.core.types.Predicate predicate) findAll(com.querydsl.core.types.OrderSpecifier<?>... orders) findAll(com.querydsl.core.types.Predicate predicate) findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders) findBy(com.querydsl.core.types.Predicate predicate, Function<FluentQuery.ReactiveFluentQuery<S>, P> queryFunction) findOne(com.querydsl.core.types.Predicate predicate) protected org.springframework.data.mongodb.repository.support.SpringDataMongodbSerializerprotected static <E> com.querydsl.core.types.dsl.PathBuilder<E> pathBuilderFor(com.querydsl.core.types.EntityPath<E> path) protected com.querydsl.core.types.OrderSpecifier<?> toOrder(Sort.Order order) Transforms a plainSort.Orderinto a Querydsl specificOrderSpecifier.protected List<com.querydsl.core.types.OrderSpecifier<?>> toOrderSpecifiers(Sort sort) Converts the givenSorttoOrderSpecifier.protected EntityInformation<T, ?>
-
Constructor Details
-
ReactiveQuerydslMongoPredicateExecutor
public ReactiveQuerydslMongoPredicateExecutor(MongoEntityInformation<T, ?> entityInformation, ReactiveMongoOperations mongoOperations) Creates a newReactiveQuerydslMongoPredicateExecutorfor the givenMongoEntityInformationandReactiveMongoOperations. Uses theSimpleEntityPathResolverto create anEntityPathfor the given domain class.- Parameters:
entityInformation- must not be null.mongoOperations- must not be null.
-
ReactiveQuerydslMongoPredicateExecutor
public ReactiveQuerydslMongoPredicateExecutor(MongoEntityInformation<T, ?> entityInformation, ReactiveMongoOperations mongoOperations, EntityPathResolver resolver) Creates a newReactiveQuerydslMongoPredicateExecutorfor the givenMongoEntityInformation,ReactiveMongoOperationsandEntityPathResolver.- Parameters:
entityInformation- must not be null.mongoOperations- must not be null.resolver- must not be null.
-
-
Method Details
-
findOne
- Specified by:
findOnein interfaceReactiveQuerydslPredicateExecutor<T>
-
findAll
- Specified by:
findAllin interfaceReactiveQuerydslPredicateExecutor<T>
-
findAll
public Flux<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders) - Specified by:
findAllin interfaceReactiveQuerydslPredicateExecutor<T>
-
findAll
-
findAll
- Specified by:
findAllin interfaceReactiveQuerydslPredicateExecutor<T>
-
count
- Specified by:
countin interfaceReactiveQuerydslPredicateExecutor<T>
-
exists
- Specified by:
existsin interfaceReactiveQuerydslPredicateExecutor<T>
-
findBy
public <S extends T, R, P extends Publisher<R>> P findBy(com.querydsl.core.types.Predicate predicate, Function<FluentQuery.ReactiveFluentQuery<S>, P> queryFunction) - Specified by:
findByin interfaceReactiveQuerydslPredicateExecutor<T>
-
pathBuilderFor
protected static <E> com.querydsl.core.types.dsl.PathBuilder<E> pathBuilderFor(com.querydsl.core.types.EntityPath<E> path) -
typeInformation
-
mongodbSerializer
protected org.springframework.data.mongodb.repository.support.SpringDataMongodbSerializer mongodbSerializer() -
toOrder
Transforms a plainSort.Orderinto a Querydsl specificOrderSpecifier.- Parameters:
order-- Returns:
-
toOrderSpecifiers
-