Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pass object from Java to Oracle procedure

To pass an array to oracle procedure we use ArrayDiscriptor and ARRAY objects. What objects do I have to use to pass an object to a stored procedure?

like image 386
palAlaa Avatar asked Dec 13 '25 14:12

palAlaa


1 Answers

The ArrayDesciptor and ARRAY classes (as well as StructDescriptor and STRUCT) map to Oracle TYPES - i.e. objects created something like...

create type my_obj as object( id varchar2(x), etc );

If you have access to the java, you should be able to see where the ArrayDescriptor is constructed and get the database type name from that.

You can use these oracle types as parameters to functions and procedures.

like image 106
cagcowboy Avatar answered Dec 16 '25 04:12

cagcowboy