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

Parameter | Description
--- | ---
`rows` | Result set positioned on the row to read.
`index` | One-based SQL column index.
`typeName` | Fully 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")