The ResultSet Interface

A ResultSet is essentially a Java object. When you execute a query on the database, you will get a ResultSet, that is, a tabular representation of the data retrieved from the database table. Technically, ResultSet is a Java interface that a vendor of a JDBC driver must implement. The ResultSet interface contains methods that retrieve the tabular data of the results of the executed query. A result set maintains a cursor on the row in the database. Result sets are normally traversed in a while loop using the next() method of the ResultSet interface.

In the JDBC 1.0 API, the ResultSet interface had methods to retrieve the data from the result set. In JDBC 2.0 API, many new features were added to the ResultSet interface. Now ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.