api-docs / org.ktorm.database / CachedRowSet
CachedRowSet
open class CachedRowSet : ResultSet
(source code)Special implementation of ResultSet, used to hold the query results for Ktorm.
Different from normal result sets, this class is available offline. It’s connection independent, it remains
available after the connection closed, and it’s not necessary to be closed after being used. To create an
instance of it, we can use the constructor. This constructor creates a CachedRowSet instance with all data
being retrieved from the result set into memory, so we just need to wait for GC to collect them after they
are not useful.
statement.executeQuery().use { rs ->
CachedRowSet(rs)
}
Since
2.7
Constructors
Name | Summary |
---|---|
CachedRowSet(rs: ResultSet) Special implementation of ResultSet, used to hold the query results for Ktorm. |
Functions
Name | Summary |
---|---|
open fun afterLast(): Unit | |
open fun beforeFirst(): Unit | |
open fun | |
open fun clearWarnings(): Unit | |
open fun close(): Unit | |
open fun | |
open fun first(): Boolean | |
open fun getAsciiStream(columnIndex: Int): InputStream? open fun getAsciiStream(columnLabel: String): InputStream? | |
open fun open fun open fun getBigDecimal(columnIndex: Int): BigDecimal? open fun getBigDecimal(columnLabel: String): BigDecimal? | |
open fun getBinaryStream(columnIndex: Int): InputStream? open fun getBinaryStream(columnLabel: String): InputStream? | |
open fun getConcurrency(): Int | |
open fun | |
open fun getFetchDirection(): Int | |
open fun getFetchSize(): Int | |
open fun getHoldability(): Int | |
Retrieve the value of the designated column in the current row of this row set object | |
Retrieve the value of the designated column in the current row of this row set object | |
fun getLocalDateTime(columnIndex: Int): LocalDateTime? fun getLocalDateTime(columnLabel: String): LocalDateTime? Retrieve the value of the designated column in the current row of this row set object | |
Retrieve the value of the designated column in the current row of this row set object | |
open fun getMetaData(): ResultSetMetaData | |
open fun getRow(): Int | |
open fun getStatement(): Statement? | |
open fun getType(): Int | |
open fun open fun | |
open fun getWarnings(): SQLWarning? | |
open fun | |
open fun isAfterLast(): Boolean | |
open fun isBeforeFirst(): Boolean | |
open fun isClosed(): Boolean | |
open fun isFirst(): Boolean | |
open fun isLast(): Boolean | |
open fun last(): Boolean | |
open fun | |
open fun | |
open fun next(): Boolean | |
open fun previous(): Boolean | |
open fun | |
open fun | |
open fun | |
open fun | |
fun size(): Int Return the number of rows in this row set. | |
open fun open fun open fun open fun open fun open fun | |
open fun open fun | |
open fun open fun open fun open fun open fun open fun | |
open fun open fun open fun open fun | |
open fun open fun | |
open fun | |
open fun wasNull(): Boolean |
Extension Functions
Name | Summary |
---|---|
infix fun <T : Any> T.eq( Equal operator, translated to | |
Return an iterator over the rows of this ResultSet. | |
infix fun <T : Any> T.neq( Not-equal operator, translated to | |
infix fun <T : Any> T.notEq( Not-equal operator, translated to | |
fun <T : AutoCloseable?, R> T.use(block: (T) -> R): R Execute the given block function on this resource and then close it down correctly whether an exception |
Inheritors
Name | Summary |
---|---|
class QueryRowSet : CachedRowSet Special implementation of ResultSet, used to hold the Query results for Ktorm. |