public interface CassandraConverter extends EntityConverter<CassandraPersistentEntity<?>,CassandraPersistentProperty,Object,Object>
| Modifier and Type | Method and Description |
|---|---|
Object |
convertToCassandraColumn(Object obj,
TypeInformation<?> typeInformation)
Converts the given object into one Cassandra will be able to store natively in a column.
|
CustomConversions |
getCustomConversions()
Returns the
CustomConversions registered in the CassandraConverter. |
Object |
getId(Object object,
CassandraPersistentEntity<?> entity)
Returns the Id for an entity.
|
CassandraMappingContext |
getMappingContext() |
void |
write(Object source,
Object sink,
CassandraPersistentEntity<?> entity)
|
getConversionServicereadwriteCassandraMappingContext getMappingContext()
getMappingContext in interface EntityConverter<CassandraPersistentEntity<?>,CassandraPersistentProperty,Object,Object>Object getId(Object object, CassandraPersistentEntity<?> entity)
Id or
PrimaryKey IdMapId for composite
PrimaryKeyColumn Id'sPrimaryKey using a
PrimaryKeyClassobject - must not be null.entity - must not be null.void write(Object source, Object sink, CassandraPersistentEntity<?> entity)
source - the source, may be null.sink - must not be null.entity - must not be null.Object convertToCassandraColumn(Object obj, TypeInformation<?> typeInformation)
obj - Object to convert; can be null.typeInformation - TypeInformation used to describe the object type; must not be null.CustomConversions getCustomConversions()
CustomConversions registered in the CassandraConverter.CustomConversions.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.