ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prakashsahu1 <prakashsa...@gmail.com>
Subject Re: Passing ArrayList of Object for insert
Date Fri, 07 Dec 2007 13:07:15 GMT

We can use the batch update.


nmaves 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 <brandon.goodin@gmail.com> wrote:
>>
>> 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 <Premanand.Kumarapillai@igate.com>
>> wrote:
>> >
>> >
>> >
>> >
>> >
>> > Hi,
>> >
>> > I have a ArrayList of value objects. Is it possible to pass such an
>> > array to iBATIS for insert?
>> >
>> > The Value object can be mapped to a table in the DB.
>> >
>> > Thanks in advance,
>> > Prem
>> >
>> >
>> >
>> >
>> > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>> >
>> >
>> >
>> > Information transmitted by this EMAIL is proprietary to iGATE Group of
>> Companies and is intended for use only by the individual
>> >
>> > 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 mailadmin@igate.com
>> >
>> > and delete this EMAIL including any attachments
>> >
>> > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>> >
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Passing-ArrayList-of-Object-for-insert-tf2677771.html#a14212024
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Mime
View raw message