Class CassandraConversionContext
java.lang.Object
org.springframework.data.cassandra.core.convert.CassandraConversionContext
- All Implemented Interfaces:
ValueConversionContext<CassandraPersistentProperty>
public class CassandraConversionContext
extends Object
implements ValueConversionContext<CassandraPersistentProperty>
ValueConversionContext that allows to delegate read/write to an underlying CassandraConverter.- Since:
- 4.2
- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionCassandraConversionContext(PropertyValueProvider<CassandraPersistentProperty> accessor, CassandraPersistentProperty persistentProperty, CassandraConverter CassandraConverter) CassandraConversionContext(PropertyValueProvider<CassandraPersistentProperty> accessor, CassandraPersistentProperty persistentProperty, CassandraConverter CassandraConverter, @Nullable SpELContext spELContext) -
Method Summary
Modifier and TypeMethodDescription@Nullable SpELContext@Nullable Object<T> @Nullable T<T> @Nullable TMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ValueConversionContext
read, read, write, write
-
Constructor Details
-
CassandraConversionContext
public CassandraConversionContext(PropertyValueProvider<CassandraPersistentProperty> accessor, CassandraPersistentProperty persistentProperty, CassandraConverter CassandraConverter) -
CassandraConversionContext
public CassandraConversionContext(PropertyValueProvider<CassandraPersistentProperty> accessor, CassandraPersistentProperty persistentProperty, CassandraConverter CassandraConverter, @Nullable SpELContext spELContext)
-
-
Method Details
-
getProperty
- Specified by:
getPropertyin interfaceValueConversionContext<CassandraPersistentProperty>
-
getValue
-
write
public <T> @Nullable T write(@Nullable Object value, org.springframework.data.core.TypeInformation<T> target) - Specified by:
writein interfaceValueConversionContext<CassandraPersistentProperty>
-
read
public <T> @Nullable T read(@Nullable Object value, org.springframework.data.core.TypeInformation<T> target) - Specified by:
readin interfaceValueConversionContext<CassandraPersistentProperty>
-
getSpELContext
-