Class BasicJdbcConverter
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
,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
MappingRelationalConverter.AggregatePathValueProvider, MappingRelationalConverter.ConversionContext, MappingRelationalConverter.DefaultConversionContext, MappingRelationalConverter.DocumentValueProvider, MappingRelationalConverter.ProjectingConversionContext, MappingRelationalConverter.RelationalPropertyValueProvider
-
Constructor Summary
ConstructorsConstructorDescriptionBasicJdbcConverter
(RelationalMappingContext context, RelationResolver relationResolver) Deprecated.Creates a newBasicJdbcConverter
givenMappingContext
and ano-op type factory
throwingUnsupportedOperationException
on type creation.BasicJdbcConverter
(RelationalMappingContext context, RelationResolver relationResolver, CustomConversions conversions, JdbcTypeFactory typeFactory) Deprecated.Creates a newBasicJdbcConverter
givenMappingContext
.BasicJdbcConverter
(RelationalMappingContext context, RelationResolver relationResolver, CustomConversions conversions, JdbcTypeFactory typeFactory, IdentifierProcessing identifierProcessing) Deprecated.Creates a newBasicJdbcConverter
givenMappingContext
. -
Method Summary
Methods inherited from class org.springframework.data.jdbc.core.convert.MappingJdbcConverter
getColumnType, getTargetSqlType, newValueProvider, readAndResolve, readValue, writeJdbcValue, writeValue
Methods 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, setApplicationContext
Methods inherited from class org.springframework.data.relational.core.conversion.AbstractRelationalConverter
getConversions, getConversionService, getEntityInstantiators, getMappingContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.springframework.data.jdbc.core.convert.JdbcConverter
getMappingContext, mapRow, mapRow, readAndResolve, readAndResolve, writeJdbcValue
Methods inherited from interface org.springframework.data.relational.core.conversion.RelationalConverter
createInstance, getConversionService, getEntityInstantiators, getPropertyAccessor, introspectProjection, project, read
-
Constructor Details
-
BasicJdbcConverter
Deprecated.Creates a newBasicJdbcConverter
givenMappingContext
and ano-op type factory
throwingUnsupportedOperationException
on 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(RelationalMappingContext context, RelationResolver relationResolver, CustomConversions conversions, JdbcTypeFactory typeFactory) Deprecated.Creates a newBasicJdbcConverter
givenMappingContext
.- 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(RelationalMappingContext context, RelationResolver relationResolver, CustomConversions conversions, JdbcTypeFactory typeFactory, IdentifierProcessing identifierProcessing) Deprecated.Creates a newBasicJdbcConverter
givenMappingContext
.- 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
-
MappingJdbcConverter
instead as the naming suggests a limited scope of functionality.