public class QueryDslJpaRepository<T,ID extends Serializable> extends SimpleJpaRepository<T,ID> implements QueryDslPredicateExecutor<T>
SimpleJpaRepository which adds implementation for
QueryDslPredicateExecutor.| Constructor and Description |
|---|
QueryDslJpaRepository(JpaEntityInformation<T,ID> entityInformation,
javax.persistence.EntityManager entityManager)
Creates a new
QueryDslJpaRepository from the given domain class and EntityManager. |
QueryDslJpaRepository(JpaEntityInformation<T,ID> entityInformation,
javax.persistence.EntityManager entityManager,
EntityPathResolver resolver)
Creates a new
QueryDslJpaRepository 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) |
T |
findOne(com.querydsl.core.types.Predicate predicate) |
count, count, count, delete, delete, delete, deleteAll, deleteAllInBatch, deleteInBatch, exists, exists, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findOne, findOne, findOne, flush, getCountQuery, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQuery, getQuery, getQueryHints, getRepositoryMethodMetadata, readPage, readPage, save, save, saveAndFlush, setRepositoryMethodMetadatapublic QueryDslJpaRepository(JpaEntityInformation<T,ID> entityInformation, javax.persistence.EntityManager entityManager)
QueryDslJpaRepository from the given domain class and EntityManager. This will use
the SimpleEntityPathResolver to translate the given domain class into an EntityPath.entityInformation - must not be null.entityManager - must not be null.public QueryDslJpaRepository(JpaEntityInformation<T,ID> entityInformation, javax.persistence.EntityManager entityManager, EntityPathResolver resolver)
QueryDslJpaRepository 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.public 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(com.querydsl.core.types.Predicate predicate)
JPQLQuery count query for the given Predicate.predicate, - can be null.JPQLQuery.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.