Skip to Main Content

Oracle Forms

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 set values in ORA_JAVA.JARRAY

533117Feb 8 2007
Hi,

I have a method inside a java class, which takes a two dimensional array as its argument. Now when I import this class file into Forms via Java Importer, my PL/SQL wrapper package has a procedure with ORA_JAVA.JARRAY type as its argument, which is equivalent to my Java method with 2D array as its argument

When I use this procedure in my Forms application, I need to set the values for the elements of this array. But, How do I set the values as neither ORA_JAVA.NEW_STRING_ARRAY() or ORA_JAVA.SET_STRING_ARRAY_ELEMENT() signature allow me to set the 2nd element, ie x[i] in the x[i][j] array

For the same logic, I tried changing my Java class which would take HashMap as its argument. In this case, the pl/sql procedure has a ORA_JAVA.JOBJECT type as its argument. Can someone tell me how to create and set the values in ORA_JAVA.JOBJECT. I would be very thankful if an example is quoted :)

If any one is aware please help me.

Thanks,
Suresh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2007
Added on Feb 8 2007
0 comments
583 views