StepHandle

class StepHandle<T>

Type-safe, unique identifier for a step in a transaction.

Parameters

T

The expected result type of the step this handle refers to. For example, Int for a single value, List<Map<String, Any?>> for a list of rows.

Constructors

Link copied to clipboard
internal constructor()

Functions

Link copied to clipboard

Fetches an entire column from a result that is a list of scalars. You must specify the expected type of the elements in the column.

Fetches values from a given column from a result that is a list of rows. You must specify the expected type of the elements in the column.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Creates a reference to a scalar value when the step returns a single value. The type of the value is inferred from the handle's type parameter T.

fun <V> field(columnName: String, rowIndex: Int = 0): TransactionValue.FromStep.Field<V>

Creates a reference to a value in a specific column. You must specify the expected type of the value.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Creates a reference to an entire row as Map<String, Any?>. The return type is fixed to TransactionValue<Map<String, Any?>>.

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