getValueFromResultSet

open fun <J> getValueFromResultSet(rs: ResultSet, columnIndex: Int, tableColumnMetadata: TableColumnMetadata, expectedJdbcType: KType): J

Extracts a value from the result set for the given column.

This method can be overridden for custom database types to change low-level reading logic.

The return value, of type J, must match the expectedJdbcType parameter exactly. This parameter is obtained from getExpectedJdbcType.

Return

the value extracted from the result set for the given column index

Parameters

rs

the ResultSet to read from

columnIndex

zero-based column index

tableColumnMetadata

all information we have about the column

expectedJdbcType

the type of the return value, J, obtained from getExpectedJdbcType

Type Parameters

J

the JDBC type, expectedJdbcType