ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Sheffer" <eshef...@lycos.com>
Subject Re: Lists of like objects as parameters to SqlMaps
Date Wed, 17 Aug 2005 19:01:19 GMT
In a previous message, Prashanth Sukumaran wrote:
> 
> When executing in batch mode i do this.
> 
> try {
> 	startTransaction();
> 
> 	startBatch();
> 	for (int i = 0; i < dealerFrLines.length; i++) {
> 		param.put("dealerFrLines", new Integer(dealerFrLines[i]));
> 		insert("insertShopDFL", param);
> 	}
> 	executeBatch();
> 	
> 	commitTransaction();
> 
> } finally {
> 	endTransaction();
> }
> 

Yes, this is more or less what I do now.  I was hoping there was
a way to pass a collection or type array directly to iBATIS and 
let it handle the iterating.

Eric



-- 
_______________________________________________

Search for businesses by name, location, or phone number.  -Lycos Yellow Pages

http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


Mime
View raw message