public class PartTreeCouchbaseQuery extends AbstractCouchbaseQuery
RepositoryQuery implementation for Couchbase. Replaces PartTreeN1qlBasedQuery| Constructor and Description |
|---|
PartTreeCouchbaseQuery(CouchbaseQueryMethod method,
CouchbaseOperations operations,
SpelExpressionParser expressionParser,
org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
|
| Modifier and Type | Method and Description |
|---|---|
protected Query |
createCountQuery(org.springframework.data.repository.query.ParametersParameterAccessor accessor)
Creates a
Query instance using the given ParametersParameterAccessor. |
protected Query |
createQuery(org.springframework.data.repository.query.ParametersParameterAccessor accessor)
Creates a
Query instance using the given ParameterAccessor |
org.springframework.data.repository.query.parser.PartTree |
getTree()
Return the
PartTree backing the query. |
protected boolean |
isCountQuery() |
protected boolean |
isDeleteQuery() |
protected boolean |
isExistsQuery() |
protected boolean |
isLimiting()
Return whether the query has an explicit limit set.
|
doExecuteexecute, getOperations, getQueryMethodpublic PartTreeCouchbaseQuery(CouchbaseQueryMethod method, CouchbaseOperations operations, SpelExpressionParser expressionParser, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
method - must not be null.operations - must not be null.expressionParser - must not be null.evaluationContextProvider - must not be null.public org.springframework.data.repository.query.parser.PartTree getTree()
PartTree backing the query.protected Query createQuery(org.springframework.data.repository.query.ParametersParameterAccessor accessor)
AbstractCouchbaseQueryBaseQuery instance using the given ParameterAccessorcreateQuery in class AbstractCouchbaseQueryBase<CouchbaseOperations>accessor - must not be null.protected Query createCountQuery(org.springframework.data.repository.query.ParametersParameterAccessor accessor)
AbstractCouchbaseQueryBaseQuery instance using the given ParametersParameterAccessor. Will delegate to
AbstractCouchbaseQueryBase.createQuery(ParametersParameterAccessor) by default but allows customization of the count query to be
triggered.createCountQuery in class AbstractCouchbaseQueryBase<CouchbaseOperations>accessor - must not be null.protected boolean isCountQuery()
isCountQuery in class AbstractCouchbaseQueryBase<CouchbaseOperations>protected boolean isExistsQuery()
isExistsQuery in class AbstractCouchbaseQueryBase<CouchbaseOperations>protected boolean isDeleteQuery()
isDeleteQuery in class AbstractCouchbaseQueryBase<CouchbaseOperations>protected boolean isLimiting()
AbstractCouchbaseQueryBaseisLimiting in class AbstractCouchbaseQueryBase<CouchbaseOperations>Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.