java.lang.Object
org.springframework.data.relational.core.conversion.AbstractRelationalConverter
org.springframework.data.relational.core.conversion.MappingRelationalConverter
org.springframework.data.jdbc.core.convert.MappingJdbcConverter
org.springframework.data.jdbc.core.convert.BasicJdbcConverter
- All Implemented Interfaces:
Aware,ApplicationContextAware,EnvironmentCapable,JdbcConverter,org.springframework.data.relational.core.conversion.RelationalConverter
Deprecated.
RelationalConverter that uses a MappingContext to apply conversion of relational values to property
values.
Conversion is configurable by providing a customized CustomConversions.
- Since:
- 1.1
- Author:
- Mark Paluch
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.relational.core.conversion.MappingRelationalConverter
org.springframework.data.relational.core.conversion.MappingRelationalConverter.AggregatePathValueProvider, org.springframework.data.relational.core.conversion.MappingRelationalConverter.ConversionContext, org.springframework.data.relational.core.conversion.MappingRelationalConverter.DefaultConversionContext, org.springframework.data.relational.core.conversion.MappingRelationalConverter.DocumentValueProvider, org.springframework.data.relational.core.conversion.MappingRelationalConverter.ProjectingConversionContext, org.springframework.data.relational.core.conversion.MappingRelationalConverter.RelationalPropertyValueProvider -
Constructor Summary
ConstructorsConstructorDescriptionBasicJdbcConverter(org.springframework.data.relational.core.mapping.RelationalMappingContext context, RelationResolver relationResolver) Deprecated.Creates a newBasicJdbcConvertergivenMappingContextand ano-op type factorythrowingUnsupportedOperationExceptionon type creation.BasicJdbcConverter(org.springframework.data.relational.core.mapping.RelationalMappingContext context, RelationResolver relationResolver, CustomConversions conversions, JdbcTypeFactory typeFactory) Deprecated.Creates a newBasicJdbcConvertergivenMappingContext.BasicJdbcConverter(org.springframework.data.relational.core.mapping.RelationalMappingContext context, RelationResolver relationResolver, CustomConversions conversions, JdbcTypeFactory typeFactory, org.springframework.data.relational.core.sql.IdentifierProcessing identifierProcessing) Deprecated.Creates a newBasicJdbcConvertergivenMappingContext. -
Method Summary
Methods inherited from class org.springframework.data.jdbc.core.convert.MappingJdbcConverter
getColumnType, getTargetSqlType, newValueProvider, readAndResolve, readValue, writeJdbcValue, writeValueMethods inherited from class org.springframework.data.relational.core.conversion.MappingRelationalConverter
createInstance, doReadProjection, getConversionContext, getEnvironment, getPotentiallyConvertedSimpleRead, getPropertyAccessor, introspectProjection, newProjectingConversionContext, project, read, read, readAggregate, readAggregate, readCollectionOrArray, readMap, setApplicationContextMethods inherited from class org.springframework.data.relational.core.conversion.AbstractRelationalConverter
getConversions, getConversionService, getEntityInstantiators, getMappingContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.springframework.data.jdbc.core.convert.JdbcConverter
getMappingContext, mapRow, mapRow, readAndResolve, readAndResolve, writeJdbcValueMethods inherited from interface org.springframework.data.relational.core.conversion.RelationalConverter
createInstance, getConversionService, getEntityInstantiators, getPropertyAccessor, introspectProjection, project, read
-
Constructor Details
-
BasicJdbcConverter
public BasicJdbcConverter(org.springframework.data.relational.core.mapping.RelationalMappingContext context, RelationResolver relationResolver) Deprecated.Creates a newBasicJdbcConvertergivenMappingContextand ano-op type factorythrowingUnsupportedOperationExceptionon type creation. UseBasicJdbcConverter(RelationalMappingContext, RelationResolver, CustomConversions, JdbcTypeFactory, IdentifierProcessing)(MappingContext, RelationResolver, JdbcTypeFactory)} to convert arrays and large objects into JDBC-specific types.- Parameters:
context- must not be null.relationResolver- used to fetch additional relations from the database. Must not be null.
-
BasicJdbcConverter
public BasicJdbcConverter(org.springframework.data.relational.core.mapping.RelationalMappingContext context, RelationResolver relationResolver, CustomConversions conversions, JdbcTypeFactory typeFactory) Deprecated.Creates a newBasicJdbcConvertergivenMappingContext.- Parameters:
context- must not be null.relationResolver- used to fetch additional relations from the database. Must not be null.typeFactory- must not be null- Since:
- 3.2
-
BasicJdbcConverter
public BasicJdbcConverter(org.springframework.data.relational.core.mapping.RelationalMappingContext context, RelationResolver relationResolver, CustomConversions conversions, JdbcTypeFactory typeFactory, org.springframework.data.relational.core.sql.IdentifierProcessing identifierProcessing) Deprecated.Creates a newBasicJdbcConvertergivenMappingContext.- Parameters:
context- must not be null.relationResolver- used to fetch additional relations from the database. Must not be null.typeFactory- must not be nullidentifierProcessing- must not be null- Since:
- 2.0
-
MappingJdbcConverterinstead as the naming suggests a limited scope of functionality.