Retrieving information for a collection of objects from database
Yan Lee
Ranch Hand
Joined: Sep 15, 2003
Posts: 94
posted
0
Hi: I am redesigning a module that has to get records from the database corresponding a collection of objects.
In the current implementation, for each object in a collection a JDBC call is made to an oracle database and information for that object is obtained and mapped to an object. Obviously that causes a lot of database calls.
Is it possible to do this in a more efficient manner? How can I pass a collection of primary keys to a stored procedure and get a resultset that can be mapped back to the collection of primary keys? Is it possible using PL/SQL?