It's not a secret anymore!*
The moose likes JDBC and the fly likes How to pass a List in PreparedStatement.setArray()? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to pass a List in PreparedStatement.setArray()?" Watch "How to pass a List in PreparedStatement.setArray()?" New topic
Author

How to pass a List in PreparedStatement.setArray()?

kayanaat sidiqui
Ranch Hand

Joined: Sep 04, 2008
Posts: 122
HI all,

I am stuck at this code.

I am having a list say listItem.
Now i want to set each value of listItem into database.

I am using preparedStatment.setArray().

But getting it.

Can you help me..



 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to pass a List in PreparedStatement.setArray()?
 
Similar Threads
itext problem while adding bullets using list
displaying list items in struts
JAXB with legacy beans?
Problem with ListCellRenderer
Accessing Property(array object) in a Bean using EL