ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <larry.mead...@gmail.com>
Subject Re: Conditional execution w/o SP
Date Tue, 06 Sep 2005 21:34:19 GMT
Sort of - you could do it with a statement using dynamic sql, but you will 
not be able to use the selectKey element. 

IMO this is a bad idea - do the logic in your DAO class instead of in a 
mapped statement.

Larry


On 6 Sep 2005 21:29:00 -0000, sreenivas <ko_srinivas@rediffmail.com> wrote:
> 
> Hi,
> 
> I have a requirement where I need to do conditional SQL 
> execution(insert/update).
> 
> I would like to know whether or not this is possible in iBatis without 
> writing any stored procedure.
> 
> Thanks and regards,
> Sreenivas 
> 
> 
> <http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3>

Mime
View raw message