Package | Description |
---|---|
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.
|
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)
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. |
Object |
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)
Internal helper method to write the source object into the target document.
|
protected void |
MappingCouchbaseConverter.writeInternal(Object source,
CouchbaseDocument target,
TypeInformation<?> typeHint)
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.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 |
---|---|
void |
LoggingEventListener.onAfterDelete(Object source,
CouchbaseDocument doc) |
void |
AbstractCouchbaseEventListener.onAfterDelete(Object source,
CouchbaseDocument doc) |
void |
AbstractCouchbaseEventListener.onAfterSave(E source,
CouchbaseDocument doc) |
void |
LoggingEventListener.onAfterSave(Object source,
CouchbaseDocument doc) |
void |
LoggingEventListener.onBeforeDelete(Object source,
CouchbaseDocument doc) |
void |
AbstractCouchbaseEventListener.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) |
Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.