| Package | Description |
|---|---|
| org.springframework.data.couchbase.core |
This package contains the specific implementations and core classes for Spring Data Couchbase internals.
|
| org.springframework.data.couchbase.core.convert |
This package contains classes used for entity-to-JSON conversions, type mapping and writing.
|
| 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).
|
| org.springframework.data.couchbase.repository.support |
This package contains the Couchbase implementations to support the Spring Data repository abstraction.
|
| Modifier and Type | Method and Description |
|---|---|
CouchbaseConverter |
CouchbaseOperations.getConverter()
Returns the converter used for this template/operations.
|
CouchbaseConverter |
ReactiveCouchbaseTemplate.getConverter() |
CouchbaseConverter |
CouchbaseTemplate.getConverter() |
CouchbaseConverter |
ReactiveCouchbaseOperations.getConverter()
Returns the converter used for this template/operations.
|
| Constructor and Description |
|---|
CouchbaseTemplate(CouchbaseClientFactory clientFactory,
CouchbaseConverter converter) |
CouchbaseTemplate(CouchbaseClientFactory clientFactory,
CouchbaseConverter converter,
TranslationService translationService) |
CouchbaseTemplate(CouchbaseClientFactory clientFactory,
CouchbaseConverter converter,
TranslationService translationService,
com.couchbase.client.java.query.QueryScanConsistency scanConsistency) |
ReactiveCouchbaseTemplate(CouchbaseClientFactory clientFactory,
CouchbaseConverter converter) |
ReactiveCouchbaseTemplate(CouchbaseClientFactory clientFactory,
CouchbaseConverter converter,
TranslationService translationService) |
ReactiveCouchbaseTemplate(CouchbaseClientFactory clientFactory,
CouchbaseConverter converter,
TranslationService translationService,
com.couchbase.client.java.query.QueryScanConsistency scanConsistency) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCouchbaseConverter
An abstract
CouchbaseConverter that provides the basics for the MappingCouchbaseConverter. |
class |
MappingCouchbaseConverter
A mapping converter for Couchbase.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Query.appendWhere(StringBuilder sb,
int[] paramIndexPtr,
CouchbaseConverter converter) |
String |
QueryCriteriaDefinition.export(int[] paramIndexPtr,
com.couchbase.client.java.json.JsonValue parameters,
CouchbaseConverter converter)
This exports the query criteria into a string to be appended to the beginning of an N1QL statement
|
String |
QueryCriteria.export(int[] paramIndexPtr,
com.couchbase.client.java.json.JsonValue parameters,
CouchbaseConverter converter)
This exports the query criteria chain into a string to be appended to the beginning of an N1QL statement
|
static StringBasedN1qlQueryParser.N1qlSpelValues |
Query.getN1qlSpelValues(CouchbaseConverter converter,
String bucketName,
String scopeName,
String collectionName,
Class domainClass,
Class returnClass,
boolean isCount,
String[] distinctFields,
String[] fields) |
String |
StringQuery.toN1qlSelectString(CouchbaseConverter converter,
String bucketName,
String scope,
String collection,
Class domainClass,
Class resultClass,
boolean isCount,
String[] distinctFields,
String[] fields) |
String |
Query.toN1qlSelectString(CouchbaseConverter converter,
String bucketName,
String scopeName,
String collectionName,
Class domainClass,
Class returnClass,
boolean isCount,
String[] distinctFields,
String[] fields) |
| Constructor and Description |
|---|
ConvertingIterator(Iterator<Object> delegate,
CouchbaseConverter converter) |
N1qlCountQueryCreator(org.springframework.data.repository.query.parser.PartTree tree,
org.springframework.data.repository.query.ParameterAccessor parameters,
N1QLExpression selectFrom,
CouchbaseConverter converter,
CouchbaseQueryMethod queryMethod) |
N1qlMutateQueryCreator(org.springframework.data.repository.query.parser.PartTree tree,
org.springframework.data.repository.query.ParameterAccessor parameters,
N1QLExpression mutateFrom,
CouchbaseConverter converter,
CouchbaseQueryMethod queryMethod) |
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) |
OldN1qlQueryCreator(org.springframework.data.repository.query.parser.PartTree tree,
org.springframework.data.repository.query.ParameterAccessor parameters,
N1QLExpression selectFrom,
CouchbaseConverter converter,
CouchbaseQueryMethod queryMethod) |
StringBasedN1qlQueryParser(String statement,
CouchbaseQueryMethod queryMethod,
String bucketName,
String scope,
String collection,
CouchbaseConverter couchbaseConverter,
String typeField,
String typeValue,
org.springframework.data.repository.query.ParameterAccessor accessor,
SpelExpressionParser spelExpressionParser,
org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
This constructor is to allow for generating the n1ql spel expressions from @Queries.
|
StringBasedN1qlQueryParser(String bucketName,
String scope,
String collection,
CouchbaseConverter couchbaseConverter,
Class<?> domainClass,
Class<?> resultClass,
String typeField,
String typeValue,
boolean isCount,
String[] distinctFields,
String[] fields)
This constructor is to allow for generating the n1ql spel expressions from NON-@Queries.
|
StringN1qlQueryCreator(org.springframework.data.repository.query.ParameterAccessor accessor,
CouchbaseQueryMethod queryMethod,
CouchbaseConverter couchbaseConverter,
SpelExpressionParser spelExpressionParser,
org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider,
org.springframework.data.repository.core.NamedQueries namedQueries) |
| 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 |
N1qlUtils.createSelectClauseForEntity(String bucketName,
org.springframework.data.repository.query.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.createWhereFilterForEntity(N1QLExpression baseWhereCriteria,
CouchbaseConverter converter,
org.springframework.data.repository.core.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 org.springframework.data.mapping.PersistentPropertyPath<CouchbasePersistentProperty> |
N1qlUtils.getPathWithAlternativeFieldNames(CouchbaseConverter converter,
org.springframework.data.mapping.PropertyPath property)
Given a common
PropertyPath, returns the corresponding PersistentPropertyPath of
CouchbasePersistentProperty which will allow to discover alternative naming for fields. |
static N1QLExpression |
N1qlQueryCreatorUtils.prepareExpression(CouchbaseConverter converter,
org.springframework.data.repository.query.parser.Part part,
Iterator<Object> iterator,
AtomicInteger position,
com.couchbase.client.java.json.JsonArray placeHolderValues) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Util.hasNonZeroVersionProperty(Object entity,
CouchbaseConverter converter) |
| Constructor and Description |
|---|
SpringDataCouchbaseSerializer(CouchbaseConverter converter)
Creates a new
SpringDataCouchbaseSerializer for the given CouchbaseConverter. |
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.