8.5.1 List of the methods in the ResultSet interface
- Organization of this subsection
(1) Main functions of the ResultSet interface
The ResultSet interface provides the following main functions:
-
Movement of the cursor within a result set in units of rows
-
Return of results data
-
Notification of whether the retrieval result is the null value
(2) Methods in the ResultSet interface that are supported by HADB
The following table lists and describes the methods in the ResultSet interface that are supported by HADB.
No. |
Method in the ResultSet interface |
Function |
---|---|---|
1 |
Moves the cursor to a specified row in the ResultSet object. |
|
2 |
Moves the cursor to the location immediately following the last row in the ResultSet object. |
|
3 |
Moves the cursor to the location immediately preceding the first row in the ResultSet object. |
|
4 |
Clears all warnings concerning this ResultSet object that have been reported. |
|
5 |
Closes the cursor that has been opened for the ResultSet object and releases JDBC resources. |
|
6 |
Returns the column number corresponding to a specified column name. |
|
7 |
Moves the cursor to the first row in the ResultSet object. |
|
8 |
Acquires in a java.io.InputStream object the value in a specified column in the current row of the ResultSet object. |
|
9 |
||
10 |
Acquires in a java.math.BigDecimal object the value in a specified column in the current row of the ResultSet object. |
|
11 |
||
12 |
Acquires in a java.io.InputStream object the value in a specified column in the current row of the ResultSet object. |
|
13 |
||
14 |
Acquires as boolean in the Java programming language the value in a specified column in the current row of the ResultSet object. |
|
15 |
||
16 |
Acquires as byte in the Java programming language the value in a specified column in the current row of the ResultSet object. |
|
17 |
||
18 |
Acquires as a byte array in the Java programming language the value in a specified column in the current row of the ResultSet object. |
|
19 |
||
20 |
Acquires in a java.io.Reader object the value in a specified column in the current row of the ResultSet object. |
|
21 |
||
22 |
Acquires this ResultSet object's concurrent processing mode. |
|
23 |
Acquires the name of the SQL cursor used by this ResultSet object. |
|
24 |
Acquires in a java.sql.Date object the value in a specified column in the current row of the ResultSet object. |
|
25 |
||
26 |
||
27 |
||
28 |
Acquires as double in the Java programming language the value in a specified column in the current row of the ResultSet object. |
|
29 |
||
30 |
Acquires this ResultSet object's fetch direction. |
|
31 |
Acquires this ResultSet object's fetch size. |
|
32 |
Acquires as float in the Java programming language the value in a specified column in the current row of the ResultSet object. |
|
33 |
||
34 |
Acquires a value indicating the status of the holding functionality for this ResultSet object. |
|
35 |
Acquires as int in the Java programming language the value in a specified column in the current row of the ResultSet object. |
|
36 |
||
37 |
Acquires as long in the Java programming language the value in a specified column in the current row of the ResultSet object. |
|
38 |
||
39 |
Acquires this ResultSet object's meta information. |
|
40 |
Acquires as Object in the Java programming language the value in a specified column in the current row of the ResultSet object. |
|
41 |
||
42 |
Acquires the value for a specified column in the current row of the ResultSet object, and converts it to a Java data type. |
|
43 |
||
44 |
Acquires the current row number. |
|
45 |
Acquires as short in the Java programming language the value in a specified column in the current row of the ResultSet object. |
|
46 |
||
47 |
Acquires the Statement object that created this ResultSet object. |
|
48 |
Acquires as String in the Java programming language the value in a specified column in the current row of the ResultSet object. |
|
49 |
||
50 |
Acquires in a java.sql.Time object the value in a specified column in the current row of the ResultSet object. |
|
51 |
||
52 |
||
53 |
||
54 |
Acquires in a java.sql.Timestamp object the value in a specified column in the current row of the ResultSet object. |
|
55 |
||
56 |
||
57 |
||
58 |
Returns the ResultSet object's type. |
|
59 |
Acquires the first warning reported by a call related to this ResultSet object. |
|
60 |
Acquires a value indicating whether the cursor is located after the last row in the ResultSet object. |
|
61 |
Acquires a value indicating whether the cursor is located before the first row in the ResultSet object. |
|
62 |
Acquires a value indicating whether this ResultSet object is closed. |
|
63 |
Acquires a value indicating whether the cursor is located on the first row in the ResultSet object. |
|
64 |
Acquires a value indicating whether the cursor is located on the last row in the ResultSet object. |
|
65 |
Moves the cursor to the last row of the ResultSet object. |
|
66 |
Moves the cursor to the next row. |
|
67 |
Moves the cursor to the immediately preceding row. |
|
68 |
Moves the cursor. |
|
69 |
Specifies the fetch direction for the ResultSet object. |
|
70 |
Specifies the fetch size (number of rows to be fetched) when the ResultSet object is retrieved. |
|
71 |
Returns a value indicating whether the last column value acquired is the null value. |
- Important
-
HADB does not support methods that are not listed in this table. If an unsupported method is executed, an SQLException might be thrown.
(3) Required package name and class name
The package and class names required in order to use the ResultSet interface are as follows:
-
Package name: com.hitachi.hadb.jdbc
-
Class name: AdbResultSet