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
ConstructorDescriptionDefaultJdbcTypeFactory
(JdbcOperations operations) Creates a newDefaultJdbcTypeFactory
.DefaultJdbcTypeFactory
(JdbcOperations operations, JdbcArrayColumns arrayColumns) Creates a newDefaultJdbcTypeFactory
. -
Method Summary
Modifier and TypeMethodDescriptioncreateArray
(Object[] value) Converts the provided value in aArray
instance.
-
Constructor Details
-
DefaultJdbcTypeFactory
Creates a newDefaultJdbcTypeFactory
.- Parameters:
operations
- must not be null.
-
DefaultJdbcTypeFactory
Creates a newDefaultJdbcTypeFactory
.- Parameters:
operations
- must not be null.- Since:
- 2.3
-
-
Method Details
-
createArray
Description copied from interface:JdbcTypeFactory
Converts the provided value in aArray
instance.- Specified by:
createArray
in interfaceJdbcTypeFactory
- Parameters:
value
- the value to be converted. Must not be null.- Returns:
- an
Array
. Guaranteed to be not null.
-