Class QuerydslKeyValuePredicateExecutor<T>

java.lang.Object
org.springframework.data.keyvalue.repository.support.QuerydslKeyValuePredicateExecutor<T>
All Implemented Interfaces:
org.springframework.data.querydsl.ListQuerydslPredicateExecutor<T>, org.springframework.data.querydsl.QuerydslPredicateExecutor<T>

public class QuerydslKeyValuePredicateExecutor<T> extends Object implements org.springframework.data.querydsl.ListQuerydslPredicateExecutor<T>
QuerydslPredicateExecutor capable of applying Predicates using CollQuery.
Since:
2.6
Author:
Mark Paluch
  • Constructor Summary

    Constructors
    Constructor
    Description
    QuerydslKeyValuePredicateExecutor(org.springframework.data.repository.core.EntityInformation<T,?> entityInformation, KeyValueOperations operations)
    Creates a new QuerydslKeyValuePredicateExecutor for the given EntityInformation.
    QuerydslKeyValuePredicateExecutor(org.springframework.data.repository.core.EntityInformation<T,?> entityInformation, org.springframework.data.projection.ProjectionFactory projectionFactory, KeyValueOperations operations, org.springframework.data.querydsl.EntityPathResolver resolver)
    Creates a new QuerydslKeyValuePredicateExecutor for the given EntityInformation, and EntityPathResolver.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    count(com.querydsl.core.types.Predicate predicate)
     
    boolean
    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)
     
    org.springframework.data.domain.Page<T>
    findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable)
     
    findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Sort sort)
     
    <S extends T, R>
    R
    findBy(com.querydsl.core.types.Predicate predicate, Function<org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>,R> queryFunction)
     
    findOne(com.querydsl.core.types.Predicate predicate)
     
    protected com.querydsl.collections.AbstractCollQuery<T,?>
    prepareQuery(com.querydsl.core.types.Predicate predicate)
    Creates executable query for given Predicate.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QuerydslKeyValuePredicateExecutor

      public QuerydslKeyValuePredicateExecutor(org.springframework.data.repository.core.EntityInformation<T,?> entityInformation, KeyValueOperations operations)
      Creates a new QuerydslKeyValuePredicateExecutor for the given EntityInformation.
      Parameters:
      entityInformation - must not be null.
      operations - must not be null.
    • QuerydslKeyValuePredicateExecutor

      public QuerydslKeyValuePredicateExecutor(org.springframework.data.repository.core.EntityInformation<T,?> entityInformation, org.springframework.data.projection.ProjectionFactory projectionFactory, KeyValueOperations operations, org.springframework.data.querydsl.EntityPathResolver resolver)
      Creates a new QuerydslKeyValuePredicateExecutor for the given EntityInformation, and EntityPathResolver.
      Parameters:
      entityInformation - must not be null.
      projectionFactory - must not be null.
      operations - must not be null.
      resolver - must not be null.
  • Method Details

    • findOne

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

      public List<T> findAll(com.querydsl.core.types.Predicate predicate)
      Specified by:
      findAll in interface org.springframework.data.querydsl.ListQuerydslPredicateExecutor<T>
      Specified by:
      findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<T>
    • findAll

      public List<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders)
      Specified by:
      findAll in interface org.springframework.data.querydsl.ListQuerydslPredicateExecutor<T>
      Specified by:
      findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<T>
    • findAll

      public List<T> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Sort sort)
      Specified by:
      findAll in interface org.springframework.data.querydsl.ListQuerydslPredicateExecutor<T>
      Specified by:
      findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<T>
    • findAll

      public org.springframework.data.domain.Page<T> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable)
      Specified by:
      findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<T>
    • findAll

      public List<T> findAll(com.querydsl.core.types.OrderSpecifier<?>... orders)
      Specified by:
      findAll in interface org.springframework.data.querydsl.ListQuerydslPredicateExecutor<T>
      Specified by:
      findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<T>
    • count

      public long count(com.querydsl.core.types.Predicate predicate)
      Specified by:
      count in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<T>
    • exists

      public boolean exists(com.querydsl.core.types.Predicate predicate)
      Specified by:
      exists in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<T>
    • findBy

      public <S extends T, R> R findBy(com.querydsl.core.types.Predicate predicate, Function<org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>,R> queryFunction)
      Specified by:
      findBy in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<T>
    • prepareQuery

      protected com.querydsl.collections.AbstractCollQuery<T,?> prepareQuery(@Nullable com.querydsl.core.types.Predicate predicate)
      Creates executable query for given Predicate.
      Parameters:
      predicate -
      Returns: