# ResultRow

class ResultRow

A row of data representing a single record retrieved from a database result set.

## Constructors

ResultRow
Link copied to clipboard
constructor(fieldIndex: Map<Expression<*>, Int>, data: Array<Any?> = arrayOfNulls<Any?>(fieldIndex.size))

Creates a ResultRow for fieldIndex, with values stored in data.

## Types

Companion
Link copied to clipboard
object Companion

## Properties

fieldIndex
Link copied to clipboard
val fieldIndex: Map<Expression<*>, Int>

Mapping of the expressions stored on this row to their index positions.

## Functions

get
Link copied to clipboard
operator fun <T> get(expression: Expression<T>): T

Retrieves the value of a given expression on this row.

getOrNull
Link copied to clipboard
fun <T> getOrNull(expression: Expression<T>): T?

Retrieves the value of a given expression on this row. Returns null in the cases an exception would be thrown in get.

hasValue
Link copied to clipboard
fun <T> hasValue(expression: Expression<T>): Boolean

Whether the given expression has been initialized with a value on this row.

set
Link copied to clipboard
operator fun <T> set(expression: Expression<out T>, value: T)

Sets the value of a given expression on this row.

toString
Link copied to clipboard
open override fun toString(): String