8.3.25 getResultSet()
- Organization of this subsection
(1) Function
This method acquires retrieval results as a ResultSet object.
(2) Format
public synchronized ResultSet getResultSet() throws SQLException
(3) Arguments
None.
(4) Return value
This method returns the ResultSet object held by the Statement object. If there are no retrieval results in the ResultSet object, the method returns null.
(5) Exceptions
The JDBC driver throws an SQLException in the following cases:
-
The Statement object is closed.
-
The Connection object that created the Statement object is closed.