Class ReactiveQuerydslMongoPredicateExecutor<T>

java.lang.Object
org.springframework.data.mongodb.repository.support.ReactiveQuerydslMongoPredicateExecutor<T>
All Implemented Interfaces:
org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<T>

public class ReactiveQuerydslMongoPredicateExecutor<T> extends Object implements org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<T>
MongoDB-specific QuerydslPredicateExecutor that allows execution Predicates in various forms.
Since:
2.2
Author:
Mark Paluch, Christoph Strobl
  • Constructor Details

  • Method Details

    • findOne

      public reactor.core.publisher.Mono<T> findOne(com.querydsl.core.types.Predicate predicate)
      Specified by:
      findOne in interface org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<T>
    • findAll

      public reactor.core.publisher.Flux<T> findAll(com.querydsl.core.types.Predicate predicate)
      Specified by:
      findAll in interface org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<T>
    • findAll

      public reactor.core.publisher.Flux<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders)
      Specified by:
      findAll in interface org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<T>
    • findAll

      public reactor.core.publisher.Flux<T> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Sort sort)
      Specified by:
      findAll in interface org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<T>
    • findAll

      public reactor.core.publisher.Flux<T> findAll(com.querydsl.core.types.OrderSpecifier<?>... orders)
      Specified by:
      findAll in interface org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<T>
    • count

      public reactor.core.publisher.Mono<Long> count(com.querydsl.core.types.Predicate predicate)
      Specified by:
      count in interface org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<T>
    • exists

      public reactor.core.publisher.Mono<Boolean> exists(com.querydsl.core.types.Predicate predicate)
      Specified by:
      exists in interface org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<T>
    • findBy

      public <S extends T, R, P extends org.reactivestreams.Publisher<R>> P findBy(com.querydsl.core.types.Predicate predicate, Function<org.springframework.data.repository.query.FluentQuery.ReactiveFluentQuery<S>,P> queryFunction)
      Specified by:
      findBy in interface org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<T>
    • pathBuilderFor

      protected static <E> com.querydsl.core.types.dsl.PathBuilder<E> pathBuilderFor(com.querydsl.core.types.EntityPath<E> path)
    • typeInformation

      protected org.springframework.data.repository.core.EntityInformation<T,?> typeInformation()
    • mongodbSerializer

      protected org.springframework.data.mongodb.repository.support.SpringDataMongodbSerializer mongodbSerializer()
    • toOrder

      protected com.querydsl.core.types.OrderSpecifier<?> toOrder(org.springframework.data.domain.Sort.Order order)
      Transforms a plain Sort.Order into a Querydsl specific OrderSpecifier.
      Parameters:
      order -
      Returns:
    • toOrderSpecifiers

      protected List<com.querydsl.core.types.OrderSpecifier<?>> toOrderSpecifiers(org.springframework.data.domain.Sort sort)
      Converts the given Sort to OrderSpecifier.
      Parameters:
      sort -
      Returns: