Class ReactivePartTreeMongoQuery
java.lang.Object
org.springframework.data.mongodb.repository.query.AbstractReactiveMongoQuery
org.springframework.data.mongodb.repository.query.ReactivePartTreeMongoQuery
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
Reactive PartTree
RepositoryQuery implementation for Mongo.- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl
-
Constructor Summary
ConstructorsConstructorDescriptionReactivePartTreeMongoQuery(ReactiveMongoQueryMethod method, ReactiveMongoOperations mongoOperations, ExpressionParser expressionParser, org.springframework.data.repository.query.ReactiveQueryMethodEvaluationContextProvider evaluationContextProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<Query>createCountQuery(ConvertingParameterAccessor accessor) Creates aQueryinstance using the givenConvertingParameterAccessor.protected reactor.core.publisher.Mono<Query>createQuery(ConvertingParameterAccessor accessor) Creates aQueryinstance using the givenParameterAccessororg.springframework.data.repository.query.parser.PartTreegetTree()Return thePartTreebacking the query.protected booleanReturns whether the query should get a count projection applied.protected booleanReturn weather the query should delete matching documents.protected booleanReturns whether the query should get an exists projection applied.protected booleanReturn whether the query has an explicit limit set.Methods inherited from class org.springframework.data.mongodb.repository.query.AbstractReactiveMongoQuery
createUpdate, doExecute, execute, getCodecRegistry, getParameterBindingCodec, getQueryMethod, getSpelEvaluatorFor, parseAggregationPipeline
-
Constructor Details
-
ReactivePartTreeMongoQuery
public ReactivePartTreeMongoQuery(ReactiveMongoQueryMethod method, ReactiveMongoOperations mongoOperations, ExpressionParser expressionParser, org.springframework.data.repository.query.ReactiveQueryMethodEvaluationContextProvider evaluationContextProvider) - Parameters:
method- must not be null.mongoOperations- must not be null.expressionParser- must not be null.evaluationContextProvider- must not be null.
-
-
Method Details
-
getTree
public org.springframework.data.repository.query.parser.PartTree getTree()Return thePartTreebacking the query.- Returns:
- the tree
-
createQuery
Description copied from class:AbstractReactiveMongoQueryCreates aQueryinstance using the givenParameterAccessor- Specified by:
createQueryin classAbstractReactiveMongoQuery- Parameters:
accessor- must not be null.- Returns:
-
createCountQuery
Description copied from class:AbstractReactiveMongoQueryCreates aQueryinstance using the givenConvertingParameterAccessor. Will delegate toAbstractReactiveMongoQuery.createQuery(ConvertingParameterAccessor)by default but allows customization of the count query to be triggered.- Overrides:
createCountQueryin classAbstractReactiveMongoQuery- Parameters:
accessor- must not be null.- Returns:
-
isCountQuery
protected boolean isCountQuery()Description copied from class:AbstractReactiveMongoQueryReturns whether the query should get a count projection applied.- Specified by:
isCountQueryin classAbstractReactiveMongoQuery- Returns:
-
isExistsQuery
protected boolean isExistsQuery()Description copied from class:AbstractReactiveMongoQueryReturns whether the query should get an exists projection applied.- Specified by:
isExistsQueryin classAbstractReactiveMongoQuery- Returns:
-
isDeleteQuery
protected boolean isDeleteQuery()Description copied from class:AbstractReactiveMongoQueryReturn weather the query should delete matching documents.- Specified by:
isDeleteQueryin classAbstractReactiveMongoQuery- Returns:
-
isLimiting
protected boolean isLimiting()Description copied from class:AbstractReactiveMongoQueryReturn whether the query has an explicit limit set.- Specified by:
isLimitingin classAbstractReactiveMongoQuery- Returns:
-