public class QueryDslMongoRepository<T,ID extends Serializable> extends SimpleMongoRepository<T,ID> implements org.springframework.data.querydsl.QueryDslPredicateExecutor<T>
Predicates in various forms.| Constructor and Description |
|---|
QueryDslMongoRepository(MongoEntityInformation<T,ID> entityInformation,
MongoOperations mongoOperations)
|
QueryDslMongoRepository(MongoEntityInformation<T,ID> entityInformation,
MongoOperations mongoOperations,
org.springframework.data.querydsl.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) |
org.springframework.data.domain.Page<T> |
findAll(com.mysema.query.types.Predicate predicate,
org.springframework.data.domain.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, org.springframework.data.querydsl.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 org.springframework.data.querydsl.QueryDslPredicateExecutor<T>public List<T> findAll(com.mysema.query.types.Predicate predicate)
findAll in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>public List<T> findAll(com.mysema.query.types.Predicate predicate, com.mysema.query.types.OrderSpecifier<?>... orders)
findAll in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>public org.springframework.data.domain.Page<T> findAll(com.mysema.query.types.Predicate predicate, org.springframework.data.domain.Pageable pageable)
findAll in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>public long count(com.mysema.query.types.Predicate predicate)
count in interface org.springframework.data.querydsl.QueryDslPredicateExecutor<T>Copyright © 2021. All rights reserved.