Package org.apache.calcite.util
Interface JdbcType<T extends @Nullable Object>
- Type Parameters:
T- Value type
public interface JdbcType<T extends @Nullable Object>
Maps Java types to their corresponding getters in JDBC.
In future we could add more types,
and add more methods
(e.g. PreparedStatement.setInt(int, int)).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JdbcType<BigDecimal>static final JdbcType<@Nullable BigDecimal> -
Method Summary
-
Field Details
-
BOOLEAN
-
BOOLEAN_NULLABLE
-
BIG_DECIMAL
-
BIG_DECIMAL_NULLABLE
-
DOUBLE
-
DOUBLE_NULLABLE
-
INTEGER
-
INTEGER_NULLABLE
-
STRING
-
STRING_NULLABLE
-
-
Method Details
-
get
Returns the value of columncolumnfrom a JDBC result set.For example,
INTEGER.get(i, resultSet)callsResultSet.getInt(int).- Throws:
SQLException
-