Class DefaultJdbcTypeFactory
java.lang.Object
org.springframework.data.jdbc.core.convert.DefaultJdbcTypeFactory
- All Implemented Interfaces:
JdbcTypeFactory
A
JdbcTypeFactory that performs the conversion by utilizing
JdbcOperations.execute(ConnectionCallback).- Since:
- 1.1
- Author:
- Jens Schauder, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultJdbcTypeFactory(JdbcOperations operations) Creates a newDefaultJdbcTypeFactory.DefaultJdbcTypeFactory(JdbcOperations operations, JdbcArrayColumns arrayColumns) Deprecated, for removal: This API element is subject to removal in a future version.DefaultJdbcTypeFactory(JdbcOperations operations, JdbcArrayColumns arrayColumns) Creates a newDefaultJdbcTypeFactory. -
Method Summary
Modifier and TypeMethodDescriptioncreateArray(Object[] value) Converts the provided value in aArrayinstance.
-
Constructor Details
-
DefaultJdbcTypeFactory
Creates a newDefaultJdbcTypeFactory.- Parameters:
operations- must not be null.
-
DefaultJdbcTypeFactory
@Deprecated(forRemoval=true, since="3.5") public DefaultJdbcTypeFactory(JdbcOperations operations, JdbcArrayColumns arrayColumns) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newDefaultJdbcTypeFactory.- Parameters:
operations- must not be null.- Since:
- 2.3
-
DefaultJdbcTypeFactory
Creates a newDefaultJdbcTypeFactory.- Parameters:
operations- must not be null.- Since:
- 3.5
-
-
Method Details
-
createArray
Description copied from interface:JdbcTypeFactoryConverts the provided value in aArrayinstance.- Specified by:
createArrayin interfaceJdbcTypeFactory- Parameters:
value- the value to be converted. Must not be null.- Returns:
- an
Array. Guaranteed to be not null.
-
DefaultJdbcTypeFactory(JdbcOperations, org.springframework.data.jdbc.core.dialect.JdbcArrayColumns)instead.