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.mysema.query.types.Predicate predicate) |
protected com.mysema.query.jpa.JPQLQuery |
createQuery(com.mysema.query.types.Predicate... predicate)
Creates a new
JPQLQuery for the given Predicate. |
List<T> |
findAll(com.mysema.query.types.Predicate predicate) |
List<T> |
findAll(com.mysema.query.types.Predicate predicate,
com.mysema.query.types.OrderSpecifier<?>... orders) |
Page<T> |
findAll(com.mysema.query.types.Predicate predicate,
Pageable pageable) |
T |
findOne(com.mysema.query.types.Predicate predicate) |
count, count, delete, delete, delete, deleteAll, deleteAllInBatch, deleteInBatch, exists, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findOne, findOne, flush, save, save, saveAndFlush, setLockMetadataProviderpublic 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.mysema.query.types.Predicate predicate)
findOne in interface QueryDslPredicateExecutor<T>public List<T> findAll(com.mysema.query.types.Predicate predicate)
findAll in interface QueryDslPredicateExecutor<T>public List<T> findAll(com.mysema.query.types.Predicate predicate, com.mysema.query.types.OrderSpecifier<?>... orders)
findAll in interface QueryDslPredicateExecutor<T>public Page<T> findAll(com.mysema.query.types.Predicate predicate, Pageable pageable)
findAll in interface QueryDslPredicateExecutor<T>public long count(com.mysema.query.types.Predicate predicate)
count in interface QueryDslPredicateExecutor<T>protected com.mysema.query.jpa.JPQLQuery createQuery(com.mysema.query.types.Predicate... predicate)
JPQLQuery for the given Predicate.predicate - JPQLQuery.Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.