Class JdbcUtil
java.lang.Object
org.springframework.data.jdbc.support.JdbcUtil
Contains methods dealing with the quirks of JDBC, independent of any Entity, Aggregate or Repository abstraction.
- Author:
- Jens Schauder, Thomas Lang
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SQLType
targetSqlTypeFor
(Class<?> type) Returns theSQLType
value suitable for passing a value of the provided type to JDBC driver.
-
Field Details
-
TYPE_UNKNOWN
-
-
Method Details
-
targetSqlTypeFor
Returns theSQLType
value suitable for passing a value of the provided type to JDBC driver.- Parameters:
type
- The type of value to be bound to aPreparedStatement
.- Returns:
- a matching
SQLType
orTYPE_UNKNOWN
.
-