Interface CassandraValueConverter<S,T>
- All Superinterfaces:
PropertyValueConverter<S,
T, CassandraConversionContext>
public interface CassandraValueConverter<S,T>
extends PropertyValueConverter<S,T,CassandraConversionContext>
Cassandra-specific
PropertyValueConverter
extension. Converters can implement this interface for
Cassandra-specific value conversions, for example:
static class MyJsonConverter implements CassandraValueConverter<Person, String> { @Override public Person read(String value, CassandraConversionContext context) { return // decode JSON to Person object } @Override public String write(Person value, CassandraConversionContext context) { return // marshal Person to JSON } }
- Since:
- 4.2
- Author:
- Mark Paluch
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.convert.PropertyValueConverter
PropertyValueConverter.FunctionPropertyValueConverter<DV extends Object,
SV extends Object, P extends PersistentProperty<P>>, PropertyValueConverter.ObjectToObjectPropertyValueConverter -
Method Summary
Methods inherited from interface org.springframework.data.convert.PropertyValueConverter
read, readNull, write, writeNull