public final class JdbcUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static JDBCType |
jdbcTypeFor(Class<?> type)
Returns the
JDBCType suitable for passing a value of the provided type to a
PreparedStatement. |
static JDBCType |
jdbcTypeFor(int sqlType)
Converts a value defined in
Types into a JDBCType instance or null if the value is
JdbcUtils.TYPE_UNKNOWN |
static int |
sqlTypeFor(Class<?> type)
Returns the
Types value suitable for passing a value of the provided type to a
PreparedStatement. |
static int |
sqlTypeFor(JDBCType jdbcType)
|
public static int sqlTypeFor(Class<?> type)
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 int sqlTypeFor(@Nullable JDBCType jdbcType)
jdbcType - value to be converted. May be null.Types or JdbcUtils.TYPE_UNKNOWN.@Nullable public static JDBCType jdbcTypeFor(int sqlType)
Types into a JDBCType instance or null if the value is
JdbcUtils.TYPE_UNKNOWNsqlType - One of the values defined in Types or JdbcUtils.TYPE_UNKNOWN.JDBCType instance or null.@Nullable public static JDBCType jdbcTypeFor(Class<?> type)
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–2021 Pivotal Software, Inc.. All rights reserved.