A table of data representing a database result set, which is usually generated by executing a statement that queries the database.
TODO: Eventually replace with java.sql for cross-platform support
Attributes
- Companion
- object
- Source
- ResultSet.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Moves the cursor to the given row number in this ResultSet object.
Moves the cursor to the given row number in this ResultSet object.
If the row number is positive, the cursor moves to the given row number with respect to the beginning of the result set. The first row is row 1, the second is row 2, and so on.
If the given row number is negative, the cursor moves to an absolute row position with respect to the end of the result set. For example, calling the method absolute(-1) positions the cursor on the last row; calling the method absolute(-2) moves the cursor to the next-to-last row, and so on.
If the row number specified is zero, the cursor is moved to before the first row.
An attempt to position the cursor beyond the first/last row in the result set leaves the cursor before the first row or after the last row.
Note: Calling absolute(1) is the same as calling first(). Calling absolute(-1) is the same as calling last().
Value parameters
- row
-
the number of the row to which the cursor should move. A value of zero indicates that the cursor will be positioned before the first row; a positive number indicates the row number counting from the beginning of the result set; a negative number indicates the row number counting from the end of the result set
Attributes
- Returns
-
trueif the cursor is moved to a position in this - Source
- ResultSet.scala
Moves the cursor to the end of this ResultSet object, just after the last row. This method has no effect if the result set contains no rows.
Moves the cursor to the end of this ResultSet object, just after the last row. This method has no effect if the result set contains no rows.
Attributes
- Source
- ResultSet.scala
Moves the cursor to the front of this ResultSet object, just before the first row. This method has no effect if the result set contains no rows.
Moves the cursor to the front of this ResultSet object, just before the first row. This method has no effect if the result set contains no rows.
Attributes
- Source
- ResultSet.scala
Releases this ResultSet object's database and ldbc resources immediately instead of waiting for this to happen when it is automatically closed.
Releases this ResultSet object's database and ldbc resources immediately instead of waiting for this to happen when it is automatically closed.
The closing of a ResultSet object does not close the Blob, Clob or NClob objects created by the ResultSet. Blob, Clob or NClob objects remain valid for at least the duration of the transaction in which they are created, unless their free method is invoked.
When a ResultSet is closed, any ResultSetMetaData instances that were created by calling the getMetaData method remain accessible.
Note: A ResultSet object is automatically closed by the Statement object that generated it when that Statement object is closed, re-executed, or is used to retrieve the next result from a sequence of multiple results.
Calling the method close on a ResultSet object that is already closed is a no-op.
Attributes
- Source
- ResultSet.scala
Moves the cursor to the first row in this ResultSet object.
Moves the cursor to the first row in this ResultSet object.
Attributes
- Returns
-
trueif the cursor is on a valid row;falseif there are no rows in the result set - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a scala.math.BigDecimal with full precision.
Retrieves the value of the designated column in the current row of this ResultSet object as a scala.math.BigDecimal with full precision.
Value parameters
- columnIndex
-
the first column is 1, the second is 2, ...
Attributes
- Returns
-
the column value (full precision); if the value is SQL
null, the value returned isNonein the Scala programming language. - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a scala.math.BigDecimal with full precision.
Retrieves the value of the designated column in the current row of this ResultSet object as a scala.math.BigDecimal with full precision.
Value parameters
- columnLabel
-
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
Attributes
- Returns
-
the column value (full precision); if the value is SQL
NULL, the value returned isnullin the Scala programming language. - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a Boolean in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a Boolean in the Scala programming language.
If the designated column has a datatype of CHAR or VARCHAR and contains a "0" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT and contains a 0, a value of false is returned. If the designated column has a datatype of CHAR or VARCHAR and contains a "1" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT and contains a 1, a value of true is returned.
Value parameters
- columnIndex
-
the first column is 1, the second is 2, ...
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned isfalse - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a Boolean in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a Boolean in the Scala programming language.
If the designated column has a datatype of CHAR or VARCHAR and contains a "0" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT and contains a 0, a value of false is returned. If the designated column has a datatype of CHAR or VARCHAR and contains a "1" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT and contains a 1, a value of true is returned.
Value parameters
- columnLabel
-
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned isfalse - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a Byte in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a Byte in the Scala programming language.
Value parameters
- columnIndex
-
the first column is 1, the second is 2, ...
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned is0 - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a Byte in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a Byte in the Scala programming language.
Value parameters
- columnLabel
-
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned is0 - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a Byte array in the Scala programming language. The bytes represent the raw values returned by the driver.
Retrieves the value of the designated column in the current row of this ResultSet object as a Byte array in the Scala programming language. The bytes represent the raw values returned by the driver.
Value parameters
- columnIndex
-
the first column is 1, the second is 2, ...
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned isnull - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Scala programming language. The bytes represent the raw values returned by the driver.
Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Scala programming language. The bytes represent the raw values returned by the driver.
Value parameters
- columnLabel
-
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned isnull - Source
- ResultSet.scala
Retrieves the concurrency mode of this ResultSet object. The concurrency used is determined by the Statement object that created the result set.
Retrieves the concurrency mode of this ResultSet object. The concurrency used is determined by the Statement object that created the result set.
Attributes
- Returns
-
the concurrency type, either
ResultSet.CONCUR_READ_ONLYorResultSet.CONCUR_UPDATABLE - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a java.time.LocalDate object in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a java.time.LocalDate object in the Scala programming language.
Value parameters
- columnIndex
-
the first column is 1, the second is 2, ...
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned isnull - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a java.time.LocalDate object in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a java.time.LocalDate object in the Scala programming language.
Value parameters
- columnLabel
-
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned isnull - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a Double in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a Double in the Scala programming language.
Value parameters
- columnIndex
-
the first column is 1, the second is 2, ...
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned is0 - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a Double in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a Double in the Scala programming language.
Value parameters
- columnLabel
-
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned is0 - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a Float in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a Float in the Scala programming language.
Value parameters
- columnIndex
-
the first column is 1, the second is 2, ...
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned is0 - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a Float in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a Float in the Scala programming language.
Value parameters
- columnLabel
-
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned is0 - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as an Int in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as an Int in the Scala programming language.
Value parameters
- columnIndex
-
the first column is 1, the second is 2, ...
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned is0 - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as an Int in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as an Int in the Scala programming language.
Value parameters
- columnLabel
-
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned is0 - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a Long in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a Long in the Scala programming language.
Value parameters
- columnIndex
-
the first column is 1, the second is 2, ...
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned is0 - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a Long in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a Long in the Scala programming language.
Value parameters
- columnLabel
-
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned is0 - Source
- ResultSet.scala
Retrieves the number, types and properties of this ResultSet object's columns.
Retrieves the number, types and properties of this ResultSet object's columns.
Attributes
- Returns
-
the description of this
ResultSetobject's columns - Source
- ResultSet.scala
Retrieves the current row number. The first row is number 1, the second number 2, and so on.
Retrieves the current row number. The first row is number 1, the second number 2, and so on.
Note:Support for the getRow method is optional for ResultSets with a result set type of TYPE_FORWARD_ONLY
Attributes
- Returns
-
the current row number;
0if there is no current row - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a Short in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a Short in the Scala programming language.
Value parameters
- columnIndex
-
the first column is 1, the second is 2, ...
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned is0 - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a Short in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a Short in the Scala programming language.
Value parameters
- columnLabel
-
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned is0 - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Scala programming language.
Value parameters
- columnIndex
-
the first column is 1, the second is 2, ...
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned isnull - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Scala programming language.
Value parameters
- columnLabel
-
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned isnull - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a java.time.LocalTime object in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a java.time.LocalTime object in the Scala programming language.
Value parameters
- columnIndex
-
the first column is 1, the second is 2, ...
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned isnull - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a java.time.LocalTime object in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a java.time.LocalTime object in the Scala programming language.
Value parameters
- columnLabel
-
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned isnull - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a java.time.LocalDateTime object in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a java.time.LocalDateTime object in the Scala programming language.
Value parameters
- columnIndex
-
the first column is 1, the second is 2, ...
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned isnull - Source
- ResultSet.scala
Retrieves the value of the designated column in the current row of this ResultSet object as a java.time.LocalDateTime object in the Scala programming language.
Retrieves the value of the designated column in the current row of this ResultSet object as a java.time.LocalDateTime object in the Scala programming language.
Value parameters
- columnLabel
-
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
Attributes
- Returns
-
the column value; if the value is SQL
NULL, the value returned isnull - Source
- ResultSet.scala
Retrieves the type of this ResultSet object. The type is determined by the Statement object that created the result set.
Retrieves the type of this ResultSet object. The type is determined by the Statement object that created the result set.
Attributes
- Returns
-
ResultSet.TYPE_FORWARD_ONLY,ResultSet.TYPE_SCROLL_INSENSITIVE, orResultSet.TYPE_SCROLL_SENSITIVE - Source
- ResultSet.scala
Retrieves whether the cursor is after the last row in this ResultSet object.
Retrieves whether the cursor is after the last row in this ResultSet object.
Note:Support for the isAfterLast method is optional for ResultSets with a result set type of TYPE_FORWARD_ONLY
Attributes
- Returns
-
trueif the cursor is after the last row;falseif the cursor is at any other position or the result set contains no rows - Source
- ResultSet.scala
Retrieves whether the cursor is before the first row in this ResultSet object.
Retrieves whether the cursor is before the first row in this ResultSet object.
Note:Support for the isBeforeFirst method is optional for ResultSets with a result set type of TYPE_FORWARD_ONLY
Attributes
- Returns
-
trueif the cursor is before the first row;falseif the cursor is at any other position or the result set contains no rows - Source
- ResultSet.scala
Retrieves whether the cursor is on the first row of this ResultSet object.
Retrieves whether the cursor is on the first row of this ResultSet object.
Note:Support for the isFirst method is optional for ResultSets with a result set type of TYPE_FORWARD_ONLY
Attributes
- Returns
-
trueif the cursor is on the first row;falseotherwise - Source
- ResultSet.scala
Retrieves whether the cursor is on the last row of this ResultSet object. Note: Calling the method isLast may be expensive because the ldbc might need to fetch ahead one row in order to determine whether the current row is the last row in the result set.
Retrieves whether the cursor is on the last row of this ResultSet object. Note: Calling the method isLast may be expensive because the ldbc might need to fetch ahead one row in order to determine whether the current row is the last row in the result set.
Note: Support for the isLast method is optional for ResultSets with a result set type of TYPE_FORWARD_ONLY
Attributes
- Returns
-
trueif the cursor is on the last row;falseotherwise - Source
- ResultSet.scala
Moves the cursor to the last row in this ResultSet object.
Moves the cursor to the last row in this ResultSet object.
Attributes
- Returns
-
trueif the cursor is on a valid row;falseif there are no rows in the result set - Source
- ResultSet.scala
Moves the cursor forward one row from its current position. A ResultSet cursor is initially positioned before the first row; the first call to the method next makes the first row the current row; the second call makes the second row the current row, and so on.
Moves the cursor forward one row from its current position. A ResultSet cursor is initially positioned before the first row; the first call to the method next makes the first row the current row; the second call makes the second row the current row, and so on.
When a call to the next method returns false, the cursor is positioned after the last row. Any invocation of a ResultSet method which requires a current row will result in a SQLException being thrown. If the result set type is TYPE_FORWARD_ONLY, it is vendor specified whether their JDBC driver implementation will return false or throw an SQLException on a subsequent call to next.
If an input stream is open for the current row, a call to the method next will implicitly close it. A ResultSet object's warning chain is cleared when a new row is read.
Attributes
- Returns
-
trueif the new current row is valid;falseif there are no more rows - Source
- ResultSet.scala
Moves the cursor to the previous row in this ResultSet object.
Moves the cursor to the previous row in this ResultSet object.
When a call to the previous method returns false, the cursor is positioned before the first row. Any invocation of a ResultSet method which requires a current row will result in a SQLException being thrown.
Attributes
- Returns
-
trueif the cursor is now positioned on a valid row;falseif the cursor is positioned before the first row - Source
- ResultSet.scala
Moves the cursor a relative number of rows, either positive or negative. Attempting to move beyond the first/last row in the result set positions the cursor before/after the the first/last row. Calling relative(0) is valid, but does not change the cursor position.
Moves the cursor a relative number of rows, either positive or negative. Attempting to move beyond the first/last row in the result set positions the cursor before/after the the first/last row. Calling relative(0) is valid, but does not change the cursor position.
Note: Calling the method relative(1) is identical to calling the method next() and calling the method relative(-1) is identical to calling the method previous().
Value parameters
- rows
-
an
intspecifying the number of rows to move from the current row; a positive number moves the cursor forward; a negative number moves the cursor backward
Attributes
- Returns
-
trueif the cursor is on a row;falseotherwise - Source
- ResultSet.scala
Reports whether the last column read had a value of SQL NULL. Note that you must first call one of the getter methods on a column to try to read its value and then call the method wasNull to see if the value read was SQL NULL.
Reports whether the last column read had a value of SQL NULL. Note that you must first call one of the getter methods on a column to try to read its value and then call the method wasNull to see if the value read was SQL NULL.
Attributes
- Returns
-
trueif the last column value read was SQLNULLandfalseotherwise - Source
- ResultSet.scala