public final class JdbcUtil extends Object
Modifier and Type | Field and Description |
---|---|
static SQLType |
TYPE_UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static SQLType |
jdbcTypeFor(Class<?> type)
Deprecated.
Use
targetSqlTypeFor(Class) instead. |
static SQLType |
jdbcTypeFor(int sqlType)
Deprecated.
This is now a noop
|
static int |
sqlTypeFor(Class<?> type)
Deprecated.
use
targetSqlTypeFor(Class) instead. |
static int |
sqlTypeFor(SQLType jdbcType)
Deprecated.
there is no replacement.
|
static SQLType |
targetSqlTypeFor(Class<?> type)
Returns the
SQLType value suitable for passing a value of the provided type to JDBC driver. |
public static final SQLType TYPE_UNKNOWN
@Deprecated public static int sqlTypeFor(Class<?> type)
targetSqlTypeFor(Class)
instead.Types
value suitable for passing a value of the provided type to a
PreparedStatement
.type
- The type of value to be bound to a PreparedStatement
.Types
or JdbcUtils.TYPE_UNKNOWN
.public static SQLType targetSqlTypeFor(Class<?> type)
SQLType
value suitable for passing a value of the provided type to JDBC driver.type
- The type of value to be bound to a PreparedStatement
.SQLType
or TYPE_UNKNOWN
.@Deprecated public static int sqlTypeFor(@Nullable SQLType jdbcType)
jdbcType
- value to be converted. May be null.Types
or JdbcUtils.TYPE_UNKNOWN
.@Nullable @Deprecated public static SQLType jdbcTypeFor(int sqlType)
Types
into a JDBCType
instance or null if the value is
JdbcUtils.TYPE_UNKNOWN
sqlType
- One of the values defined in Types
or JdbcUtils.TYPE_UNKNOWN
.JDBCType
instance or null.@Deprecated public static SQLType jdbcTypeFor(Class<?> type)
targetSqlTypeFor(Class)
instead.JDBCType
suitable for passing a value of the provided type to a
PreparedStatement
.type
- The type of value to be bound to a PreparedStatement
.JDBCType
instance or null.Copyright © 2017–2022 Pivotal Software, Inc.. All rights reserved.