Row

class Row

Functions

Link copied to clipboard
fun <E : Any> getArray(columnLabel: String, elementType: KClass<E>): List<E>

Feltet elementType må være av en type JDBC returnerer. Example:

Link copied to clipboard
fun getBigDecimal(columnLabel: String): BigDecimal
Link copied to clipboard
Link copied to clipboard
fun getBoolean(columnLabel: String): Boolean
Link copied to clipboard
fun getBooleanOrNull(columnLabel: String): Boolean?
Link copied to clipboard
fun getBytes(columnLabel: String): ByteArray
Link copied to clipboard
fun getBytesOrNull(columnLabel: String): ByteArray?
Link copied to clipboard
fun getDouble(columnLabel: String): Double
Link copied to clipboard
fun getDoubleOrNull(columnLabel: String): Double?
Link copied to clipboard
inline fun <T : Enum<T>> getEnum(columnLabel: String): T
Link copied to clipboard
inline fun <T : E?, E : Enum<E>> getEnumOrNull(columnLabel: String): E?

Siden enumValueOf ikke kan forholde seg til nullable typer, og compileren ikke kan forstå at typen ikke er null når databaseverdien er null, så innføres T for å gi compileren hint om at returtypen kan være null

Link copied to clipboard
fun getInstant(columnLabel: String): Instant
Link copied to clipboard
fun getInstantOrNull(columnLabel: String): Instant?
Link copied to clipboard
fun getInt(columnLabel: String): Int
Link copied to clipboard
fun getIntOrNull(columnLabel: String): Int?
Link copied to clipboard
fun getLocalDate(columnLabel: String): LocalDate
Link copied to clipboard
fun getLocalDateOrNull(columnLabel: String): LocalDate?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getLong(columnLabel: String): Long
Link copied to clipboard
fun getLongOrNull(columnLabel: String): Long?
Link copied to clipboard
fun getPeriode(columnLabel: String): Periode
Link copied to clipboard
fun getPeriodeOrNull(columnLabel: String): Periode?
Link copied to clipboard
fun getProperties(columnLabel: String): Properties
Link copied to clipboard
Link copied to clipboard
fun getString(columnLabel: String): String
Link copied to clipboard
fun getStringOrNull(columnLabel: String): String?
Link copied to clipboard
fun getUUID(columnLabel: String): UUID
Link copied to clipboard
fun getUUIDOrNull(columnLabel: String): UUID?