Class PartTreeCouchbaseQuery
java.lang.Object
org.springframework.data.couchbase.repository.query.AbstractCouchbaseQueryBase<CouchbaseOperations>
org.springframework.data.couchbase.repository.query.AbstractCouchbaseQuery
org.springframework.data.couchbase.repository.query.PartTreeCouchbaseQuery
- All Implemented Interfaces:
RepositoryQuery
RepositoryQuery
implementation for Couchbase. Replaces PartTreeN1qlBasedQuery- Since:
- 4.1
- Author:
- Michael Reiche
-
Constructor Summary
ConstructorDescriptionPartTreeCouchbaseQuery
(CouchbaseQueryMethod method, CouchbaseOperations 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
protected boolean
protected boolean
protected boolean
Return whether the query has an explicit limit set.Methods inherited from class org.springframework.data.couchbase.repository.query.AbstractCouchbaseQuery
doExecute
Methods inherited from class org.springframework.data.couchbase.repository.query.AbstractCouchbaseQueryBase
execute, getOperations, getQueryMethod
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
-
PartTreeCouchbaseQuery
public PartTreeCouchbaseQuery(CouchbaseQueryMethod method, CouchbaseOperations 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<CouchbaseOperations>
- 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<CouchbaseOperations>
- Parameters:
accessor
- must not be null.- Returns:
-
isCountQuery
protected boolean isCountQuery()- Overrides:
isCountQuery
in classAbstractCouchbaseQueryBase<CouchbaseOperations>
-
isExistsQuery
protected boolean isExistsQuery()- Overrides:
isExistsQuery
in classAbstractCouchbaseQueryBase<CouchbaseOperations>
-
isDeleteQuery
protected boolean isDeleteQuery()- Overrides:
isDeleteQuery
in classAbstractCouchbaseQueryBase<CouchbaseOperations>
-
isLimiting
protected boolean isLimiting()Description copied from class:AbstractCouchbaseQueryBase
Return whether the query has an explicit limit set.- Specified by:
isLimiting
in classAbstractCouchbaseQueryBase<CouchbaseOperations>
- Returns:
-