public interface Cursor extends AutoCloseable
ResultSet
, but is simpler to implement.Modifier and Type | Interface and Description |
---|---|
static interface |
Cursor.Accessor
Accessor of a column value.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this cursor and releases resources.
|
List<Cursor.Accessor> |
createAccessors(List<ColumnMetaData> types,
Calendar localCalendar,
ArrayImpl.Factory factory)
Creates a list of accessors, one per column.
|
boolean |
next()
Moves to the next row.
|
boolean |
wasNull()
Returns whether the last value returned was null.
|
List<Cursor.Accessor> createAccessors(List<ColumnMetaData> types, Calendar localCalendar, ArrayImpl.Factory factory)
types
- List of column types, per Types
.localCalendar
- Calendar in local time zonefactory
- Factory that creates sub-ResultSets when neededboolean next() throws SQLException
SQLException
- on database errorvoid close()
close
in interface AutoCloseable
boolean wasNull() throws SQLException
SQLException
- on database errorCopyright © 2012-2024 Apache Software Foundation. All Rights Reserved.