public class ReactiveStringN1qlBasedQuery extends ReactiveAbstractN1qlBasedQuery
RepositoryQuery
for Couchbase, based on N1QL and a String statement.
The statement can contain positional placeholders (eg. name = $1
) that will map to the method's
parameters, in the same order.
The statement can also contain SpEL expressions enclosed in #{
and }
.
queryMethod
Constructor and Description |
---|
ReactiveStringN1qlBasedQuery(String statement,
CouchbaseQueryMethod queryMethod,
ReactiveCouchbaseOperations couchbaseOperations,
SpelExpressionParser spelParser,
QueryMethodEvaluationContextProvider evaluationContextProvider) |
Modifier and Type | Method and Description |
---|---|
N1QLExpression |
getExpression(ParameterAccessor accessor,
Object[] runtimeParameters,
ReturnedType returnedType) |
protected com.couchbase.client.java.json.JsonValue |
getPlaceholderValues(ParameterAccessor accessor) |
protected String |
getTypeField() |
protected Class<?> |
getTypeValue() |
execute, execute, executeDependingOnType, executeSingleProjection, getCouchbaseOperations, getQueryMethod, getScanConsistency
public ReactiveStringN1qlBasedQuery(String statement, CouchbaseQueryMethod queryMethod, ReactiveCouchbaseOperations couchbaseOperations, SpelExpressionParser spelParser, QueryMethodEvaluationContextProvider evaluationContextProvider)
protected String getTypeField()
protected Class<?> getTypeValue()
protected com.couchbase.client.java.json.JsonValue getPlaceholderValues(ParameterAccessor accessor)
getPlaceholderValues
in class ReactiveAbstractN1qlBasedQuery
public N1QLExpression getExpression(ParameterAccessor accessor, Object[] runtimeParameters, ReturnedType returnedType)
getExpression
in class ReactiveAbstractN1qlBasedQuery
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.