JdbcTemplate to use in query<<Help Required>>
Hi
I am having a problem in using the query using JDBC Template
public void deleteProduct(int productIds[])
{
Object arr[]=new Object[1];
arr[0]=productIds;
String query="delete from product where id in(?)";
this.execute(query,arr);
}
this method is in a DAO which gets the DataSource.
if i execute the same query individually for all ids in the List its executes well
Not geeting what the proble is
Thanks in advance
Mukesh Antil
Conceptually the jdbc should work.
Thanks dsklyut,
It was great but what my expectation is the spring should take care of this buring the paremeter binding time as some of the framework does.
Spring does this for Objects and array is also an Object then why not for array.
thanks
Mukesh