Does Oracle SQLJ support REF CURSORS?
Oracle SQLJ supports REF CURSORS along the same lines that Oracle’s JDBC drivers do. Specifically, a REF CURSOR that is a SELECT column, a function return, or an OUT parameter of a procedure can be materialized in SQLJ as a JDBC ResultSet or a SQLJ iterator instance. In Oracle 9.0.1 and later JDBC stored procedures permit passing a JDBC ResultSet out as a REF CURSOR argument (with an Oracle-specific API to enable this). However, at this point SQLJ stored procedures do not permit passing SQLJ iterators in this way. 7. Translation (and Compilation and Customization) Process 7.