Re: Passing ArrayList of Object for insert

2007-12-07 Thread prakashsahu1
>> > or entity to whom it is addressed and may contain information that is >> privileged, confidential, or exempt from disclosure under >> > >> > applicable law. If you are not the intended recipient of this EMAIL >> immediately notify the sender at iGATE or [EMAIL PROTECTED] >> >

Re: Passing ArrayList of Object for insert

2006-11-22 Thread Koka Kiknadze
Here's how I use it: Lets assume insertObjects is an array of InsertObject -s that we want to persist try { sqlMapClient.startTransaction(); sqlMapClient.startBatch(); for (InsertObject insertObject : insertObjects)

Re: Passing ArrayList of Object for insert

2006-11-21 Thread Brandon Goodin
If you database supports multiple inserts in a single jdbc call. But I don't know which databases support that. Is there a reason you can't iterate over your list and save each record via your dao? Brandon On 11/21/06, Premanand Kumarapillai <[EMAIL PROTECTED]> wrote: Hi, I have a ArrayLi

Re: Passing ArrayList of Object for insert

2006-11-21 Thread Warren
Can someone give an example of doing this? Nathan Maves wrote: Even better would be to iterate as Brandon stated but use the batch functionality of ibatis. This will dramatically increase your performance. Nathan On 11/21/06, * Brandon Goodin* <[EMAIL PROTECTED] >

Re: Passing ArrayList of Object for insert

2006-11-21 Thread Nathan Maves
Even better would be to iterate as Brandon stated but use the batch functionality of ibatis. This will dramatically increase your performance. Nathan On 11/21/06, Brandon Goodin <[EMAIL PROTECTED]> wrote: If you database supports multiple inserts in a single jdbc call. But I don't know which