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
Modifier and TypeClassDescriptionstatic class
CassandraCustomConversions.CassandraConverterConfigurationAdapter
encapsulates creation ofCustomConversions.ConverterConfiguration
with Cassandra specifics.Nested classes/interfaces inherited from class org.springframework.data.convert.CustomConversions
CustomConversions.ConverterConfiguration, CustomConversions.ConverterRegistrationIntent, CustomConversions.StoreConversions
-
Constructor Summary
ModifierConstructorDescriptionCassandraCustomConversions
(List<?> converters) Create a newCassandraCustomConversions
instance registering the given converters.protected
CassandraCustomConversions
(CassandraCustomConversions.CassandraConverterConfigurationAdapter conversionConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionstatic CassandraCustomConversions
Functional styleCustomConversions
creation 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 newCassandraCustomConversions
instance registering the given converters.- Parameters:
converters
- must not be null.
-
CassandraCustomConversions
protected CassandraCustomConversions(CassandraCustomConversions.CassandraConverterConfigurationAdapter conversionConfiguration) Create a newCassandraCustomConversions
givenCassandraCustomConversions.CassandraConverterConfigurationAdapter
.- Parameters:
conversionConfiguration
- must not be null.- Since:
- 4.2
-
-
Method Details
-
create
public static CassandraCustomConversions create(Consumer<CassandraCustomConversions.CassandraConverterConfigurationAdapter> configurer) Functional styleCustomConversions
creation 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
-