|
Spring Data Jpa | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.jpa.repository.support.SimpleJpaRepository<T,ID> org.springframework.data.jpa.repository.support.QueryDslJpaRepository<T,ID>
public class QueryDslJpaRepository<T,ID extends Serializable>
QueryDsl specific extension of SimpleJpaRepository
which adds implementation for
QueryDslPredicateExecutor
.
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
protected com.mysema.query.jpa.JPQLQuery |
applyPagination(com.mysema.query.jpa.JPQLQuery query,
Pageable pageable)
Applies the given Pageable to the given JPQLQuery . |
protected com.mysema.query.jpa.JPQLQuery |
applySorting(com.mysema.query.jpa.JPQLQuery query,
Sort sort)
Applies sorting to the given JPQLQuery . |
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)
|
protected com.mysema.query.types.OrderSpecifier<?> |
toOrder(Sort.Order order)
Transforms a plain Sort.Order into a QueryDsl specific OrderSpecifier . |
Methods inherited from class org.springframework.data.jpa.repository.support.SimpleJpaRepository |
---|
count, count, delete, delete, delete, deleteAll, deleteAllInBatch, deleteInBatch, exists, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findOne, findOne, flush, save, save, saveAndFlush, setLockMetadataProvider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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.Method Detail |
---|
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
.protected com.mysema.query.jpa.JPQLQuery applyPagination(com.mysema.query.jpa.JPQLQuery query, Pageable pageable)
Pageable
to the given JPQLQuery
.
query
- must not be null.pageable
-
JPQLQuery
.protected com.mysema.query.jpa.JPQLQuery applySorting(com.mysema.query.jpa.JPQLQuery query, Sort sort)
JPQLQuery
.
query
- must not be null.sort
-
JPQLQuery
protected com.mysema.query.types.OrderSpecifier<?> toOrder(Sort.Order order)
Sort.Order
into a QueryDsl specific OrderSpecifier
.
order
-
|
Spring Data Jpa | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |