| 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.mapping |
This package contains interfaces and annotations relative to object-json mapping and the notion of a Couchbase
Storable.
|
| org.springframework.data.couchbase.core.mapping.event |
This package contains various events that are emitted during the lifecycle of a Spring Data entity.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
CouchbaseDocument |
TemplateSupport.encodeEntity(Object entityToEncode) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<CouchbaseDocument> |
ReactiveTemplateSupport.encodeEntity(Object entityToEncode) |
reactor.core.publisher.Mono<CouchbaseDocument> |
NonReactiveSupportWrapper.encodeEntity(Object entityToEncode) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Object> |
NonReactiveSupportWrapper.applyUpdatedCas(Object entity,
CouchbaseDocument converted,
long cas) |
<T> T |
TemplateSupport.applyUpdatedCas(T entity,
CouchbaseDocument converted,
long cas) |
<T> reactor.core.publisher.Mono<T> |
ReactiveTemplateSupport.applyUpdatedCas(T entity,
CouchbaseDocument converted,
long cas) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
MappingCouchbaseConverter.addCustomTypeKeyIfNecessary(TypeInformation<?> type,
Object source,
CouchbaseDocument target)
Add a custom type key if needed.
|
protected void |
MappingCouchbaseConverter.copyCouchbaseDocument(CouchbaseDocument source,
CouchbaseDocument target)
Helper method to copy the internals from a source document into a target document.
|
protected Object |
MappingCouchbaseConverter.getValueInternal(CouchbasePersistentProperty property,
CouchbaseDocument source,
Object parent,
PersistentEntity entity)
Loads the property value through the value provider.
|
<R> R |
MappingCouchbaseConverter.read(Class<R> clazz,
CouchbaseDocument source) |
protected <R> R |
MappingCouchbaseConverter.read(CouchbasePersistentEntity<R> entity,
CouchbaseDocument source,
Object parent)
Read an incoming
CouchbaseDocument into the target entity. |
protected <R> R |
MappingCouchbaseConverter.read(TypeInformation<R> type,
CouchbaseDocument source)
Read an incoming
CouchbaseDocument into the target entity. |
protected <R> R |
MappingCouchbaseConverter.read(TypeInformation<R> type,
CouchbaseDocument source,
Object parent)
Read an incoming
CouchbaseDocument into the target entity. |
Alias |
DefaultCouchbaseTypeMapper.CouchbaseDocumentTypeAliasAccessor.readAliasFrom(CouchbaseDocument source) |
protected Map<Object,Object> |
MappingCouchbaseConverter.readMap(TypeInformation<?> type,
CouchbaseDocument source,
Object parent)
Recursively parses the a map from the source document.
|
void |
MappingCouchbaseConverter.write(Object source,
CouchbaseDocument target) |
protected void |
MappingCouchbaseConverter.writeInternal(Object source,
CouchbaseDocument target,
CouchbasePersistentEntity<?> entity,
boolean withId)
Internal helper method to write the source object into the target document.
|
protected void |
MappingCouchbaseConverter.writeInternal(Object source,
CouchbaseDocument target,
TypeInformation<?> typeHint,
boolean withId)
Convert a source object into a
CouchbaseDocument target. |
void |
DefaultCouchbaseTypeMapper.CouchbaseDocumentTypeAliasAccessor.writeTypeTo(CouchbaseDocument sink,
Object alias) |
| Modifier and Type | Method and Description |
|---|---|
CouchbaseDocument |
CouchbaseDocument.put(String key,
Object value)
Store a value with the given key for later retreival.
|
CouchbaseDocument |
CouchbaseDocument.setContent(com.couchbase.client.java.json.JsonObject payload)
Allows to set the full payload as a json object for convenience.
|
CouchbaseDocument |
CouchbaseDocument.setContent(Map<String,Object> content)
Allows to set the full payload as a map.
|
CouchbaseDocument |
CouchbaseDocument.setExpiration(int expiration)
Set the expiration time of the document.
|
CouchbaseDocument |
CouchbaseDocument.setId(String id)
Sets the unique ID of the document per bucket.
|
| Modifier and Type | Method and Description |
|---|---|
CouchbaseDocument |
CouchbaseMappingEvent.getDocument() |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Object> |
ReactiveAuditingEntityCallback.onAfterConvert(Object entity,
CouchbaseDocument document,
String collection) |
Object |
AuditingEntityCallback.onAfterConvert(Object entity,
CouchbaseDocument document,
String collection) |
T |
AfterConvertCallback.onAfterConvert(T entity,
CouchbaseDocument document,
String collection)
Entity callback method invoked after a domain object is materialized from a
CouchbaseDocument. |
org.reactivestreams.Publisher<T> |
ReactiveAfterConvertCallback.onAfterConvert(T entity,
CouchbaseDocument document,
String collection)
Entity callback method invoked after a domain object is converted to be persisted.
|
void |
AbstractCouchbaseEventListener.onAfterDelete(Object source,
CouchbaseDocument doc) |
void |
LoggingEventListener.onAfterDelete(Object source,
CouchbaseDocument doc) |
void |
AbstractCouchbaseEventListener.onAfterSave(E source,
CouchbaseDocument doc) |
void |
LoggingEventListener.onAfterSave(Object source,
CouchbaseDocument doc) |
void |
AbstractCouchbaseEventListener.onBeforeDelete(Object source,
CouchbaseDocument doc) |
void |
LoggingEventListener.onBeforeDelete(Object source,
CouchbaseDocument doc) |
void |
AbstractCouchbaseEventListener.onBeforeSave(E source,
CouchbaseDocument doc) |
void |
ValidatingCouchbaseEventListener.onBeforeSave(Object source,
CouchbaseDocument dbo) |
void |
LoggingEventListener.onBeforeSave(Object source,
CouchbaseDocument doc) |
| Constructor and Description |
|---|
AfterSaveEvent(E source,
CouchbaseDocument document) |
BeforeSaveEvent(E source,
CouchbaseDocument document) |
CouchbaseMappingEvent(T source,
CouchbaseDocument document) |
| Modifier and Type | Method and Description |
|---|---|
static com.couchbase.client.java.kv.InsertOptions |
OptionsBuilder.buildInsertOptions(com.couchbase.client.java.kv.InsertOptions options,
com.couchbase.client.java.kv.PersistTo persistTo,
com.couchbase.client.java.kv.ReplicateTo replicateTo,
com.couchbase.client.core.msg.kv.DurabilityLevel durabilityLevel,
Duration expiry,
CouchbaseDocument doc) |
static com.couchbase.client.java.kv.ReplaceOptions |
OptionsBuilder.buildReplaceOptions(com.couchbase.client.java.kv.ReplaceOptions options,
com.couchbase.client.java.kv.PersistTo persistTo,
com.couchbase.client.java.kv.ReplicateTo replicateTo,
com.couchbase.client.core.msg.kv.DurabilityLevel durabilityLevel,
Duration expiry,
Long cas,
CouchbaseDocument doc) |
static com.couchbase.client.java.kv.UpsertOptions |
OptionsBuilder.buildUpsertOptions(com.couchbase.client.java.kv.UpsertOptions options,
com.couchbase.client.java.kv.PersistTo persistTo,
com.couchbase.client.java.kv.ReplicateTo replicateTo,
com.couchbase.client.core.msg.kv.DurabilityLevel durabilityLevel,
Duration expiry,
CouchbaseDocument doc) |
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.