Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Create ResultSet "from scratch" in Oracle Java Stored Procedure?

Re: Create ResultSet "from scratch" in Oracle Java Stored Procedure?

From: Angus <eat_at_joes.place>
Date: Thu, 02 Sep 2004 05:01:08 +0200
Message-ID: <41368CF4.19DD2E0A@joes.place>


Jim Garrison wrote:
>
> I need to create a ResultSet in an Oracle Java Stored Procedure and
> return it to a PL/SQL caller. I've done quite a bit of research in
> Oracle's manuals and on the Web, and have found lots of references to
> going the other direction (PL/SQL passing/returning REF CURSOR to
> Java), and Java returning an existing ResultSet (obtained from the
> databse) as a REF CURSOR to PL/SQL. Neither of these is what I'm
> looking for.
>
> My Java stored procedure will do significant data reduction on a large
> database, and then needs to return a large result set to the caller,
> which will be in PL/SQL. To the PL/SQL caller, the Java stored
> procedure needs to look like a "table function", but I need to create
> the result set from scratch in my Java code. What I think I need is
> a documented skeleton ResultSet implementation that I can extend.
>
> Anyone know if this is available anywhere, or have pointers to
> documentation?

Use a temporary table or a nested table, or some other PL/SQL collection type (there are several). See the "Collection Types" chapter in the PL/SQL manual.

Good Luck,
Avi. Received on Wed Sep 01 2004 - 22:01:08 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US