java.sql.ResultSet queryResults(java.lang.String sql, Object... parameters)
Returned ResultSet objects are read-only. Also, you cannot access the Statement object that is associated with a ResultSet object.
You could access all columns of all rows of the HRDEPT.EMPLOYEE table as a ResultSet object by using code that looks like this:
Connection con = DriverManager.getConnection(...); 1
Data db = DataFactory.getData(con); 2
java.sql.ResultSet empResult = db.queryResults(
"SELECT EMPNO, FIRSTNME, MIDINIT, LASTNAME, WORKDEPT, PHONENO, HIREDATE FROM HRDept.Employee" ); 3
The code performs the following steps: