Class QuerydslJpaPredicateExecutor<T>

java.lang.Object
org.springframework.data.jpa.repository.support.QuerydslJpaPredicateExecutor<T>
All Implemented Interfaces:
QuerydslPredicateExecutor<T>

public class QuerydslJpaPredicateExecutor<T> extends Object implements QuerydslPredicateExecutor<T>
Querydsl specific fragment for extending SimpleJpaRepository with an implementation of QuerydslPredicateExecutor.
Author:
Oliver Gierke, Thomas Darimont, Mark Paluch, Jocelyn Ntakpe, Christoph Strobl, Jens Schauder, Greg Turnquist, Yanming Zhou
  • Constructor Details

  • Method Details

    • findOne

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

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

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

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

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

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

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

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

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

      protected com.querydsl.jpa.impl.AbstractJPAQuery<?,?> createQuery(com.querydsl.core.types.Predicate... predicate)
      Creates a new JPQLQuery for the given Predicate.
      Parameters:
      predicate -
      Returns:
      the Querydsl JPQLQuery.
    • createCountQuery

      protected com.querydsl.jpa.JPQLQuery<?> createCountQuery(@Nullable com.querydsl.core.types.Predicate... predicate)
      Creates a new JPQLQuery count query for the given Predicate.
      Parameters:
      predicate - , can be null.
      Returns:
      the Querydsl count JPQLQuery.