public class JdbcFieldInfo extends Object
ArrowType.
Currently, this is:
Types type.Types.DECIMAL and Types.NUMERIC types).Types.DECIMAL and Types.NUMERIC types).| Constructor and Description |
|---|
JdbcFieldInfo(int jdbcType)
Builds a
JdbcFieldInfo using only the Types type. |
JdbcFieldInfo(int jdbcType,
int precision,
int scale)
Builds a
JdbcFieldInfo from the Types type, precision, and scale. |
JdbcFieldInfo(int jdbcType,
int nullability,
int precision,
int scale)
Builds a
JdbcFieldInfo from the Types type, nullability, precision, and scale. |
JdbcFieldInfo(ResultSetMetaData rsmd,
int column)
Builds a
JdbcFieldInfo from the corresponding ResultSetMetaData column. |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
The column index for query column.
|
int |
getJdbcType()
The
Types type. |
int |
getPrecision()
The numeric precision, for
Types.NUMERIC and Types.DECIMAL types. |
int |
getScale()
The numeric scale, for
Types.NUMERIC and Types.DECIMAL types. |
int |
isNullable()
The nullability.
|
public JdbcFieldInfo(int jdbcType)
JdbcFieldInfo using only the Types type. Do not use this constructor
if the field type is Types.DECIMAL or Types.NUMERIC; the precision and
scale will be set to 0.jdbcType - The Types type.IllegalArgumentException - if jdbcType is Types.DECIMAL or Types.NUMERIC.public JdbcFieldInfo(int jdbcType,
int precision,
int scale)
JdbcFieldInfo from the Types type, precision, and scale.
Use this constructor for Types.DECIMAL and Types.NUMERIC types.jdbcType - The Types type.precision - The field's numeric precision.scale - The field's numeric scale.public JdbcFieldInfo(int jdbcType,
int nullability,
int precision,
int scale)
JdbcFieldInfo from the Types type, nullability, precision, and scale.jdbcType - The Types type.nullability - The nullability. Must be one of ResultSetMetaData.columnNoNulls,
ResultSetMetaData.columnNullable, or ResultSetMetaData.columnNullableUnknown.precision - The field's numeric precision.scale - The field's numeric scale.public JdbcFieldInfo(ResultSetMetaData rsmd, int column) throws SQLException
JdbcFieldInfo from the corresponding ResultSetMetaData column.rsmd - The ResultSetMetaData to get the field information from.column - The column to get the field information for (on a 1-based index).SQLException - If the column information cannot be retrieved.NullPointerException - if rsmd is null.IllegalArgumentException - if column is out of bounds.public int getJdbcType()
Types type.public int isNullable()
public int getPrecision()
Types.NUMERIC and Types.DECIMAL types.public int getScale()
Types.NUMERIC and Types.DECIMAL types.public int getColumn()
Copyright © 2023 The Apache Software Foundation. All rights reserved.