klyn.data.sql.internal.SQLValueReader.readTypeName
method
public static readTypeName(rows as ResultSet, index as Int, typeName as String) as Object:
Description

Reads one SQL value using the exact static type name carried by QIR.

Parameters
ParameterDescription
rowsResult set positioned on the row to read.
indexOne-based SQL column index.
typeNameFully qualified static Klyn type name emitted in QIR.
Returns

The converted value, or null for an SQL NULL.

Throws
  • EntityMappingException if the type is unknown or unsupported.
Example
value = SQLValueReader.readTypeName(rows, 1, "klyn.Int")