public class SqlResultSetReader extends Object
Constructor | Description |
---|---|
SqlResultSetReader() |
Modifier and Type | Method | Description |
---|---|---|
protected static void |
appendToColumn(Column<?> column,
ResultSet resultSet,
Object value) |
|
protected static ColumnType |
getColumnType(int columnType,
int scale,
int precision) |
|
static void |
mapJdbcTypeToColumnType(Integer jdbc,
ColumnType columnType) |
Change or add a mapping between the given Jdbc type and column type.
|
static Table |
read(ResultSet resultSet) |
Returns a new table with the given tableName, constructed from the given result set
|
public static void mapJdbcTypeToColumnType(Integer jdbc, ColumnType columnType)
jdbc
- an int representing a legal value from java.sql.types;columnType
- a tablesaw column typepublic static Table read(ResultSet resultSet) throws SQLException
SQLException
- if there is a problem detected in the databaseprotected static void appendToColumn(Column<?> column, ResultSet resultSet, Object value) throws SQLException
SQLException
protected static ColumnType getColumnType(int columnType, int scale, int precision)
Copyright © 2022. All rights reserved.