public class QueryDslMongoRepository<T,ID extends Serializable> extends SimpleMongoRepository<T,ID> implements QueryDslPredicateExecutor<T>
Predicates in various forms.| Constructor and Description |
|---|
QueryDslMongoRepository(MongoEntityInformation<T,ID> entityInformation,
MongoOperations mongoOperations)
|
QueryDslMongoRepository(MongoEntityInformation<T,ID> entityInformation,
MongoOperations mongoOperations,
EntityPathResolver resolver)
Creates a new
QueryDslMongoRepository for the given MongoEntityInformation, MongoTemplate
and EntityPathResolver. |
| 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(com.querydsl.core.types.OrderSpecifier<?>... orders) |
Page<T> |
findAll(Pageable pageable) |
List<T> |
findAll(com.querydsl.core.types.Predicate predicate) |
List<T> |
findAll(com.querydsl.core.types.Predicate predicate,
com.querydsl.core.types.OrderSpecifier<?>... orders) |
Page<T> |
findAll(com.querydsl.core.types.Predicate predicate,
Pageable pageable) |
List<T> |
findAll(com.querydsl.core.types.Predicate predicate,
Sort sort) |
List<T> |
findAll(Sort sort) |
T |
findOne(com.querydsl.core.types.Predicate predicate) |
public QueryDslMongoRepository(MongoEntityInformation<T,ID> entityInformation, MongoOperations mongoOperations)
QueryDslMongoRepository for the given EntityMetadata and MongoTemplate. Uses
the SimpleEntityPathResolver to create an EntityPath for the given domain class.entityInformation - must not be null.mongoOperations - must not be null.public QueryDslMongoRepository(MongoEntityInformation<T,ID> entityInformation, MongoOperations mongoOperations, EntityPathResolver resolver)
QueryDslMongoRepository for the given MongoEntityInformation, MongoTemplate
and EntityPathResolver.entityInformation - must not be null.mongoOperations - must not be null.resolver - must not be null.public T findOne(com.querydsl.core.types.Predicate predicate)
findOne in interface QueryDslPredicateExecutor<T>public List<T> findAll(com.querydsl.core.types.Predicate predicate)
findAll in interface QueryDslPredicateExecutor<T>public List<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders)
findAll in interface QueryDslPredicateExecutor<T>public List<T> findAll(com.querydsl.core.types.Predicate predicate, Sort sort)
findAll in interface QueryDslPredicateExecutor<T>public Iterable<T> findAll(com.querydsl.core.types.OrderSpecifier<?>... orders)
findAll in interface QueryDslPredicateExecutor<T>public Page<T> findAll(com.querydsl.core.types.Predicate predicate, Pageable pageable)
findAll in interface QueryDslPredicateExecutor<T>public Page<T> findAll(Pageable pageable)
findAll in interface PagingAndSortingRepository<T,ID extends Serializable>findAll in class SimpleMongoRepository<T,ID extends Serializable>public List<T> findAll(Sort sort)
findAll in interface MongoRepository<T,ID extends Serializable>findAll in interface PagingAndSortingRepository<T,ID extends Serializable>findAll in class SimpleMongoRepository<T,ID extends Serializable>public long count(com.querydsl.core.types.Predicate predicate)
count in interface QueryDslPredicateExecutor<T>public boolean exists(com.querydsl.core.types.Predicate predicate)
exists in interface QueryDslPredicateExecutor<T>Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.