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
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.convert.CustomConversions
CustomConversions.ConverterConfiguration, CustomConversions.ConverterRegistrationIntent, CustomConversions.StoreConversions
-
Field Summary
-
Constructor Summary
ConstructorDescriptionR2dbcCustomConversions
(Collection<?> converters) Deprecated.R2dbcCustomConversions
(CustomConversions.StoreConversions storeConversions, Collection<?> converters) Create a newR2dbcCustomConversions
instance registering the given converters. -
Method Summary
Modifier and TypeMethodDescriptionstatic R2dbcCustomConversions
of
(R2dbcDialect dialect, Object... converters) static R2dbcCustomConversions
of
(R2dbcDialect dialect, Collection<?> converters) Methods inherited from class org.springframework.data.convert.CustomConversions
getCustomWriteTarget, getCustomWriteTarget, getPropertyValueConverter, getSimpleTypeHolder, hasCustomReadTarget, hasCustomWriteTarget, hasCustomWriteTarget, hasPropertyValueConverter, isSimpleType, registerConvertersIn
-
Field Details
-
STORE_CONVERTERS
-
STORE_CONVERSIONS
-
-
Constructor Details
-
R2dbcCustomConversions
Deprecated.since 1.3, useof(R2dbcDialect, Object...)
orR2dbcCustomConversions(StoreConversions, Collection)
directly to consider dialect-native simple types. UseCustomConversions.StoreConversions.NONE
to omit store-specific converters.Create a newR2dbcCustomConversions
instance registering the given converters.- Parameters:
converters
- must not be null.
-
R2dbcCustomConversions
public R2dbcCustomConversions(CustomConversions.StoreConversions storeConversions, Collection<?> converters) Create a newR2dbcCustomConversions
instance registering the given converters.- Parameters:
storeConversions
- must not be null.converters
- must not be null.
-
-
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
-
of(R2dbcDialect, Object...)
orR2dbcCustomConversions(StoreConversions, Collection)
directly to consider dialect-native simple types.