public class StringQuery extends Query
@Query("#{#n1ql.selectEntity} where #{#n1ql.filter} and firstname = $1 and lastname = $2")
List<User> getByFirstnameAndLastname(String firstname, String lastname);
It must include the SELECT ... FROM ... preferably via the #n1ql expression, in addition to any predicates required,
including the n1ql.filter (for _class = className)| Constructor and Description |
|---|
StringQuery(String n1qlString) |
| Modifier and Type | Method and Description |
|---|---|
String |
toN1qlRemoveString(ReactiveCouchbaseTemplate template,
String collectionName,
Class domainClass)
toN1qlRemoveString - use toN1qlSelectString
|
String |
toN1qlSelectString(ReactiveCouchbaseTemplate template,
String collection,
Class domainClass,
Class resultClass,
boolean isCount,
String[] distinctFields,
String[] fields) |
addCriteria, appendSkipAndLimit, appendSort, appendString, appendWhere, appendWhereString, buildQueryOptions, distinct, distinct, export, getDistinctFields, getMeta, getN1qlSpelValues, getScanConsistency, isDistinct, limit, query, scanConsistency, setMeta, setNamedParameters, setPositionalParameters, skip, toN1qlSelectString, with, with, withoutSortpublic StringQuery(String n1qlString)
public String toN1qlSelectString(ReactiveCouchbaseTemplate template, String collection, Class domainClass, Class resultClass, boolean isCount, String[] distinctFields, String[] fields)
toN1qlSelectString in class Querypublic String toN1qlRemoveString(ReactiveCouchbaseTemplate template, String collectionName, Class domainClass)
toN1qlRemoveString in class Querytemplate - collectionName - domainClass - Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.