public class QuerydslMongoPredicateExecutor<T> extends Object implements org.springframework.data.querydsl.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,
org.springframework.data.querydsl.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) |
org.springframework.data.domain.Page<T> |
findAll(com.querydsl.core.types.Predicate predicate,
org.springframework.data.domain.Pageable pageable) |
List<T> |
findAll(com.querydsl.core.types.Predicate predicate,
org.springframework.data.domain.Sort sort) |
<S extends T,R> |
findBy(com.querydsl.core.types.Predicate predicate,
Function<org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>,R> queryFunction) |
Optional<T> |
findOne(com.querydsl.core.types.Predicate predicate) |
protected org.springframework.data.mongodb.repository.support.SpringDataMongodbSerializer |
mongodbSerializer() |
protected static <E> com.querydsl.core.types.dsl.PathBuilder<E> |
pathBuilderFor(com.querydsl.core.types.EntityPath<E> path) |
protected com.querydsl.core.types.OrderSpecifier<?> |
toOrder(org.springframework.data.domain.Sort.Order order)
Transforms a plain
Sort.Order into a Querydsl specific OrderSpecifier. |
protected List<com.querydsl.core.types.OrderSpecifier<?>> |
toOrderSpecifiers(org.springframework.data.domain.Sort sort)
Converts the given
Sort to OrderSpecifier. |
protected org.springframework.data.repository.core.EntityInformation<T,?> |
typeInformation() |
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, org.springframework.data.querydsl.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 org.springframework.data.querydsl.QuerydslPredicateExecutor<T>public List<T> findAll(com.querydsl.core.types.Predicate predicate)
findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<T>public List<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders)
findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<T>public List<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.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>public <S extends T,R> R findBy(com.querydsl.core.types.Predicate predicate, Function<org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>,R> queryFunction)
findBy in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<T>protected static <E> com.querydsl.core.types.dsl.PathBuilder<E> pathBuilderFor(com.querydsl.core.types.EntityPath<E> path)
protected org.springframework.data.repository.core.EntityInformation<T,?> typeInformation()
protected org.springframework.data.mongodb.repository.support.SpringDataMongodbSerializer mongodbSerializer()
protected com.querydsl.core.types.OrderSpecifier<?> toOrder(org.springframework.data.domain.Sort.Order order)
Sort.Order into a Querydsl specific OrderSpecifier.order - protected List<com.querydsl.core.types.OrderSpecifier<?>> toOrderSpecifiers(org.springframework.data.domain.Sort sort)
Sort to OrderSpecifier.sort - Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.