|
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> entityMetadata,
javax.persistence.EntityManager entityManager)
Creates a new QueryDslJpaRepository from the given domain class
and EntityManager . |
|
QueryDslJpaRepository(JpaEntityInformation<T,ID> entityMetadata,
javax.persistence.EntityManager entityManager,
org.springframework.data.querydsl.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,
org.springframework.data.domain.Pageable pageable)
Applies the given Pageable to the given JPQLQuery . |
protected com.mysema.query.jpa.JPQLQuery |
applySorting(com.mysema.query.jpa.JPQLQuery query,
org.springframework.data.domain.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)
|
org.springframework.data.domain.Page<T> |
findAll(com.mysema.query.types.Predicate predicate,
org.springframework.data.domain.Pageable pageable)
|
T |
findOne(com.mysema.query.types.Predicate predicate)
|
protected com.mysema.query.types.OrderSpecifier<?> |
toOrder(org.springframework.data.domain.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, deleteInBatch, exists, findAll, findAll, findAll, findAll, findAll, findAll, findOne, findOne, flush, save, save, saveAndFlush |
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> entityMetadata, 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
.
domainClass
- entityManager
- public QueryDslJpaRepository(JpaEntityInformation<T,ID> entityMetadata, javax.persistence.EntityManager entityManager, org.springframework.data.querydsl.EntityPathResolver resolver)
QueryDslJpaRepository
from the given domain class
and EntityManager
and uses the given EntityPathResolver
to translate the domain class into an EntityPath
.
domainClass
- entityManager
- resolver
- Method Detail |
---|
public T findOne(com.mysema.query.types.Predicate predicate)
findOne
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
public List<T> findAll(com.mysema.query.types.Predicate predicate)
findAll
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
public List<T> findAll(com.mysema.query.types.Predicate predicate, com.mysema.query.types.OrderSpecifier<?>... orders)
findAll
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
public org.springframework.data.domain.Page<T> findAll(com.mysema.query.types.Predicate predicate, org.springframework.data.domain.Pageable pageable)
findAll
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
public long count(com.mysema.query.types.Predicate predicate)
count
in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
protected com.mysema.query.jpa.JPQLQuery createQuery(com.mysema.query.types.Predicate... predicate)
JPQLQuery
for the given Predicate
.
predicate
-
protected com.mysema.query.jpa.JPQLQuery applyPagination(com.mysema.query.jpa.JPQLQuery query, org.springframework.data.domain.Pageable pageable)
Pageable
to the given JPQLQuery
.
query
- pageable
-
protected com.mysema.query.jpa.JPQLQuery applySorting(com.mysema.query.jpa.JPQLQuery query, org.springframework.data.domain.Sort sort)
JPQLQuery
.
query
- sort
-
protected com.mysema.query.types.OrderSpecifier<?> toOrder(org.springframework.data.domain.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 |