JdbcCursor

open class JdbcCursor(preparedStatement: PreparedStatement, resultSet: ResultSet, onClose: () -> Unit) : SqlCursor

Iterate each row in resultSet and map the columns to Kotlin classes by calling getString, getLong etc. Use next to retrieve the next row and close to close the connection.

Constructors

JdbcCursor
Link copied to clipboard
fun JdbcCursor(preparedStatement: PreparedStatement, resultSet: ResultSet, onClose: () -> Unit)

Functions

close
Link copied to clipboard
open override fun close()
getBytes
Link copied to clipboard
open override fun getBytes(index: Int): ByteArray?
getDouble
Link copied to clipboard
open override fun getDouble(index: Int): Double?
getLong
Link copied to clipboard
open override fun getLong(index: Int): Long?
getString
Link copied to clipboard
open override fun getString(index: Int): String?
next
Link copied to clipboard
open override fun next(): Boolean