Module spring.data.jdbc
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) 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
Creates a newDefaultJdbcTypeFactory.- Parameters:
operations- must not be null.- Since:
- 2.3
-
-
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.
-