Class ReactiveStringBasedCouchbaseQuery
java.lang.Object
org.springframework.data.couchbase.repository.query.AbstractCouchbaseQueryBase<ReactiveCouchbaseOperations>
org.springframework.data.couchbase.repository.query.AbstractReactiveCouchbaseQuery
org.springframework.data.couchbase.repository.query.ReactiveStringBasedCouchbaseQuery
- All Implemented Interfaces:
RepositoryQuery
Query to use a plain JSON String to create the
Query
to actually execute.- Since:
- 4.1
- Author:
- Michael Reiche
-
Constructor Summary
ConstructorDescriptionReactiveStringBasedCouchbaseQuery
(ReactiveCouchbaseQueryMethod method, ReactiveCouchbaseOperations couchbaseOperations, SpelExpressionParser expressionParser, QueryMethodEvaluationContextProvider evaluationContextProvider, NamedQueries namedQueries) Creates a newReactiveStringBasedCouchbaseQuery
for the givenString
,CouchbaseQueryMethod
,ReactiveCouchbaseOperations
,SpelExpressionParser
andQueryMethodEvaluationContextProvider
. -
Method Summary
Modifier and TypeMethodDescriptionprotected Query
createCountQuery
(ParametersParameterAccessor accessor) Creates aQuery
instance using the givenParametersParameterAccessor
.protected Query
createQuery
(ParametersParameterAccessor accessor) Creates aQuery
instance using the givenParameterAccessor
protected boolean
Return whether the query has an explicit limit set.Methods inherited from class org.springframework.data.couchbase.repository.query.AbstractReactiveCouchbaseQuery
doExecute
Methods inherited from class org.springframework.data.couchbase.repository.query.AbstractCouchbaseQueryBase
execute, getOperations, getQueryMethod, isCountQuery, isDeleteQuery, isExistsQuery
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.repository.query.RepositoryQuery
execute, getQueryMethod
-
Constructor Details
-
ReactiveStringBasedCouchbaseQuery
public ReactiveStringBasedCouchbaseQuery(ReactiveCouchbaseQueryMethod method, ReactiveCouchbaseOperations couchbaseOperations, SpelExpressionParser expressionParser, QueryMethodEvaluationContextProvider evaluationContextProvider, NamedQueries namedQueries) Creates a newReactiveStringBasedCouchbaseQuery
for the givenString
,CouchbaseQueryMethod
,ReactiveCouchbaseOperations
,SpelExpressionParser
andQueryMethodEvaluationContextProvider
.- Parameters:
method
- must not be null.couchbaseOperations
- must not be null.expressionParser
- must not be null.evaluationContextProvider
- must not be null.namedQueries
- must not be null.
-
-
Method Details
-
createQuery
Description copied from class:AbstractCouchbaseQueryBase
Creates aQuery
instance using the givenParameterAccessor
- Specified by:
createQuery
in classAbstractCouchbaseQueryBase<ReactiveCouchbaseOperations>
- Parameters:
accessor
- must not be null.- Returns:
-
createCountQuery
Description copied from class:AbstractCouchbaseQueryBase
Creates aQuery
instance using the givenParametersParameterAccessor
. Will delegate toAbstractCouchbaseQueryBase.createQuery(ParametersParameterAccessor)
by default but allows customization of the count query to be triggered.- Specified by:
createCountQuery
in classAbstractCouchbaseQueryBase<ReactiveCouchbaseOperations>
- Parameters:
accessor
- must not be null.- Returns:
-
isLimiting
protected boolean isLimiting()Description copied from class:AbstractCouchbaseQueryBase
Return whether the query has an explicit limit set.- Specified by:
isLimiting
in classAbstractCouchbaseQueryBase<ReactiveCouchbaseOperations>
- Returns:
-