T - Value typepublic interface JdbcType<T>
In future we could add more types,
and add more methods
(e.g. PreparedStatement.setInt(int, int)).
| Modifier and Type | Field and Description |
|---|---|
static JdbcType<BigDecimal> |
BIG_DECIMAL |
static JdbcType<BigDecimal> |
BIG_DECIMAL_NULLABLE |
static JdbcType<Boolean> |
BOOLEAN |
static JdbcType<Boolean> |
BOOLEAN_NULLABLE |
static JdbcType<Double> |
DOUBLE |
static JdbcType<Double> |
DOUBLE_NULLABLE |
static JdbcType<Integer> |
INTEGER |
static JdbcType<Integer> |
INTEGER_NULLABLE |
static JdbcType<String> |
STRING |
static JdbcType<String> |
STRING_NULLABLE |
| Modifier and Type | Method and Description |
|---|---|
T |
get(int column,
ResultSet resultSet)
Returns the value of column
column from a JDBC result set. |
static final JdbcType<BigDecimal> BIG_DECIMAL
static final JdbcType<BigDecimal> BIG_DECIMAL_NULLABLE
T get(int column, ResultSet resultSet) throws SQLException
column from a JDBC result set.
For example, INTEGER.get(i, resultSet) calls
ResultSet.getInt(int).
SQLExceptionCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.