Package | Description |
---|---|
org.springframework.data.couchbase.core.query |
This package contains annotations and classes relative to querying with Couchbase (whether through views or N1QL) and
the associated indexes.
|
org.springframework.data.couchbase.repository.query |
This package contains classes related to query derivation and concrete ways of querying couchbase.
|
org.springframework.data.couchbase.repository.query.support |
This package contains support classes for query derivation and other ways of querying couchbase (helper classes).
|
Modifier and Type | Method and Description |
---|---|
N1QLExpression |
N1QLExpression.and(N1QLExpression right)
AND-combines two expressions.
|
N1QLExpression |
N1QLExpression.as(N1QLExpression alias)
Adds a AS clause between the current and the given expression.
|
N1QLExpression |
N1QLExpression.asc() |
N1QLExpression |
N1QLExpression.between(N1QLExpression right)
Adds a BETWEEN clause between the current and the given expression.
|
N1QLExpression |
N1QLExpression.convertToString()
Returned expression will be converted to a string
|
static N1QLExpression |
N1QLExpression.count(N1QLExpression expression)
Returned expression results in count of all the non-NULL and non-MISSING values in the group.
|
static N1QLExpression |
N1QLExpression.delete()
Begins a delete statement
|
N1QLExpression |
N1QLExpression.desc() |
N1QLExpression |
N1QLExpression.eq(boolean value) |
N1QLExpression |
N1QLExpression.eq(N1QLExpression right)
Combines two expressions with the equals operator ("=").
|
static N1QLExpression |
N1QLExpression.FALSE()
Returns an expression representing boolean FALSE.
|
N1QLExpression |
N1QLExpression.from(N1QLExpression bucketName) |
N1QLExpression |
N1QLExpression.from(String bucketName) |
N1QLExpression |
N1QLExpression.gt(N1QLExpression right)
Combines two expressions with the greater than operator (">").
|
N1QLExpression |
N1QLExpression.gte(N1QLExpression right)
Combines two expressions with the greater or equals than operator (">=").
|
static N1QLExpression |
N1QLExpression.i(String... identifiers)
An identifier or list of identifiers escaped using backquotes `.
|
N1QLExpression |
N1QLExpression.in(N1QLExpression right)
Adds a IN clause between the current and the given expression.
|
N1QLExpression |
N1QLExpression.isNotMissing()
Appends a "IS NOT MISSING" to the expression.
|
N1QLExpression |
N1QLExpression.isNotNull()
Appends a "IS NOT NULL" to the expression.
|
N1QLExpression |
N1QLExpression.isNull()
Appends a "IS NULL" to the expression.
|
N1QLExpression |
N1QLExpression.keys(Iterable<? extends Serializable> ids) |
N1QLExpression |
N1QLExpression.like(N1QLExpression right)
Adds a LIKE clause between the current and the given expression.
|
N1QLExpression |
N1QLExpression.limit(int limit) |
N1QLExpression |
N1QLExpression.lower()
Returned expression results in the given expression in lowercase.
|
N1QLExpression |
N1QLExpression.lt(N1QLExpression right)
Combines two expressions with the less than operator ("<").
|
N1QLExpression |
N1QLExpression.lte(N1QLExpression right)
Combines two expressions with the less or equals than operator ("<=").
|
static N1QLExpression |
N1QLExpression.meta(N1QLExpression expression) |
static N1QLExpression |
N1QLExpression.MISSING()
Returns an expression representing MISSING.
|
N1QLExpression |
N1QLExpression.ne(N1QLExpression right)
Combines two expressions with the not equals operator ("!
|
N1QLExpression |
N1QLExpression.notIn(N1QLExpression right)
Adds a NOT IN clause between the current and the given expression.
|
N1QLExpression |
N1QLExpression.notLike(N1QLExpression right)
Adds a NOT LIKE clause between the current and the given expression.
|
static N1QLExpression |
N1QLExpression.NULL()
Returns an expression representing NULL.
|
N1QLExpression |
N1QLExpression.offset(int offset) |
N1QLExpression |
N1QLExpression.or(N1QLExpression right)
OR-combines two expressions.
|
N1QLExpression |
N1QLExpression.orderBy(N1QLExpression... expressions) |
static N1QLExpression |
N1QLExpression.path(Object... pathComponents)
Construct a path ("a.b.c") from Expressions or values.
|
N1QLExpression |
N1QLExpression.returning(N1QLExpression right) |
static N1QLExpression |
N1QLExpression.s(String... strings)
An identifier or list of identifiers which will be quoted as strings (with "").
|
static N1QLExpression |
N1QLExpression.select(N1QLExpression... expressions)
Prepends a SELECT to the given expression
|
static N1QLExpression |
N1QLExpression.TRUE()
Returns an expression representing boolean TRUE.
|
N1QLExpression |
N1QLExpression.where(N1QLExpression right) |
static N1QLExpression |
N1QLExpression.x(String value)
Creates an arbitrary expression from the given string value.
|
Modifier and Type | Method and Description |
---|---|
N1QLExpression |
N1QLExpression.and(N1QLExpression right)
AND-combines two expressions.
|
QueryCriteria |
QueryCriteria.and(N1QLExpression key) |
N1QLExpression |
N1QLExpression.as(N1QLExpression alias)
Adds a AS clause between the current and the given expression.
|
N1QLExpression |
N1QLExpression.between(N1QLExpression right)
Adds a BETWEEN clause between the current and the given expression.
|
static N1QLExpression |
N1QLExpression.count(N1QLExpression expression)
Returned expression results in count of all the non-NULL and non-MISSING values in the group.
|
N1QLExpression |
N1QLExpression.eq(N1QLExpression right)
Combines two expressions with the equals operator ("=").
|
N1QLExpression |
N1QLExpression.from(N1QLExpression bucketName) |
N1QLExpression |
N1QLExpression.gt(N1QLExpression right)
Combines two expressions with the greater than operator (">").
|
N1QLExpression |
N1QLExpression.gte(N1QLExpression right)
Combines two expressions with the greater or equals than operator (">=").
|
N1QLExpression |
N1QLExpression.in(N1QLExpression right)
Adds a IN clause between the current and the given expression.
|
N1QLExpression |
N1QLExpression.like(N1QLExpression right)
Adds a LIKE clause between the current and the given expression.
|
N1QLExpression |
N1QLExpression.lt(N1QLExpression right)
Combines two expressions with the less than operator ("<").
|
N1QLExpression |
N1QLExpression.lte(N1QLExpression right)
Combines two expressions with the less or equals than operator ("<=").
|
static N1QLExpression |
N1QLExpression.meta(N1QLExpression expression) |
N1QLExpression |
N1QLExpression.ne(N1QLExpression right)
Combines two expressions with the not equals operator ("!
|
N1QLExpression |
N1QLExpression.notIn(N1QLExpression right)
Adds a NOT IN clause between the current and the given expression.
|
N1QLExpression |
N1QLExpression.notLike(N1QLExpression right)
Adds a NOT LIKE clause between the current and the given expression.
|
N1QLExpression |
N1QLExpression.or(N1QLExpression right)
OR-combines two expressions.
|
QueryCriteria |
QueryCriteria.or(N1QLExpression key) |
N1QLExpression |
N1QLExpression.orderBy(N1QLExpression... expressions) |
N1QLExpression |
N1QLExpression.returning(N1QLExpression right) |
static N1QLExpression |
N1QLExpression.select(N1QLExpression... expressions)
Prepends a SELECT to the given expression
|
N1QLExpression |
N1QLExpression.where(N1QLExpression right) |
static QueryCriteria |
QueryCriteria.where(N1QLExpression key)
Static factory method to create a Criteria using the provided N1QLExpression key.
|
Constructor and Description |
---|
N1QLQuery(N1QLExpression expression) |
N1QLQuery(N1QLExpression expression,
com.couchbase.client.java.query.QueryOptions options) |
Modifier and Type | Field and Description |
---|---|
N1QLExpression |
StringBasedN1qlQueryParser.parsedExpression |
Modifier and Type | Method and Description |
---|---|
protected N1QLExpression |
N1qlMutateQueryCreator.and(Part part,
N1QLExpression base,
Iterator<Object> iterator) |
protected N1QLExpression |
OldN1qlQueryCreator.and(Part part,
N1QLExpression base,
Iterator<Object> iterator) |
protected N1QLExpression |
N1qlMutateQueryCreator.complete(N1QLExpression criteria,
Sort sort) |
protected N1QLExpression |
N1qlCountQueryCreator.complete(N1QLExpression criteria,
Sort sort) |
protected N1QLExpression |
OldN1qlQueryCreator.complete(N1QLExpression criteria,
Sort sort) |
protected N1QLExpression |
N1qlMutateQueryCreator.create(Part part,
Iterator<Object> iterator) |
protected N1QLExpression |
OldN1qlQueryCreator.create(Part part,
Iterator<Object> iterator) |
protected N1QLExpression |
PartTreeN1qlBasedQuery.getCount(ParameterAccessor accessor,
Object[] runtimeParameters)
Deprecated.
|
protected abstract N1QLExpression |
AbstractN1qlBasedQuery.getCount(ParameterAccessor accessor,
Object[] runtimeParameters)
The statement for a count() query.
|
protected N1QLExpression |
PartTreeN1qlBasedQuery.getExpression(ParameterAccessor accessor,
Object[] runtimeParameters,
ReturnedType returnedType)
Deprecated.
|
protected abstract N1QLExpression |
ReactiveAbstractN1qlBasedQuery.getExpression(ParameterAccessor accessor,
Object[] runtimeParameters,
ReturnedType returnedType) |
protected N1QLExpression |
ReactivePartTreeN1qlBasedQuery.getExpression(ParameterAccessor accessor,
Object[] runtimeParameters,
ReturnedType returnedType)
Deprecated.
|
protected abstract N1QLExpression |
AbstractN1qlBasedQuery.getExpression(ParameterAccessor accessor,
Object[] runtimeParameters,
ReturnedType returnedType) |
protected N1QLExpression |
N1qlMutateQueryCreator.or(N1QLExpression base,
N1QLExpression criteria) |
protected N1QLExpression |
OldN1qlQueryCreator.or(N1QLExpression base,
N1QLExpression criteria) |
Modifier and Type | Method and Description |
---|---|
protected N1QLExpression |
N1qlMutateQueryCreator.and(Part part,
N1QLExpression base,
Iterator<Object> iterator) |
protected N1QLExpression |
OldN1qlQueryCreator.and(Part part,
N1QLExpression base,
Iterator<Object> iterator) |
protected static N1QLQuery |
AbstractN1qlBasedQuery.buildQuery(N1QLExpression expression,
com.couchbase.client.java.json.JsonValue queryPlaceholderValues,
com.couchbase.client.java.query.QueryScanConsistency scanConsistency) |
protected N1QLExpression |
N1qlMutateQueryCreator.complete(N1QLExpression criteria,
Sort sort) |
protected N1QLExpression |
N1qlCountQueryCreator.complete(N1QLExpression criteria,
Sort sort) |
protected N1QLExpression |
OldN1qlQueryCreator.complete(N1QLExpression criteria,
Sort sort) |
protected N1QLExpression |
N1qlMutateQueryCreator.or(N1QLExpression base,
N1QLExpression criteria) |
protected N1QLExpression |
OldN1qlQueryCreator.or(N1QLExpression base,
N1QLExpression criteria) |
Constructor and Description |
---|
N1qlCountQueryCreator(PartTree tree,
ParameterAccessor parameters,
N1QLExpression selectFrom,
CouchbaseConverter converter,
CouchbaseQueryMethod queryMethod) |
N1qlMutateQueryCreator(PartTree tree,
ParameterAccessor parameters,
N1QLExpression mutateFrom,
CouchbaseConverter converter,
CouchbaseQueryMethod queryMethod) |
OldN1qlQueryCreator(PartTree tree,
ParameterAccessor parameters,
N1QLExpression selectFrom,
CouchbaseConverter converter,
CouchbaseQueryMethod queryMethod) |
Modifier and Type | Method and Description |
---|---|
static <T> N1QLExpression |
N1qlUtils.createCountQueryForEntity(String bucketName,
CouchbaseConverter converter,
CouchbaseEntityInformation<T,String> entityInformation)
Creates a full N1QL query that counts total number of the given entity in the bucket.
|
static N1QLExpression |
N1qlQueryCreatorUtils.createExpression(Part.Type partType,
String fieldNamePath,
boolean ignoreCase,
Iterator<Object> parameterValues,
AtomicInteger position,
com.couchbase.client.java.json.JsonArray placeHolderValues) |
static N1QLExpression |
N1qlUtils.createReturningExpressionForDelete(String bucketName)
Creates the returning clause for N1ql deletes with all attributes of the entity and meta information
|
static N1QLExpression |
N1qlUtils.createSelectClauseForEntity(String bucketName)
Produce a
N1QLExpression that corresponds to the SELECT clause for looking for Spring Data entities stored
in Couchbase. |
static N1QLExpression |
N1qlUtils.createSelectClauseForEntity(String bucketName,
ReturnedType returnedType,
CouchbaseConverter converter)
Produce a
N1QLExpression that corresponds to the SELECT clause for looking for Spring Data entities stored
in Couchbase. |
static N1QLExpression |
N1qlUtils.createSelectFromForEntity(String bucketName)
Produce a
N1QLExpression that corresponds to the SELECT...FROM clauses for looking for Spring Data entities
stored in Couchbase. |
static N1QLExpression[] |
N1qlUtils.createSort(Sort sort)
Create a N1QL
N1QLExpression out of a Spring Data Sort . |
static N1QLExpression |
N1qlUtils.createWhereFilterForEntity(N1QLExpression baseWhereCriteria,
CouchbaseConverter converter,
EntityMetadata<?> entityInformation)
Produces an
N1QLExpression that can serve as a WHERE clause criteria to only select documents in a bucket
that matches a particular Spring Data entity (as given by the EntityMetadata parameter). |
static N1QLExpression |
N1qlUtils.escapedBucket(String bucketName)
Escape the given bucketName and produce an
N1QLExpression . |
protected static N1QLExpression |
N1qlQueryCreatorUtils.getPlaceHolder(AtomicInteger position,
boolean ignoreCase) |
protected static N1QLExpression |
N1qlQueryCreatorUtils.like(Iterator<Object> parameterValues,
boolean ignoreCase,
boolean anyPrefix,
boolean anySuffix) |
static N1QLExpression |
N1qlQueryCreatorUtils.prepareExpression(CouchbaseConverter converter,
Part part,
Iterator<Object> iterator,
AtomicInteger position,
com.couchbase.client.java.json.JsonArray placeHolderValues) |
Modifier and Type | Method and Description |
---|---|
static N1QLQuery |
N1qlUtils.buildQuery(N1QLExpression expression,
com.couchbase.client.java.json.JsonValue queryPlaceholderValues,
com.couchbase.client.java.query.QueryScanConsistency scanConsistency)
Creates N1QLQuery object from the statement, query placeholder values and scan consistency
|
static N1QLExpression |
N1qlUtils.createWhereFilterForEntity(N1QLExpression baseWhereCriteria,
CouchbaseConverter converter,
EntityMetadata<?> entityInformation)
Produces an
N1QLExpression that can serve as a WHERE clause criteria to only select documents in a bucket
that matches a particular Spring Data entity (as given by the EntityMetadata parameter). |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.