This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes Pass ArrayList To Oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Pass ArrayList To Oracle" Watch "Pass ArrayList To Oracle" New topic
Author

Pass ArrayList To Oracle

Mazen Mahmoud
Greenhorn

Joined: Oct 25, 2007
Posts: 18
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: 116
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
Greenhorn

Joined: Oct 25, 2007
Posts: 18
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?

Thanks
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Pass ArrayList To Oracle
 
Similar Threads
Problem in passing ArrayList
this global variable must go!
ArrayList performance for Large Objects.
toArray function of ArrayList
How objects are stored in arraylist