Class AbstractCouchbaseQuery
java.lang.Object
org.springframework.data.couchbase.repository.query.AbstractCouchbaseQueryBase<CouchbaseOperations>
org.springframework.data.couchbase.repository.query.AbstractCouchbaseQuery
- All Implemented Interfaces:
RepositoryQuery
- Direct Known Subclasses:
PartTreeCouchbaseQuery
,StringBasedCouchbaseQuery
public abstract class AbstractCouchbaseQuery
extends AbstractCouchbaseQueryBase<CouchbaseOperations>
implements RepositoryQuery
RepositoryQuery
implementation for Couchbase.- Since:
- 4.1
- Author:
- Michael Reiche
-
Constructor Summary
ConstructorDescriptionAbstractCouchbaseQuery
(CouchbaseQueryMethod method, CouchbaseOperations operations, SpelExpressionParser expressionParser, QueryMethodEvaluationContextProvider evaluationContextProvider) Creates a newAbstractCouchbaseQuery
from the givenReactiveCouchbaseQueryMethod
andCouchbaseOperations
. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
doExecute
(CouchbaseQueryMethod method, ResultProcessor processor, ParametersParameterAccessor accessor, Class<?> typeToRead) Execute theRepositoryQuery
of the given method with the parameters provided by theaccessor
Methods inherited from class org.springframework.data.couchbase.repository.query.AbstractCouchbaseQueryBase
createCountQuery, createQuery, execute, getOperations, getQueryMethod, isCountQuery, isDeleteQuery, isExistsQuery, isLimiting
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
-
AbstractCouchbaseQuery
public AbstractCouchbaseQuery(CouchbaseQueryMethod method, CouchbaseOperations operations, SpelExpressionParser expressionParser, QueryMethodEvaluationContextProvider evaluationContextProvider) Creates a newAbstractCouchbaseQuery
from the givenReactiveCouchbaseQueryMethod
andCouchbaseOperations
.- Parameters:
method
- must not be null.operations
- must not be null.expressionParser
- must not be null.evaluationContextProvider
- must not be null.
-
-
Method Details
-
doExecute
protected Object doExecute(CouchbaseQueryMethod method, ResultProcessor processor, ParametersParameterAccessor accessor, @Nullable Class<?> typeToRead) Execute theRepositoryQuery
of the given method with the parameters provided by theaccessor
- Specified by:
doExecute
in classAbstractCouchbaseQueryBase<CouchbaseOperations>
- Parameters:
method
- theReactiveCouchbaseQueryMethod
invoked. Never null.processor
-ResultProcessor
for post procession. Never null.accessor
- for providing invocation arguments. Never null.typeToRead
- the desired component target type. Can be null.
-