public class QuerydslMongoPredicateExecutor<T> extends Object implements QuerydslPredicateExecutor<T>
QuerydslPredicateExecutor that allows execution Predicates in various forms.| Constructor and Description |
|---|
QuerydslMongoPredicateExecutor(MongoEntityInformation<T,?> entityInformation,
MongoOperations mongoOperations)
Creates a new
QuerydslMongoPredicateExecutor for the given MongoEntityInformation and
MongoOperations. |
QuerydslMongoPredicateExecutor(MongoEntityInformation<T,?> entityInformation,
MongoOperations mongoOperations,
EntityPathResolver resolver)
Creates a new
QuerydslMongoPredicateExecutor for the given MongoEntityInformation,
MongoOperations 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) |
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) |
Optional<T> |
findOne(com.querydsl.core.types.Predicate predicate) |
public QuerydslMongoPredicateExecutor(MongoEntityInformation<T,?> entityInformation, MongoOperations mongoOperations)
QuerydslMongoPredicateExecutor for the given MongoEntityInformation and
MongoOperations. Uses the SimpleEntityPathResolver to create an EntityPath for the given
domain class.entityInformation - must not be null.mongoOperations - must not be null.public QuerydslMongoPredicateExecutor(MongoEntityInformation<T,?> entityInformation, MongoOperations mongoOperations, EntityPathResolver resolver)
QuerydslMongoPredicateExecutor for the given MongoEntityInformation,
MongoOperations and EntityPathResolver.entityInformation - must not be null.mongoOperations - must not be null.resolver - must not be null.public Optional<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 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.