public class N1qlQueryCreator extends org.springframework.data.repository.query.parser.AbstractQueryCreator<Query,QueryCriteria>
| Modifier and Type | Field and Description |
|---|---|
static String |
META_CAS_PROPERTY |
static String |
META_EXPIRATION_PROPERTY |
static String |
META_ID_PROPERTY |
| Constructor and Description |
|---|
N1qlQueryCreator(org.springframework.data.repository.query.parser.PartTree tree,
org.springframework.data.repository.query.ParameterAccessor accessor,
org.springframework.data.repository.query.QueryMethod queryMethod,
CouchbaseConverter converter,
String bucketName) |
| Modifier and Type | Method and Description |
|---|---|
static N1QLExpression |
addMetaIfRequired(String bucketName,
org.springframework.data.mapping.PersistentPropertyPath<CouchbasePersistentProperty> persistentPropertyPath,
CouchbasePersistentProperty property,
org.springframework.data.mapping.PersistentEntity entity)
Translate meta-fields to META(bucketName).id, cas, expiry.
|
protected QueryCriteria |
and(org.springframework.data.repository.query.parser.Part part,
QueryCriteria base,
Iterator<Object> iterator) |
protected Query |
complete(QueryCriteria criteria,
org.springframework.data.domain.Sort sort) |
protected QueryCriteria |
create(org.springframework.data.repository.query.parser.Part part,
Iterator<Object> iterator) |
Query |
createQuery() |
protected QueryCriteria |
or(QueryCriteria base,
QueryCriteria criteria) |
public static final String META_ID_PROPERTY
public static final String META_CAS_PROPERTY
public static final String META_EXPIRATION_PROPERTY
public N1qlQueryCreator(org.springframework.data.repository.query.parser.PartTree tree,
org.springframework.data.repository.query.ParameterAccessor accessor,
org.springframework.data.repository.query.QueryMethod queryMethod,
CouchbaseConverter converter,
String bucketName)
protected QueryCriteria create(org.springframework.data.repository.query.parser.Part part, Iterator<Object> iterator)
create in class org.springframework.data.repository.query.parser.AbstractQueryCreator<Query,QueryCriteria>public Query createQuery()
createQuery in class org.springframework.data.repository.query.parser.AbstractQueryCreator<Query,QueryCriteria>protected QueryCriteria and(org.springframework.data.repository.query.parser.Part part, QueryCriteria base, Iterator<Object> iterator)
and in class org.springframework.data.repository.query.parser.AbstractQueryCreator<Query,QueryCriteria>protected QueryCriteria or(QueryCriteria base, QueryCriteria criteria)
or in class org.springframework.data.repository.query.parser.AbstractQueryCreator<Query,QueryCriteria>protected Query complete(QueryCriteria criteria, org.springframework.data.domain.Sort sort)
complete in class org.springframework.data.repository.query.parser.AbstractQueryCreator<Query,QueryCriteria>public static N1QLExpression addMetaIfRequired(String bucketName, org.springframework.data.mapping.PersistentPropertyPath<CouchbasePersistentProperty> persistentPropertyPath, CouchbasePersistentProperty property, org.springframework.data.mapping.PersistentEntity entity)
bucketName - persistentPropertyPath - property - entity - Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.