Class StringBasedCouchbaseQuery
java.lang.Object
org.springframework.data.couchbase.repository.query.AbstractCouchbaseQueryBase<CouchbaseOperations>
org.springframework.data.couchbase.repository.query.AbstractCouchbaseQuery
org.springframework.data.couchbase.repository.query.StringBasedCouchbaseQuery
- All Implemented Interfaces:
RepositoryQuery
Query to use a plain JSON String to create the
Query to actually execute.- Since:
- 4.1
- Author:
- Michael Reiche
-
Constructor Summary
ConstructorsConstructorDescriptionStringBasedCouchbaseQuery(CouchbaseQueryMethod method, CouchbaseOperations couchbaseOperations, SpelExpressionParser expressionParser, QueryMethodEvaluationContextProvider evaluationContextProvider, NamedQueries namedQueries) Creates a newStringBasedCouchbaseQueryfor the givenString,CouchbaseQueryMethod,CouchbaseOperations,SpelExpressionParserandQueryMethodEvaluationContextProvider. -
Method Summary
Modifier and TypeMethodDescriptionprotected QuerycreateCountQuery(ParametersParameterAccessor accessor) Creates aQueryinstance using the givenParametersParameterAccessor.protected QuerycreateQuery(ParametersParameterAccessor accessor) Creates aQueryinstance using the givenParameterAccessorprotected 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, getQueryMethod, isCountQuery, isDeleteQuery, isExistsQueryMethods 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
-
StringBasedCouchbaseQuery
public StringBasedCouchbaseQuery(CouchbaseQueryMethod method, CouchbaseOperations couchbaseOperations, SpelExpressionParser expressionParser, QueryMethodEvaluationContextProvider evaluationContextProvider, NamedQueries namedQueries) Creates a newStringBasedCouchbaseQueryfor the givenString,CouchbaseQueryMethod,CouchbaseOperations,SpelExpressionParserandQueryMethodEvaluationContextProvider.- Parameters:
method- must not be null.couchbaseOperations- must not be null.expressionParser- must not be null.evaluationContextProvider- must not be null.namedQueries- must not be null.
-
-
Method Details
-
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:
-
isLimiting
protected boolean isLimiting()Description copied from class:AbstractCouchbaseQueryBaseReturn whether the query has an explicit limit set.- Specified by:
isLimitingin classAbstractCouchbaseQueryBase<CouchbaseOperations>- Returns:
-