Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to pass Array of Java objects to Callable statement

843859Dec 7 2005 — edited Dec 7 2005
Hi ,
I need to know how can I pass an array of objects to PL/SQL stored procedure using callable statement.

So I am having and array list of some object say xyz which has two attributes string and double type.
Now I need to pass this to a PL/SQL Procedure as IN parameter.
Now I have gone through some documentation for the same and found that we can use ArrayDescriptor tp create array (java.sql.ARRAY).
And we will use a record type from SQL to map this to our array of java objects.

So my question is how this mapping of java object's two attribute will be done to the TYPE in SQL? can we also pass this array as a package Table?

Please help
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 4 2006
Added on Dec 7 2005
1 comment
662 views