public class QueryDslJpaEntityGraphRepository<T,ID extends Serializable> extends SimpleJpaEntityGraphRepository<T,ID> implements JpaEntityGraphQueryDslPredicateExecutor<T>
QueryDslPredicateExecutor that supports EntityGraph passed through method arguments.
Created on 23/11/16.| Constructor and Description |
|---|
QueryDslJpaEntityGraphRepository(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,?> entityInformation,
javax.persistence.EntityManager entityManager) |
QueryDslJpaEntityGraphRepository(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,ID> entityInformation,
javax.persistence.EntityManager entityManager,
org.springframework.data.querydsl.EntityPathResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
long |
count(com.querydsl.core.types.Predicate predicate) |
boolean |
exists(com.querydsl.core.types.Predicate predicate) |
Iterable<T> |
findAll(EntityGraph entityGraph,
com.querydsl.core.types.OrderSpecifier<?>... orders)
Returns all entities ordered by the given
OrderSpecifiers. |
Iterable<T> |
findAll(com.querydsl.core.types.OrderSpecifier<?>... orders) |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate) |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate,
EntityGraph entityGraph)
Returns all entities matching the given
Predicate. |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate,
EntityGraph entityGraph,
com.querydsl.core.types.OrderSpecifier<?>... orders)
Returns all entities matching the given
Predicate applying the given OrderSpecifiers. |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate,
com.querydsl.core.types.OrderSpecifier<?>... orders) |
org.springframework.data.domain.Page<T> |
findAll(com.querydsl.core.types.Predicate predicate,
org.springframework.data.domain.Pageable pageable) |
org.springframework.data.domain.Page<T> |
findAll(com.querydsl.core.types.Predicate predicate,
org.springframework.data.domain.Pageable pageable,
EntityGraph entityGraph)
Returns a
Page of entities matching the given Predicate. |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate,
org.springframework.data.domain.Sort sort) |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate,
org.springframework.data.domain.Sort sort,
EntityGraph entityGraph)
Returns all entities matching the given
Predicate applying the given Sort. |
T |
findOne(com.querydsl.core.types.Predicate predicate) |
T |
findOne(com.querydsl.core.types.Predicate predicate,
EntityGraph entityGraph)
Returns a single entity matching the given
Predicate or null if none was found. |
findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findOne, findOne, findOnecount, 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, setRepositoryMethodMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllcount, delete, delete, delete, deleteAll, exists, findOne, savepublic QueryDslJpaEntityGraphRepository(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,?> entityInformation, javax.persistence.EntityManager entityManager)
public T findOne(com.querydsl.core.types.Predicate predicate, EntityGraph entityGraph)
JpaEntityGraphQueryDslPredicateExecutorPredicate or null if none was found.findOne in interface JpaEntityGraphQueryDslPredicateExecutor<T>predicate - can be null.entityGraph - can be null.Predicate or null if none was found.public Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, EntityGraph entityGraph)
JpaEntityGraphQueryDslPredicateExecutorPredicate. In case no match could be found an empty
Iterable is returned.findAll in interface JpaEntityGraphQueryDslPredicateExecutor<T>predicate - can be null.entityGraph - can be null.Predicate.public Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Sort sort, EntityGraph entityGraph)
JpaEntityGraphQueryDslPredicateExecutorPredicate applying the given Sort. In case no match could
be found an empty Iterable is returned.findAll in interface JpaEntityGraphQueryDslPredicateExecutor<T>predicate - can be null.sort - the Sort specification to sort the results by, must not be null.entityGraph - can be null.Predicate.public Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, EntityGraph entityGraph, com.querydsl.core.types.OrderSpecifier<?>... orders)
JpaEntityGraphQueryDslPredicateExecutorPredicate applying the given OrderSpecifiers. In case no
match could be found an empty Iterable is returned.findAll in interface JpaEntityGraphQueryDslPredicateExecutor<T>predicate - can be null.entityGraph - can be null.orders - the OrderSpecifiers to sort the results byPredicate applying the given OrderSpecifiers.public Iterable<T> findAll(EntityGraph entityGraph, com.querydsl.core.types.OrderSpecifier<?>... orders)
JpaEntityGraphQueryDslPredicateExecutorOrderSpecifiers.findAll in interface JpaEntityGraphQueryDslPredicateExecutor<T>entityGraph - can be null.orders - the OrderSpecifiers to sort the results by.OrderSpecifiers.public org.springframework.data.domain.Page<T> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable, EntityGraph entityGraph)
JpaEntityGraphQueryDslPredicateExecutorPage of entities matching the given Predicate. In case no match could be found, an empty
Page is returned.findAll in interface JpaEntityGraphQueryDslPredicateExecutor<T>predicate - can be null.pageable - can be null.entityGraph - can be null.Page of entities matching the given Predicate.public T findOne(com.querydsl.core.types.Predicate predicate)
findOne in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>public Iterable<T> findAll(com.querydsl.core.types.Predicate predicate)
findAll in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>public Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Sort sort)
findAll in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>public Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders)
findAll in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>public Iterable<T> findAll(com.querydsl.core.types.OrderSpecifier<?>... orders)
findAll in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>public org.springframework.data.domain.Page<T> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable)
findAll in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>public long count(com.querydsl.core.types.Predicate predicate)
count in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>public boolean exists(com.querydsl.core.types.Predicate predicate)
exists in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>Copyright © 2017 Cosium. All rights reserved.