Roy Tang

Programmer, engineer, scientist, critic, gamer, dreamer, and kid-at-heart.

Blog Notes Photos Links Archives About

“rowtype” here is an Oracle PL/SQL-specific type, I don’t think it would be supported by JDBC. A quick search of the oracle forums (google “jdbc rowtype site:oracle.com”) suggests the same. You’re probably better off returning a cursor, or just execute the SQL from JDBC directly.

Comments

Am I right to think that though using a cursor will preserve the goal of storing all logic in the Oracle side, directly executing the SQL from JDBC will perform faster?
It is correct that executing the SQL directly in JDBC is faster