| 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 |
CouchbaseTemplate.getConverter() |
CouchbaseConverter |
ReactiveCouchbaseOperations.getConverter()
Returns the converter used for this template/operations.
|
CouchbaseConverter |
ReactiveCouchbaseTemplate.getConverter() |
CouchbaseConverter |
CouchbaseOperations.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 |
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
|
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
|
| Constructor and Description |
|---|
ConvertingIterator(Iterator<Object> delegate,
CouchbaseConverter converter) |
N1qlCountQueryCreator(PartTree tree,
ParameterAccessor parameters,
N1QLExpression selectFrom,
CouchbaseConverter converter,
CouchbaseQueryMethod queryMethod) |
N1qlMutateQueryCreator(PartTree tree,
ParameterAccessor parameters,
N1QLExpression mutateFrom,
CouchbaseConverter converter,
CouchbaseQueryMethod queryMethod) |
N1qlQueryCreator(PartTree tree,
ParameterAccessor accessor,
QueryMethod queryMethod,
CouchbaseConverter converter,
String bucketName) |
OldN1qlQueryCreator(PartTree tree,
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,
ParameterAccessor accessor,
SpelExpressionParser spelExpressionParser,
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(ParameterAccessor accessor,
CouchbaseQueryMethod queryMethod,
CouchbaseConverter couchbaseConverter,
SpelExpressionParser spelExpressionParser,
QueryMethodEvaluationContextProvider evaluationContextProvider,
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,
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,
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 PersistentPropertyPath<CouchbasePersistentProperty> |
N1qlUtils.getPathWithAlternativeFieldNames(CouchbaseConverter converter,
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,
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–2022 Pivotal Software, Inc.. All rights reserved.