public interface CassandraConverter extends EntityConverter<CassandraPersistentEntity<?>,CassandraPersistentProperty,Object,Object>
| Modifier and Type | Method and Description |
|---|---|
Object |
convertToColumnType(Object value)
Converts the given object into a value Cassandra will be able to store natively in a column.
|
Object |
convertToColumnType(Object value,
ColumnType typeDescriptor)
Converts the given object into a value Cassandra will be able to store natively in a column.
|
default Object |
convertToColumnType(Object value,
TypeInformation<?> typeInformation)
Converts the given object into a value Cassandra will be able to store natively in a column.
|
com.datastax.oss.driver.api.core.type.codec.registry.CodecRegistry |
getCodecRegistry()
Returns the
CodecRegistry registered in the CassandraConverter. |
ColumnTypeResolver |
getColumnTypeResolver()
|
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)
|
getConversionServicereadwriteCustomConversions getCustomConversions()
CustomConversions registered in the CassandraConverter.CustomConversions.com.datastax.oss.driver.api.core.type.codec.registry.CodecRegistry getCodecRegistry()
CodecRegistry registered in the CassandraConverter.CodecRegistry.CassandraMappingContext getMappingContext()
getMappingContext in interface EntityConverter<CassandraPersistentEntity<?>,CassandraPersistentProperty,Object,Object>ColumnTypeResolver getColumnTypeResolver()
ColumnTypeResolver@Nullable 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.Object convertToColumnType(Object value)
value - Object to convert; must not be null.default Object convertToColumnType(Object value, TypeInformation<?> typeInformation)
value - Object to convert; must not be null.typeInformation - TypeInformation used to describe the object type; must not be null.Object convertToColumnType(Object value, ColumnType typeDescriptor)
value - Object to convert; must not be null.typeDescriptor - ColumnType used to describe the object type; must not be null.void write(Object source, Object sink, CassandraPersistentEntity<?> entity)
source - the source, must not be null.sink - must not be null.entity - must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.