Class ReactivePartTreeCouchbaseQuery
java.lang.Object
org.springframework.data.couchbase.repository.query.AbstractCouchbaseQueryBase<ReactiveCouchbaseOperations>
org.springframework.data.couchbase.repository.query.AbstractReactiveCouchbaseQuery
org.springframework.data.couchbase.repository.query.ReactivePartTreeCouchbaseQuery
- All Implemented Interfaces:
RepositoryQuery
Reactive PartTree
RepositoryQuery
implementation for Couchbase. Replaces ReactivePartN1qlBasedQuery- Since:
- 4.1
- Author:
- Michael Reiche
-
Constructor Summary
ConstructorDescriptionReactivePartTreeCouchbaseQuery
(ReactiveCouchbaseQueryMethod method, ReactiveCouchbaseOperations operations, SpelExpressionParser expressionParser, QueryMethodEvaluationContextProvider evaluationContextProvider) -
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
getTree()
Return thePartTree
backing the query.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
-
ReactivePartTreeCouchbaseQuery
public ReactivePartTreeCouchbaseQuery(ReactiveCouchbaseQueryMethod method, ReactiveCouchbaseOperations operations, SpelExpressionParser expressionParser, QueryMethodEvaluationContextProvider evaluationContextProvider) - Parameters:
method
- must not be null.operations
- must not be null.expressionParser
- must not be null.evaluationContextProvider
- must not be null.
-
-
Method Details
-
getTree
Return thePartTree
backing the query.- Returns:
- the tree
-
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:
-