|
Spring Data Jpa | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.
| Nested Class Summary | |
|---|---|
static interface |
QueryDslJpaRepository.EntityPathResolver
Strategy interface to abstract the ways to translate an plain domain class into a EntityPath. |
| 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,
QueryDslJpaRepository.EntityPathResolver resolver)
Creates a new QueryDslJpaRepository from the given domain class
and EntityManager and uses the given QueryDslJpaRepository.EntityPathResolver
to translate the domain class into an EntityPath. |
|
| Method Summary | |
|---|---|
Long |
count(com.mysema.query.types.Predicate predicate)
Returns the number of instances that the given Predicate will
return. |
List<T> |
findAll(com.mysema.query.types.Predicate predicate)
Returns all entities matching the given Predicate. |
List<T> |
findAll(com.mysema.query.types.Predicate predicate,
com.mysema.query.types.OrderSpecifier<?>... orders)
Returns all entities matching the given Predicate applying the
given OrderSpecifiers. |
org.springframework.data.domain.Page<T> |
findAll(com.mysema.query.types.Predicate predicate,
org.springframework.data.domain.Pageable pageable)
Returns a Page of entities matching the given Predicate. |
T |
findOne(com.mysema.query.types.Predicate predicate)
Returns a single entity matching the given Predicate. |
| Methods inherited from class org.springframework.data.jpa.repository.support.SimpleJpaRepository |
|---|
count, count, delete, delete, deleteAll, deleteInBatch, exists, 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,
QueryDslJpaRepository.EntityPathResolver resolver)
QueryDslJpaRepository from the given domain class
and EntityManager and uses the given QueryDslJpaRepository.EntityPathResolver
to translate the domain class into an EntityPath.
domainClass - entityManager - resolver - | Method Detail |
|---|
public T findOne(com.mysema.query.types.Predicate predicate)
QueryDslPredicateExecutorPredicate.
findOne in interface QueryDslPredicateExecutor<T>public List<T> findAll(com.mysema.query.types.Predicate predicate)
QueryDslPredicateExecutorPredicate.
findAll in interface QueryDslPredicateExecutor<T>
public List<T> findAll(com.mysema.query.types.Predicate predicate,
com.mysema.query.types.OrderSpecifier<?>... orders)
QueryDslPredicateExecutorPredicate applying the
given OrderSpecifiers.
findAll in interface QueryDslPredicateExecutor<T>
public org.springframework.data.domain.Page<T> findAll(com.mysema.query.types.Predicate predicate,
org.springframework.data.domain.Pageable pageable)
QueryDslPredicateExecutorPage of entities matching the given Predicate.
findAll in interface QueryDslPredicateExecutor<T>public Long count(com.mysema.query.types.Predicate predicate)
QueryDslPredicateExecutorPredicate will
return.
count in interface QueryDslPredicateExecutor<T>predicate - the Predicate to count instances for
|
Spring Data Jpa | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||