public interface AerospikeWriter<T> extends EntityWriter<T,AerospikeData>
| 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,
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. |
AerospikeData |
toAerospikeData(Object object,
AerospikePersistentProperty referingProperty)
Creates a
Aerospike to refer to the given object. |
writeObject convertToAerospikeType(Object obj)
obj - can be null.Object convertToAerospikeType(Object obj, TypeInformation<?> typeInformation)
TypeInformation differs from the given object type.obj - can be null.typeInformation - can be null.AerospikeData toAerospikeData(Object object, AerospikePersistentProperty referingProperty)
Aerospike to refer to the given object.object - the object to create a Aerospike 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 Aerospike object to create. Can be null.Copyright © 2011-2016–2017 Aerospike Inc.. All rights reserved.