Skip to Main Content
  • Questions
  • Passing A Ref Cursor OR VARRAY into PL/SQL block

Breadcrumb

Question and Answer

Tom Kyte

Thanks for the question, Wayne.

Asked: July 14, 2000 - 3:33 pm UTC

Last updated: July 14, 2000 - 3:33 pm UTC

Version: 8.1.5

Viewed 1000+ times

You Asked

Tom,

I have an object in a java program which I need to save in the database
This object contains info that will be put in the main row of this item,
plus it can contain one or more subelements which can also contain sub
elements. I would like to be able to pass all this info in at once
and process within a stored procedure. Is this possible?

thanks,

wayne

and Tom said...

Yes it is. You would use an Oracle Object Type to accomplish this. You would probably want to use JPublisher to create the mapping for you.

See
</code> http://docs.oracle.com/cd/F49540_01/DOC/java.815/a64685/oraext5.htm#1039456 <code>

for more info/examples.


Is this answer out of date? If it is, please let us know via a Comment

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library