Module spring.data.jdbc
Class JdbcCustomConversions
java.lang.Object
org.springframework.data.convert.CustomConversions
org.springframework.data.jdbc.core.convert.JdbcCustomConversions
Value object to capture custom conversion.
JdbcCustomConversions also act as factory for
SimpleTypeHolder- Author:
- Mark Paluch, Jens Schauder, Christoph Strobl
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.convert.CustomConversions
CustomConversions.ConverterConfiguration, CustomConversions.ConverterRegistrationIntent, CustomConversions.StoreConversions -
Constructor Summary
ConstructorsConstructorDescriptionCreates an emptyJdbcCustomConversionsobject.JdbcCustomConversions(List<?> converters) Create a newJdbcCustomConversionsinstance registering the given converters and the default store converters.JdbcCustomConversions(CustomConversions.ConverterConfiguration converterConfiguration) Create a newJdbcCustomConversionsinstance givenCustomConversions.ConverterConfiguration.JdbcCustomConversions(CustomConversions.StoreConversions storeConversions, List<?> userConverters) Create a newJdbcCustomConversionsinstance registering the given converters and the default store converters. -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<Object>Obtain a read only copy of default store converters.Methods inherited from class org.springframework.data.convert.CustomConversions
getCustomWriteTarget, getCustomWriteTarget, getPropertyValueConversions, getSimpleTypeHolder, hasCustomReadTarget, hasCustomWriteTarget, hasCustomWriteTarget, hasValueConverter, isSimpleType, registerConvertersIn
-
Constructor Details
-
JdbcCustomConversions
public JdbcCustomConversions()Creates an emptyJdbcCustomConversionsobject. -
JdbcCustomConversions
Create a newJdbcCustomConversionsinstance registering the given converters and the default store converters.- Parameters:
converters- must not be null.
-
JdbcCustomConversions
public JdbcCustomConversions(CustomConversions.StoreConversions storeConversions, List<?> userConverters) Create a newJdbcCustomConversionsinstance registering the given converters and the default store converters.- Since:
- 2.3
-
JdbcCustomConversions
Create a newJdbcCustomConversionsinstance givenCustomConversions.ConverterConfiguration.- Parameters:
converterConfiguration- must not be null.- Since:
- 2.2
-
-
Method Details
-
storeConverters
Obtain a read only copy of default store converters.- Returns:
- never null.
- Since:
- 2.3
-