File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Pass ArrayList To Oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Pass ArrayList To Oracle" Watch "Pass ArrayList To Oracle" New topic

Pass ArrayList To Oracle

Mazen Mahmoud

Joined: Oct 25, 2007
Posts: 20
I have an ArrayList of java objects. I want to pass this ArrayList to an oracle stored procedure that will loop over the ArrayList, take objects, and insert objects' parameters to the database. Any Sample?
Agador Paloi
Ranch Hand

Joined: Jan 24, 2006
Posts: 118
I think the only way you can do this is to write the stored procedure in Java . Pl/ Sql cant process an Arraylist .
Mazen Mahmoud

Joined: Oct 25, 2007
Posts: 20
Thanks for the reply. I've been able to solve it. I've used ArrayDescriptor from Java and array elements that i've sent to oracle procedure.
sravani jetty
Ranch Hand

Joined: Jun 06, 2007
Posts: 38
Hi Mazen,

Can you give an example of how you used the ArrayDescriptor and passed the array elements?

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Pass ArrayList To Oracle
It's not a secret anymore!