public class StringQuery extends Query
@Query("#{#n1ql.selectEntity} where #{#n1ql.filter} and firstname = $1 and lastname = $2")
List 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 |
toN1qlSelectString(ReactiveCouchbaseTemplate template,
Class domainClass,
boolean isCount) |
addCriteria, appendSkipAndLimit, appendSort, appendString, appendWhere, appendWhereString, buildQueryOptions, export, getScanConsistency, limit, scanConsistency, setNamedParameters, setPositionalParameters, skip, toN1qlRemoveString, with, withpublic StringQuery(String n1qlString)
public String toN1qlSelectString(ReactiveCouchbaseTemplate template, Class domainClass, boolean isCount)
toN1qlSelectString in class QueryCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.