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
ConstructorsConstructorDescriptionPartTreeCouchbaseQuery(CouchbaseQueryMethod method, CouchbaseOperations operations, SpelExpressionParser expressionParser, QueryMethodEvaluationContextProvider evaluationContextProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected QuerycreateCountQuery(ParametersParameterAccessor accessor) Creates aQueryinstance using the givenParametersParameterAccessor.protected QuerycreateQuery(ParametersParameterAccessor accessor) Creates aQueryinstance using the givenParameterAccessorgetTree()Return thePartTreebacking the query.protected booleanprotected booleanprotected booleanprotected booleanReturn whether the query has an explicit limit set.Methods inherited from class org.springframework.data.couchbase.repository.query.AbstractCouchbaseQuery
doExecuteMethods inherited from class org.springframework.data.couchbase.repository.query.AbstractCouchbaseQueryBase
execute, getOperations, getQueryMethodMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 thePartTreebacking the query.- Returns:
- the tree
-
createQuery
Description copied from class:AbstractCouchbaseQueryBaseCreates aQueryinstance using the givenParameterAccessor- Specified by:
createQueryin classAbstractCouchbaseQueryBase<CouchbaseOperations>- Parameters:
accessor- must not be null.- Returns:
-
createCountQuery
Description copied from class:AbstractCouchbaseQueryBaseCreates aQueryinstance using the givenParametersParameterAccessor. Will delegate toAbstractCouchbaseQueryBase.createQuery(ParametersParameterAccessor)by default but allows customization of the count query to be triggered.- Specified by:
createCountQueryin classAbstractCouchbaseQueryBase<CouchbaseOperations>- Parameters:
accessor- must not be null.- Returns:
-
isCountQuery
protected boolean isCountQuery()- Overrides:
isCountQueryin classAbstractCouchbaseQueryBase<CouchbaseOperations>
-
isExistsQuery
protected boolean isExistsQuery()- Overrides:
isExistsQueryin classAbstractCouchbaseQueryBase<CouchbaseOperations>
-
isDeleteQuery
protected boolean isDeleteQuery()- Overrides:
isDeleteQueryin classAbstractCouchbaseQueryBase<CouchbaseOperations>
-
isLimiting
protected boolean isLimiting()Description copied from class:AbstractCouchbaseQueryBaseReturn whether the query has an explicit limit set.- Specified by:
isLimitingin classAbstractCouchbaseQueryBase<CouchbaseOperations>- Returns:
-