public class PartTreeCouchbaseQuery extends AbstractCouchbaseQuery
RepositoryQuery implementation for Couchbase. Replaces PartTreeN1qlBasedQuery| Constructor and Description |
|---|
PartTreeCouchbaseQuery(CouchbaseQueryMethod method,
CouchbaseOperations operations,
SpelExpressionParser expressionParser,
QueryMethodEvaluationContextProvider evaluationContextProvider)
|
| Modifier and Type | Method and Description |
|---|---|
protected Query |
createCountQuery(ParametersParameterAccessor accessor)
Creates a
Query instance using the given ParametersParameterAccessor. |
protected Query |
createQuery(ParametersParameterAccessor accessor)
Creates a
Query instance using the given ParameterAccessor |
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, getQueryMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getQueryMethodpublic PartTreeCouchbaseQuery(CouchbaseQueryMethod method, CouchbaseOperations operations, SpelExpressionParser expressionParser, QueryMethodEvaluationContextProvider evaluationContextProvider)
method - must not be null.operations - must not be null.expressionParser - must not be null.evaluationContextProvider - must not be null.protected Query createQuery(ParametersParameterAccessor accessor)
AbstractCouchbaseQueryBaseQuery instance using the given ParameterAccessorcreateQuery in class AbstractCouchbaseQueryBase<CouchbaseOperations>accessor - must not be null.protected Query createCountQuery(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–2022 Pivotal Software, Inc.. All rights reserved.