public interface AerospikeWriter<T> extends org.springframework.data.convert.EntityWriter<T,AerospikeWriteData>
| Modifier and Type | Method and Description |
|---|---|
Object |
convertToAerospikeType(Object obj)
Converts the given object into one Aerospike will be able to store natively.
|
Object |
convertToAerospikeType(Object obj,
org.springframework.data.util.TypeInformation<?> typeInformation)
Converts the given object into one Aerospike will be able to store natively but retains the type information in case
the given
TypeInformation differs from the given object type. |
AerospikeWriteData |
toAerospikeData(Object object,
AerospikePersistentProperty referingProperty)
Creates a
AerospikeWriteData to refer to the given object. |
Object convertToAerospikeType(Object obj)
obj - can be null.Object convertToAerospikeType(Object obj, org.springframework.data.util.TypeInformation<?> typeInformation)
TypeInformation differs from the given object type.obj - can be null.typeInformation - can be null.AerospikeWriteData toAerospikeData(Object object, AerospikePersistentProperty referingProperty)
AerospikeWriteData to refer to the given object.object - the object to create a AerospikeWriteData to link to. The object's type has to carry an id attribute.referingProperty - the client-side property referring to the object which might carry additional metadata for
the AerospikeWriteData object to create. Can be null.Copyright © 2011–2018 Aerospike Inc.. All rights reserved.