Class R2dbcCustomConversions
java.lang.Object
org.springframework.data.convert.CustomConversions
org.springframework.data.r2dbc.convert.R2dbcCustomConversions
Value object to capture custom conversion.
R2dbcCustomConversions also act as factory for
SimpleTypeHolder- Author:
- Mark Paluch, Jens Schauder
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classR2dbcCustomConversions.R2dbcConverterConfigurerencapsulates creation ofR2dbcCustomConversions.R2dbcCustomConversionsConfigurationwith R2DBC specifics.Nested classes/interfaces inherited from class CustomConversions
CustomConversions.ConverterConfiguration, CustomConversions.ConverterRegistrationIntent, CustomConversions.StoreConversions -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedR2dbcCustomConversions(CustomConversions.ConverterConfiguration converterConfiguration) R2dbcCustomConversions(CustomConversions.StoreConversions storeConversions, Collection<?> converters) Create a newR2dbcCustomConversionsinstance registering the given converters. -
Method Summary
Modifier and TypeMethodDescriptionstatic R2dbcCustomConversionscreate(R2dbcDialect dialect, Consumer<R2dbcCustomConversions.R2dbcConverterConfigurer> configurer) Create a newR2dbcCustomConversionsinstance using the givenR2dbcDialectandR2dbcCustomConversions.R2dbcConverterConfigurercallback to configure converters.static R2dbcCustomConversionsof(R2dbcDialect dialect, Object... converters) static R2dbcCustomConversionsof(R2dbcDialect dialect, Collection<?> converters)
-
Field Details
-
STORE_CONVERTERS
-
STORE_CONVERSIONS
-
-
Constructor Details
-
R2dbcCustomConversions
public R2dbcCustomConversions(CustomConversions.StoreConversions storeConversions, Collection<?> converters) Create a newR2dbcCustomConversionsinstance registering the given converters.- Parameters:
storeConversions- must not be null.converters- must not be null.
-
R2dbcCustomConversions
-
-
Method Details
-
of
- Parameters:
dialect- must not be null.converters- must not be null.- Returns:
- the custom conversions object.
- Since:
- 1.2
-
of
- Parameters:
dialect- must not be null.converters- must not be null.- Returns:
- the custom conversions object.
- Since:
- 1.2
-
create
public static R2dbcCustomConversions create(R2dbcDialect dialect, Consumer<R2dbcCustomConversions.R2dbcConverterConfigurer> configurer) Create a newR2dbcCustomConversionsinstance using the givenR2dbcDialectandR2dbcCustomConversions.R2dbcConverterConfigurercallback to configure converters.- Parameters:
dialect- theDialectto use, must not be null.configurer- the configurer callback to configure converters, must not be null.- Returns:
- a new
R2dbcCustomConversionsinstance configured from the given dialect and configured converters. - Since:
- 4.0
-