It does this by issuing a call to createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY) and then executing the statement with a java.sql.StatementExecuteQuery request on the value of the specified String.
If the String is a statement that does not generate a result set, the behavior of the underlying database determines whether an empty result set or an error is issued. If there is an error in executing the statement, no cursor is created.
Once a scrollable cursor has been created, you can use the following commands to work with the result set: