public class QuerydslJpaPredicateExecutor<T> extends Object implements QuerydslPredicateExecutor<T>
SimpleJpaRepository with an implementation for implementation for
QuerydslPredicateExecutor.| Constructor and Description |
|---|
QuerydslJpaPredicateExecutor(JpaEntityInformation<T,?> entityInformation,
javax.persistence.EntityManager entityManager,
EntityPathResolver resolver,
CrudMethodMetadata metadata)
Creates a new
QuerydslJpaPredicateExecutor from the given domain class and EntityManager and uses
the given EntityPathResolver to translate the domain class into an EntityPath. |
| Modifier and Type | Method and Description |
|---|---|
long |
count(com.querydsl.core.types.Predicate predicate) |
protected com.querydsl.jpa.JPQLQuery<?> |
createCountQuery(com.querydsl.core.types.Predicate... predicate)
Creates a new
JPQLQuery count query for the given Predicate. |
protected com.querydsl.jpa.JPQLQuery<?> |
createQuery(com.querydsl.core.types.Predicate... predicate)
Creates a new
JPQLQuery for the given Predicate. |
boolean |
exists(com.querydsl.core.types.Predicate predicate) |
List<T> |
findAll(com.querydsl.core.types.OrderSpecifier<?>... orders) |
List<T> |
findAll(com.querydsl.core.types.Predicate predicate) |
List<T> |
findAll(com.querydsl.core.types.Predicate predicate,
com.querydsl.core.types.OrderSpecifier<?>... orders) |
Page<T> |
findAll(com.querydsl.core.types.Predicate predicate,
Pageable pageable) |
List<T> |
findAll(com.querydsl.core.types.Predicate predicate,
Sort sort) |
Optional<T> |
findOne(com.querydsl.core.types.Predicate predicate) |
public QuerydslJpaPredicateExecutor(JpaEntityInformation<T,?> entityInformation, javax.persistence.EntityManager entityManager, EntityPathResolver resolver, @Nullable CrudMethodMetadata metadata)
QuerydslJpaPredicateExecutor from the given domain class and EntityManager and uses
the given EntityPathResolver to translate the domain class into an EntityPath.entityInformation - must not be null.entityManager - must not be null.resolver - must not be null.metadata - maybe null.public Optional<T> findOne(com.querydsl.core.types.Predicate predicate)
findOne in interface QuerydslPredicateExecutor<T>public List<T> findAll(com.querydsl.core.types.Predicate predicate)
findAll in interface QuerydslPredicateExecutor<T>public List<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders)
findAll in interface QuerydslPredicateExecutor<T>public List<T> findAll(com.querydsl.core.types.Predicate predicate, Sort sort)
findAll in interface QuerydslPredicateExecutor<T>public List<T> findAll(com.querydsl.core.types.OrderSpecifier<?>... orders)
findAll in interface QuerydslPredicateExecutor<T>public Page<T> findAll(com.querydsl.core.types.Predicate predicate, Pageable pageable)
findAll in interface QuerydslPredicateExecutor<T>public long count(com.querydsl.core.types.Predicate predicate)
count in interface QuerydslPredicateExecutor<T>public boolean exists(com.querydsl.core.types.Predicate predicate)
exists in interface QuerydslPredicateExecutor<T>protected com.querydsl.jpa.JPQLQuery<?> createQuery(com.querydsl.core.types.Predicate... predicate)
JPQLQuery for the given Predicate.predicate - JPQLQuery.protected com.querydsl.jpa.JPQLQuery<?> createCountQuery(@Nullable com.querydsl.core.types.Predicate... predicate)
JPQLQuery count query for the given Predicate.predicate, - can be null.JPQLQuery.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.