Class ReactiveStringBasedMongoQuery
java.lang.Object
org.springframework.data.mongodb.repository.query.AbstractReactiveMongoQuery
org.springframework.data.mongodb.repository.query.ReactiveStringBasedMongoQuery
- All Implemented Interfaces:
RepositoryQuery
Query to use a plain JSON String to create the
Query
to actually execute.- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl
-
Constructor Summary
ConstructorsConstructorDescriptionReactiveStringBasedMongoQuery
(String query, ReactiveMongoQueryMethod method, ReactiveMongoOperations mongoOperations, ValueExpressionDelegate delegate) Creates a newReactiveStringBasedMongoQuery
for the givenString
,MongoQueryMethod
,MongoOperations
,ValueExpressionDelegate
.ReactiveStringBasedMongoQuery
(String query, ReactiveMongoQueryMethod method, ReactiveMongoOperations mongoOperations, ExpressionParser expressionParser, ReactiveQueryMethodEvaluationContextProvider evaluationContextProvider) Deprecated.ReactiveStringBasedMongoQuery
(ReactiveMongoQueryMethod method, ReactiveMongoOperations mongoOperations, ValueExpressionDelegate delegate) Creates a newReactiveStringBasedMongoQuery
for the givenMongoQueryMethod
,MongoOperations
andValueExpressionDelegate
.ReactiveStringBasedMongoQuery
(ReactiveMongoQueryMethod method, ReactiveMongoOperations mongoOperations, ExpressionParser expressionParser, ReactiveQueryMethodEvaluationContextProvider evaluationContextProvider) Deprecated.since 4.4.0, use the constructors acceptingValueExpressionDelegate
instead. -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<Query>
createQuery
(ConvertingParameterAccessor accessor) Creates aQuery
instance using the givenParameterAccessor
protected boolean
Returns whether the query should get a count projection applied.protected boolean
Return weather the query should delete matching documents.protected boolean
Returns whether the query should get an exists projection applied.protected boolean
Return whether the query has an explicit limit set.Methods inherited from class org.springframework.data.mongodb.repository.query.AbstractReactiveMongoQuery
createCountQuery, createUpdate, doExecute, execute, getCodecRegistry, getParameterBindingCodec, getQueryMethod, getSpelEvaluatorFor, getValueExpressionEvaluatorLater, parseAggregationPipeline
-
Constructor Details
-
ReactiveStringBasedMongoQuery
@Deprecated(since="4.4.0") public ReactiveStringBasedMongoQuery(ReactiveMongoQueryMethod method, ReactiveMongoOperations mongoOperations, ExpressionParser expressionParser, ReactiveQueryMethodEvaluationContextProvider evaluationContextProvider) Deprecated.since 4.4.0, use the constructors acceptingValueExpressionDelegate
instead.- Parameters:
method
- must not be null.mongoOperations
- must not be null.expressionParser
- must not be null.evaluationContextProvider
- must not be null.
-
ReactiveStringBasedMongoQuery
@Deprecated(since="4.4.0") public ReactiveStringBasedMongoQuery(String query, ReactiveMongoQueryMethod method, ReactiveMongoOperations mongoOperations, ExpressionParser expressionParser, ReactiveQueryMethodEvaluationContextProvider evaluationContextProvider) Deprecated.since 4.4.0, use the constructors acceptingValueExpressionDelegate
instead.Creates a newReactiveStringBasedMongoQuery
for the givenString
,MongoQueryMethod
,MongoOperations
,SpelExpressionParser
andReactiveExtensionAwareQueryMethodEvaluationContextProvider
.- Parameters:
query
- must not be null.method
- must not be null.mongoOperations
- must not be null.expressionParser
- must not be null.
-
ReactiveStringBasedMongoQuery
public ReactiveStringBasedMongoQuery(ReactiveMongoQueryMethod method, ReactiveMongoOperations mongoOperations, ValueExpressionDelegate delegate) Creates a newReactiveStringBasedMongoQuery
for the givenMongoQueryMethod
,MongoOperations
andValueExpressionDelegate
.- Parameters:
method
- must not be null.mongoOperations
- must not be null.delegate
- must not be null.- Since:
- 4.4.0
-
ReactiveStringBasedMongoQuery
public ReactiveStringBasedMongoQuery(@NonNull String query, ReactiveMongoQueryMethod method, ReactiveMongoOperations mongoOperations, ValueExpressionDelegate delegate) Creates a newReactiveStringBasedMongoQuery
for the givenString
,MongoQueryMethod
,MongoOperations
,ValueExpressionDelegate
.- Parameters:
query
- must not be null.method
- must not be null.mongoOperations
- must not be null.delegate
- must not be null.- Since:
- 4.4.0
-
-
Method Details
-
createQuery
Description copied from class:AbstractReactiveMongoQuery
Creates aQuery
instance using the givenParameterAccessor
- Specified by:
createQuery
in classAbstractReactiveMongoQuery
- Parameters:
accessor
- must not be null.- Returns:
-
isCountQuery
protected boolean isCountQuery()Description copied from class:AbstractReactiveMongoQuery
Returns whether the query should get a count projection applied.- Specified by:
isCountQuery
in classAbstractReactiveMongoQuery
- Returns:
-
isExistsQuery
protected boolean isExistsQuery()Description copied from class:AbstractReactiveMongoQuery
Returns whether the query should get an exists projection applied.- Specified by:
isExistsQuery
in classAbstractReactiveMongoQuery
- Returns:
-
isDeleteQuery
protected boolean isDeleteQuery()Description copied from class:AbstractReactiveMongoQuery
Return weather the query should delete matching documents.- Specified by:
isDeleteQuery
in classAbstractReactiveMongoQuery
- Returns:
-
isLimiting
protected boolean isLimiting()Description copied from class:AbstractReactiveMongoQuery
Return whether the query has an explicit limit set.- Specified by:
isLimiting
in classAbstractReactiveMongoQuery
- Returns:
-
ValueExpressionDelegate
instead.