getObject

abstract fun getObject(index: Int): Any?

Retrieves an object from the current data row at the specified index position.

Return

The object at the specified index

Parameters

index

The first column is at position one, the second at position two, and onwards.


abstract fun getObject(name: String): Any?

Retrieves an object from the current data row with the specified column name.

Return

The object in the specified column

Parameters

name

The column name


abstract fun <T> getObject(index: Int, type: Class<T>): T?

Retrieves an object from the current data row at the specified index position, and converts the stored SQL type to the requested type, if the conversion is supported.

Return

The object converted to the specified type

Parameters

index

The first column is at position one, the second at position two, and onwards.

type

The class representing the target type

Type Parameters

T

The target type for conversion


abstract fun <T> getObject(name: String, type: Class<T>): T?

Retrieves an object from the current data row with the specified column name, and converts the stored SQL type to the requested type, if the conversion is supported.

Return

The object converted to the specified type

Parameters

name

The column name

type

The class representing the target type

Type Parameters

T

The target type for conversion


open fun <T> getObject(index: Int, type: Class<T>?, columnType: IColumnType<*>): T?

Retrieves an object from the current data row at the specified index position, and converts the stored SQL type to the requested type, if the conversion is supported, using an additional column type hint.

This method provides additional type information through the columnType parameter, which can be used for more precise type conversion.

Return

The object converted to the specified type

Parameters

index

The first column is at position one, the second at position two, and onwards.

type

The class representing the target type

columnType

Additional type information for the column (currently unused in default implementation)

Type Parameters

T

The target type for conversion


open fun <T> getObject(name: String, type: Class<T>, columnType: IColumnType<*>): T?

Retrieves an object from the current data row with the specified column name, and converts the stored SQL type to the requested type, if the conversion is supported, using an additional column type hint.

This method provides additional type information through the columnType parameter, which can be used for more precise type conversion.

Return

The object converted to the specified type

Parameters

name

The column name

type

The class representing the target type

columnType

Additional type information for the column (currently unused in default implementation)

Type Parameters

T

The target type for conversion