Uses of Class
org.springframework.data.couchbase.core.query.N1QLExpression
Package
Description
This package contains annotations and classes relative to querying with Couchbase (whether through views or N1QL) and
the associated indexes.
This package contains classes related to query derivation and concrete ways of querying couchbase.
This package contains support classes for query derivation and other ways of querying couchbase (helper classes).
-
Uses of N1QLExpression in org.springframework.data.couchbase.core.query
Modifier and TypeMethodDescriptionN1QLExpression.and
(N1QLExpression right) AND-combines two expressions.N1QLExpression.as
(N1QLExpression alias) Adds a AS clause between the current and the given expression.N1QLExpression.asc()
N1QLExpression.between
(N1QLExpression right) Adds a BETWEEN clause between the current and the given expression.N1QLExpression.convertToString()
Returned expression will be converted to a stringstatic 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 statementN1QLExpression.desc()
static N1QLExpression
N1QLExpression.distinct
(N1QLExpression expression) Returned expression results in distinct of the expressionN1QLExpression.eq
(boolean value) N1QLExpression.eq
(N1QLExpression right) Combines two expressions with the equals operator ("=").static N1QLExpression
N1QLExpression.FALSE()
Returns an expression representing boolean FALSE.N1QLExpression.from
(N1QLExpression bucketName) N1QLExpression.gt
(N1QLExpression right) Combines two expressions with the greater than operator (">").N1QLExpression.gte
(N1QLExpression right) Combines two expressions with the greater or equals than operator (">=").static N1QLExpression
An identifier or list of identifiers escaped using backquotes `.N1QLExpression.in
(N1QLExpression right) Adds a IN clause between the current and the given expression.N1QLExpression.isNotMissing()
Appends a "IS NOT MISSING" to the expression.N1QLExpression.isNotNull()
Appends a "IS NOT NULL" to the expression.N1QLExpression.isNull()
Appends a "IS NULL" to the expression.N1QLExpression.keys
(Iterable<? extends Serializable> ids) N1QLExpression.like
(N1QLExpression right) Adds a LIKE clause between the current and the given expression.N1QLExpression.limit
(int limit) N1QLExpression.lower()
Returned expression results in the given expression in lowercase.N1QLExpression.lt
(N1QLExpression right) Combines two expressions with the less than operator ("<").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.ne
(N1QLExpression right) Combines two expressions with the not equals operator ("!N1QLExpression.notIn
(N1QLExpression right) Adds a NOT IN clause between the current and the given expression.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.offset
(int offset) N1QLExpression.or
(N1QLExpression right) OR-combines two expressions.N1QLExpression.orderBy
(N1QLExpression... expressions) static N1QLExpression
Construct a path ("a.b.c") from Expressions or values.N1QLExpression.returning
(N1QLExpression right) static N1QLExpression
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 expressionstatic N1QLExpression
N1QLExpression.TRUE()
Returns an expression representing boolean TRUE.N1QLExpression.where
(N1QLExpression right) static N1QLExpression
N1QLExpression.WRAPPER()
Returns an expression representing WRAPPER.static N1QLExpression
Creates an arbitrary expression from the given string value.Modifier and TypeMethodDescriptionN1QLExpression.and
(N1QLExpression right) AND-combines two expressions.QueryCriteria.and
(N1QLExpression key) N1QLExpression.as
(N1QLExpression alias) Adds a AS clause between the current and the given expression.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.static N1QLExpression
N1QLExpression.distinct
(N1QLExpression expression) Returned expression results in distinct of the expressionN1QLExpression.eq
(N1QLExpression right) Combines two expressions with the equals operator ("=").N1QLExpression.from
(N1QLExpression bucketName) N1QLExpression.gt
(N1QLExpression right) Combines two expressions with the greater than operator (">").N1QLExpression.gte
(N1QLExpression right) Combines two expressions with the greater or equals than operator (">=").N1QLExpression.in
(N1QLExpression right) Adds a IN clause between the current and the given expression.N1QLExpression.like
(N1QLExpression right) Adds a LIKE clause between the current and the given expression.N1QLExpression.lt
(N1QLExpression right) Combines two expressions with the less than operator ("<").N1QLExpression.lte
(N1QLExpression right) Combines two expressions with the less or equals than operator ("<=").static N1QLExpression
N1QLExpression.meta
(N1QLExpression expression) N1QLExpression.ne
(N1QLExpression right) Combines two expressions with the not equals operator ("!N1QLExpression.notIn
(N1QLExpression right) Adds a NOT IN clause between the current and the given expression.N1QLExpression.notLike
(N1QLExpression right) Adds a NOT LIKE clause between the current and the given expression.N1QLExpression.or
(N1QLExpression right) OR-combines two expressions.QueryCriteria.or
(N1QLExpression key) N1QLExpression.orderBy
(N1QLExpression... expressions) N1QLExpression.returning
(N1QLExpression right) static N1QLExpression
N1QLExpression.select
(N1QLExpression... expressions) Prepends a SELECT to the given expressionN1QLExpression.where
(N1QLExpression right) static QueryCriteria
QueryCriteria.where
(N1QLExpression key) Static factory method to create a Criteria using the provided N1QLExpression key.ModifierConstructorDescriptionN1QLQuery
(N1QLExpression expression) N1QLQuery
(N1QLExpression expression, com.couchbase.client.java.query.QueryOptions options) QueryCriteria
(LinkedList<QueryCriteria> chain, N1QLExpression key, Object[] value, QueryCriteria.ChainOperator chainOperator) -
Uses of N1QLExpression in org.springframework.data.couchbase.repository.query
Modifier and TypeFieldDescriptionfinal N1QLExpression
StringBasedN1qlQueryParser.parsedExpression
Modifier and TypeMethodDescriptionstatic N1QLExpression
N1qlQueryCreator.addMetaIfRequired
(String bucketName, PersistentPropertyPath<CouchbasePersistentProperty> persistentPropertyPath, CouchbasePersistentProperty property, PersistentEntity entity) Translate meta-fields to META(bucketName).id, cas, expiry.
If bucketName is null, META().id etc,
If not a meta-field, just create the corresponding pathprotected N1QLExpression
N1qlMutateQueryCreator.and
(Part part, N1QLExpression base, Iterator<Object> iterator) protected N1QLExpression
OldN1qlQueryCreator.and
(Part part, N1QLExpression base, Iterator<Object> iterator) protected N1QLExpression
N1qlCountQueryCreator.complete
(N1QLExpression criteria, Sort sort) protected N1QLExpression
N1qlMutateQueryCreator.complete
(N1QLExpression criteria, Sort sort) protected N1QLExpression
OldN1qlQueryCreator.complete
(N1QLExpression criteria, Sort sort) protected N1QLExpression
protected N1QLExpression
protected abstract N1QLExpression
AbstractN1qlBasedQuery.getCount
(ParameterAccessor accessor, Object[] runtimeParameters) The statement for a count() query.protected N1QLExpression
PartTreeN1qlBasedQuery.getCount
(ParameterAccessor accessor, Object[] runtimeParameters) Deprecated.protected abstract N1QLExpression
AbstractN1qlBasedQuery.getExpression
(ParameterAccessor accessor, Object[] runtimeParameters, ReturnedType returnedType) 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.StringBasedN1qlQueryParser.getExpression
(String statement, CouchbaseQueryMethod queryMethod, ParameterAccessor accessor, SpelExpressionParser parser, QueryMethodEvaluationContextProvider evaluationContextProvider) Creates the N1QLExpression and parameterNamesprotected N1QLExpression
N1qlMutateQueryCreator.or
(N1QLExpression base, N1QLExpression criteria) protected N1QLExpression
OldN1qlQueryCreator.or
(N1QLExpression base, N1QLExpression criteria) Modifier and TypeMethodDescriptionprotected 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
N1qlCountQueryCreator.complete
(N1QLExpression criteria, Sort sort) protected N1QLExpression
N1qlMutateQueryCreator.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) ModifierConstructorDescriptionN1qlCountQueryCreator
(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) -
Uses of N1QLExpression in org.springframework.data.couchbase.repository.query.support
Modifier and TypeMethodDescriptionstatic <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 informationstatic N1QLExpression
N1qlUtils.createSelectClauseForEntity
(String bucketName) Produce aN1QLExpression
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 aN1QLExpression
that corresponds to the SELECT clause for looking for Spring Data entities stored in Couchbase.static N1QLExpression
N1qlUtils.createSelectFromForEntity
(String bucketName) Produce aN1QLExpression
that corresponds to the SELECT...FROM clauses for looking for Spring Data entities stored in Couchbase.static N1QLExpression[]
N1qlUtils.createSort
(Sort sort) Create a N1QLN1QLExpression
out of a Spring DataSort
.static N1QLExpression
N1qlUtils.createWhereFilterForEntity
(N1QLExpression baseWhereCriteria, CouchbaseConverter converter, EntityMetadata<?> entityInformation) Produces anN1QLExpression
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 theEntityMetadata
parameter).static N1QLExpression
N1qlUtils.escapedBucket
(String bucketName) Escape the given bucketName and produce anN1QLExpression
.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 TypeMethodDescriptionstatic 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 consistencystatic N1QLExpression
N1qlUtils.createWhereFilterForEntity
(N1QLExpression baseWhereCriteria, CouchbaseConverter converter, EntityMetadata<?> entityInformation) Produces anN1QLExpression
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 theEntityMetadata
parameter).