public class OdbcResultSet implements ResultSet:
ODBC result set backed by a native ODBC statement cursor.
import klyn.databases.sql
# rows = DriverManager.connect("odbc://app").statement().executeQuery("select id, name from users")
# while rows.next():
# print(rows.getInt("id"), rows.getString("name"))| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | afterLastafterLast as Boolean: |
True after the last row. |
| public readonly property | beforeFirstbeforeFirst as Boolean: |
True before the first row. |
| public readonly property | closedclosed as Boolean: |
True after the cursor has been closed. |
| public readonly property | concurrencyconcurrency as ResultSetConcurrency: |
Result-set concurrency mode. |
| public property | fetchDirectionfetchDirection as FetchDirection: |
Preferred fetch direction. |
| public property | fetchSizefetchSize as Int: |
Preferred fetch size. |
| public readonly property | holdabilityholdability as ResultSetHoldability: |
Result-set holdability mode. |
| public readonly property | lastReadWasNulllastReadWasNull as Boolean: |
True when the last read returned SQL NULL. |
| public readonly property | metadatametadata as ResultSetMetaData: |
Result-set metadata. |
| public readonly property | resultSetTyperesultSetType as ResultSetType: |
Cursor scrollability mode. |
| public readonly property | rowNumberrowNumber as Int: |
Current 1-based row number. |
| public readonly property | statementstatement as Statement: |
Parent statement. |
| public readonly property | warningwarning as SQLWarning: |
Warning chain. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | absoluteabsolute(rowNumber as Int) as Boolean throws SQLException: |
Moves to an absolute row number. |
| public | clearWarningsclearWarnings() as Void: |
Clears the warning chain. |
| public override | closeclose() as Void: |
Closes the cursor. |
| public | firstfirst() as Boolean throws SQLException: |
Moves to the first row. |
| public | getBooleangetBoolean(column as Object) as Boolean throws SQLException: |
Reads one column as `Boolean`. |
| public | getDateTimegetDateTime(column as Object) as DateTime throws SQLException: |
Reads one column as `DateTime`. |
| public | getDoublegetDouble(column as Object) as Double throws SQLException: |
Reads one column as `Double`. |
| public | getIntgetInt(column as Object) as Int throws SQLException: |
Reads one column as `Int`. |
| public | getLonggetLong(column as Object) as Long throws SQLException: |
Reads one column as `Long`. |
| public | getObjectgetObject(column as Object) as Object throws SQLException: |
Reads one column as an object. |
| public | getStringgetString(column as Object) as String throws SQLException: |
Reads one column as text. |
| public | lastlast() as Boolean throws SQLException: |
Moves to the last row. |
| public | moveAfterLastmoveAfterLast() as Void throws SQLException: |
Moves after the last row. |
| public | moveBeforeFirstmoveBeforeFirst() as Void throws SQLException: |
Moves before the first row. |
| public | nextnext() as Boolean throws SQLException: |
Moves to the next row. |
| public | previousprevious() as Boolean throws SQLException: |
Moves to the previous row. |
| public | relativerelative(offset as Int) as Boolean throws SQLException: |
Moves relative to the current row. |
| public | wasNullwasNull() as Boolean throws SQLException: |
Returns true when the last typed read returned SQL NULL. |