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.mysema.query.types.Predicate 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) |
Page<T> |
findAll(com.mysema.query.types.Predicate predicate,
Pageable pageable) |
T |
findOne(com.mysema.query.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 - template - public QueryDslMongoRepository(MongoEntityInformation<T,ID> entityInformation, MongoOperations mongoOperations, EntityPathResolver resolver)
QueryDslMongoRepository for the given MongoEntityInformation, MongoTemplate
and EntityPathResolver.entityInformation - mongoOperations - resolver - public T findOne(com.mysema.query.types.Predicate predicate)
findOne in interface QueryDslPredicateExecutor<T>public List<T> findAll(com.mysema.query.types.Predicate predicate)
findAll in interface QueryDslPredicateExecutor<T>public List<T> findAll(com.mysema.query.types.Predicate predicate, com.mysema.query.types.OrderSpecifier<?>... orders)
findAll in interface QueryDslPredicateExecutor<T>public Page<T> findAll(com.mysema.query.types.Predicate predicate, Pageable pageable)
findAll in interface QueryDslPredicateExecutor<T>public long count(com.mysema.query.types.Predicate predicate)
count in interface QueryDslPredicateExecutor<T>Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.