OdbcResultSetMetaData
classin packageklyn.databases.sql.odbc
public class OdbcResultSetMetaData implements ResultSetMetaData
OdbcResultSetMetaData
All Implemented Interfaces: ResultSetMetaData

ODBC result-set metadata backed by the native ODBC descriptor.

import klyn.databases.sql

# rows = statement.executeQuery("select id, name from users")
# metadata = rows.metadata
# print(metadata.columnName(1))
Properties
Modifier and Type Member Description
public readonly property columnCount
columnCount as Int
Number of columns in the result set.
Methods
Modifier and Type Member Description
public autoIncrement
autoIncrement(index as Int) as Boolean throws SQLException
Returns true for auto-increment columns when this information is known.
public caseSensitive
caseSensitive(index as Int) as Boolean throws SQLException
Returns true when textual comparison is case-sensitive.
public catalogName
catalogName(index as Int) as String throws SQLException
Returns the catalog name when available.
public columnClassName
columnClassName(index as Int) as String throws SQLException
Returns the Klyn value type used by the ODBC result-set reader.
public columnLabel
columnLabel(index as Int) as String throws SQLException
Returns the display label for a column.
public columnName
columnName(index as Int) as String throws SQLException
Returns the source column name.
public columnType
columnType(index as Int) as Int throws SQLException
Returns the SQL type code for a column.
public columnTypeName
columnTypeName(index as Int) as String throws SQLException
Returns the SQL type name for a column.
public definitelyWritable
definitelyWritable(index as Int) as Boolean throws SQLException
Returns true when writes are guaranteed to be accepted by the driver.
public displaySize
displaySize(index as Int) as Int throws SQLException
Returns the display size for a column.
public nullability
nullability(index as Int) as Nullability throws SQLException
Returns the nullability contract for a column.
public precision
precision(index as Int) as Int throws SQLException
Returns numeric precision for a column.
public readOnly
readOnly(index as Int) as Boolean throws SQLException
Returns true for read-only columns.
public scale
scale(index as Int) as Int throws SQLException
Returns numeric scale for a column.
public schemaName
schemaName(index as Int) as String throws SQLException
Returns the schema name when available.
public searchable
searchable(index as Int) as Boolean throws SQLException
Returns true when the column can be searched in predicates.
public signed
signed(index as Int) as Boolean throws SQLException
Returns true when the column is signed numeric.
public tableName
tableName(index as Int) as String throws SQLException
Returns the table name when available.
public writable
writable(index as Int) as Boolean throws SQLException
Returns true for writable columns.