public class MappingAerospikeConverter extends Object implements AerospikeConverter
AerospikeConverter to read domain objects from AerospikeData and write domain
objects into them.| Modifier and Type | Field and Description |
|---|---|
protected ApplicationContext |
applicationContext |
protected SpelExpressionParser |
spelExpressionParser |
static String |
SPRING_ID_BIN |
| Constructor and Description |
|---|
MappingAerospikeConverter()
Creates a new
MappingAerospikeConverter. |
| Modifier and Type | Method and Description |
|---|---|
ConversionService |
getConversionService() |
MappingContext<? extends AerospikePersistentEntity<?>,AerospikePersistentProperty> |
getMappingContext() |
<R> R |
read(Class<R> type,
AerospikeData data) |
<R> R |
read(Object instance,
AerospikeData data) |
void |
write(Object source,
AerospikeData data) |
protected <T> void |
writeCollectionInternal(Collection<?> collection,
TypeInformation<?> type,
List<T> propertyList) |
protected void |
writeInternal(Object obj,
AerospikeData data,
AerospikePersistentEntity<?> entity,
List<com.aerospike.client.Bin> bins) |
protected void |
writeInternal(Object obj,
AerospikeData data,
TypeInformation<?> type,
List<com.aerospike.client.Bin> bins) |
protected void |
writeMapInternal(Map<Object,Object> obj,
AerospikeData data,
TypeInformation<?> propertyType,
List<com.aerospike.client.Bin> bins) |
protected void |
writePropertyInternal(Object propertyObj,
AerospikeData data,
AerospikePersistentProperty persistentProperty,
PersistentPropertyAccessor accessor,
List<com.aerospike.client.Bin> bins) |
protected void |
writeSimpleInternal(Object propertyObj,
AerospikeData data,
AerospikePersistentProperty persistentProperty,
PersistentPropertyAccessor accessor,
List<com.aerospike.client.Bin> bins) |
public static final String SPRING_ID_BIN
protected ApplicationContext applicationContext
protected final SpelExpressionParser spelExpressionParser
public MappingAerospikeConverter()
MappingAerospikeConverter.public MappingContext<? extends AerospikePersistentEntity<?>,AerospikePersistentProperty> getMappingContext()
getMappingContext in interface EntityConverter<AerospikePersistentEntity<?>,AerospikePersistentProperty,Object,AerospikeData>public ConversionService getConversionService()
getConversionService in interface EntityConverter<AerospikePersistentEntity<?>,AerospikePersistentProperty,Object,AerospikeData>public <R> R read(Class<R> type, AerospikeData data)
read in interface EntityReader<Object,AerospikeData>public <R> R read(Object instance, AerospikeData data)
public void write(Object source, AerospikeData data)
write in interface EntityWriter<Object,AerospikeData>protected void writeInternal(Object obj, AerospikeData data, TypeInformation<?> type, List<com.aerospike.client.Bin> bins)
obj - data - type - bins - protected void writeInternal(Object obj, AerospikeData data, AerospikePersistentEntity<?> entity, List<com.aerospike.client.Bin> bins)
obj - data - entity - protected void writePropertyInternal(Object propertyObj, AerospikeData data, AerospikePersistentProperty persistentProperty, PersistentPropertyAccessor accessor, List<com.aerospike.client.Bin> bins)
propertyObj - data - persistentProperty - accessor - bins - protected void writeSimpleInternal(Object propertyObj, AerospikeData data, AerospikePersistentProperty persistentProperty, PersistentPropertyAccessor accessor, List<com.aerospike.client.Bin> bins)
propertyObj - data - persistentProperty - bins - accessor - protected <T> void writeCollectionInternal(Collection<?> collection, TypeInformation<?> type, List<T> propertyList)
collection - type - propertyList - protected void writeMapInternal(Map<Object,Object> obj, AerospikeData data, TypeInformation<?> propertyType, List<com.aerospike.client.Bin> bins)
obj - data - propertyType - bins - Copyright © 2011-2016–2017 Aerospike Inc.. All rights reserved.