4.2.4.1 The ResultSet Interface
Data is stored in a ResultSet just as it is returned by the database: it is stored in tabular format.
Each field of the database can be described by a unique combination of a row ID and a column ID. A column can be mapped to an array, since all data in a single column has the same data type.
Similarly, a row can be mapped to a vector, since all elements in a single row may have different data types.
The ResultSet interface has more than 25 methods, and Table 4.9 lists some of the most often used methods.
All getXXX() methods defined in this ResultSet interface, except getMetaData(), are overloaded methods with two signatures, which means that all of these methods can pass two types of arguments, either a column index that is an integer or a column name that is a string. To save space, here we only list the first signature for each of those methods.
Now we have a clear picture of the ResultSet interface; next we need to get the run results from the execution of an execute method. First let’s take care of how to get a ResultSet object after an execute method has been done.
TABLE 4.9 Methods Defined in the ResultSet Interface
