Class BasicQuery
java.lang.Object
org.springframework.data.couchbase.core.query.Query
org.springframework.data.couchbase.repository.support.BasicQuery
BasicQuery for Querydsl
- Author:
- Michael Reiche, Tigran Babloyan
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBasicQuery(QueryCriteriaDefinition criteria, Map<String, String> projectionFields) BasicQuery(Query query, Map<String, String> projectionFields) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanbooleanisSorted()voidsetProjectionFields(Map<String, String> projectionFields) Set the fields (projection)CouchbaseDocument.voidSet the sortCouchbaseDocument.Methods inherited from class Query
addCriteria, appendSkipAndLimit, appendSort, appendString, appendWhere, appendWhereString, buildQueryOptions, distinct, distinct, export, getCriteriaList, getDistinctFields, getMeta, getN1qlSpelValues, getScanConsistency, isDistinct, limit, query, scanConsistency, setMeta, setNamedParameters, setPositionalParameters, skip, toN1qlRemoveString, toN1qlSelectString, toN1qlSelectString, with, with, withoutSort
-
Constructor Details
-
BasicQuery
- Parameters:
query- must not be null.projectionFields- can be null.- Throws:
IllegalArgumentException- whensortObjectorfieldsObjectis null.
-
BasicQuery
-
-
Method Details
-
setSort
Set the sortCouchbaseDocument.- Parameters:
sort- must not be null.- Throws:
IllegalArgumentException- whensortObjectis null.
-
isSorted
public boolean isSorted() -
setProjectionFields
Set the fields (projection)CouchbaseDocument.- Parameters:
projectionFields- must not be null.- Throws:
IllegalArgumentException- whenfieldsObjectis null.
-
equals
-
isReadonly
public boolean isReadonly()- Overrides:
isReadonlyin classQuery
-
hashCode
-