ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Warren <war...@clarksnutrition.com>
Subject Re: Passing ArrayList of Object for insert
Date Wed, 22 Nov 2006 00:27:23 GMT
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* <brandon.goodin@gmail.com 
> <mailto: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
>     <mailto: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
>         <mailto:mailadmin@igate.com> 
>         and delete this EMAIL including any attachments
>         _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
>
>
>


Mime
View raw message