Module spring.data.cassandra
Class CassandraCustomConversions
java.lang.Object
org.springframework.data.convert.CustomConversions
org.springframework.data.cassandra.core.convert.CassandraCustomConversions
- Direct Known Subclasses:
CustomConversions
Value object to capture custom conversion.
CassandraCustomConversions also act as factory for
SimpleTypeHolder- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCassandraCustomConversions.CassandraConverterConfigurationAdapterencapsulates creation ofCustomConversions.ConverterConfigurationwith Cassandra specifics.Nested classes/interfaces inherited from class org.springframework.data.convert.CustomConversions
CustomConversions.ConverterConfiguration, CustomConversions.ConverterRegistrationIntent, CustomConversions.StoreConversions -
Constructor Summary
ConstructorsModifierConstructorDescriptionCassandraCustomConversions(List<?> converters) Create a newCassandraCustomConversionsinstance registering the given converters.protectedCassandraCustomConversions(CassandraCustomConversions.CassandraConverterConfigurationAdapter conversionConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionstatic CassandraCustomConversionsFunctional styleCustomConversionscreation giving users a convenient way of configuring store specific capabilities by providing deferred hooks to what will be configured when creating theinstance.Methods inherited from class org.springframework.data.convert.CustomConversions
getCustomWriteTarget, getCustomWriteTarget, getPropertyValueConversions, getSimpleTypeHolder, hasCustomReadTarget, hasCustomWriteTarget, hasCustomWriteTarget, hasValueConverter, isSimpleType, registerConvertersIn
-
Constructor Details
-
CassandraCustomConversions
Create a newCassandraCustomConversionsinstance registering the given converters.- Parameters:
converters- must not be null.
-
CassandraCustomConversions
protected CassandraCustomConversions(CassandraCustomConversions.CassandraConverterConfigurationAdapter conversionConfiguration) Create a newCassandraCustomConversionsgivenCassandraCustomConversions.CassandraConverterConfigurationAdapter.- Parameters:
conversionConfiguration- must not be null.- Since:
- 4.2
-
-
Method Details
-
create
public static CassandraCustomConversions create(Consumer<CassandraCustomConversions.CassandraConverterConfigurationAdapter> configurer) Functional styleCustomConversionscreation giving users a convenient way of configuring store specific capabilities by providing deferred hooks to what will be configured when creating theinstance.- Parameters:
configurer- must not be null.- Since:
- 4.2
-