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
ConstructorDescriptionBasicQuery
(QueryCriteriaDefinition criteria, Map<String, String> projectionFields) BasicQuery
(Query query, Map<String, String> projectionFields) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
boolean
isSorted()
void
setProjectionFields
(Map<String, String> projectionFields) Set the fields (projection)CouchbaseDocument
.void
Set the sortCouchbaseDocument
.Methods inherited from class org.springframework.data.couchbase.core.query.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
- whensortObject
orfieldsObject
is null.
-
BasicQuery
-
-
Method Details
-
setSort
Set the sortCouchbaseDocument
.- Parameters:
sort
- must not be null.- Throws:
IllegalArgumentException
- whensortObject
is null.
-
isSorted
public boolean isSorted() -
setProjectionFields
Set the fields (projection)CouchbaseDocument
.- Parameters:
projectionFields
- must not be null.- Throws:
IllegalArgumentException
- whenfieldsObject
is null.
-
equals
-
isReadonly
public boolean isReadonly()- Overrides:
isReadonly
in classQuery
-
hashCode
public int hashCode()
-