ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Maves <Nathan.Ma...@Sun.COM>
Subject Re: Urgent help required
Date Fri, 10 Mar 2006 17:54:19 GMT
ouch the first line should read...

int rows = ((Integer)sqlMap.insert("insertProduct", product)).intValue 
();


On Mar 10, 2006, at 10:51 AM, Nathan Maves wrote:

> Just use
>
> Integer rows = ((Integer)sqlMap.insert("insertProduct",  
> product)).intValue();
>
> if you are using Java 1.5
>
> int rows = (Integer)sqlMap.insert("insertProduct", product);
>
> Nathan
>
>
> On Mar 10, 2006, at 10:41 AM, Krishnamoorthi, Sruthi (Raytheon) wrote:
>
>> The docs says
>>
>>         int rows = sqlMap.insert (“insertProduct”, product);
>>
>> returns a int value
>>
>>
>> When I code it ,the return value is object. I am not able to get  
>> the int return value. Please help me out.
>>
>>
>> Thanks,
>> Sruthi Krishnamoorthi
>> 703-562-9732(Work)
>> 537 A - (Raytheon) Location
>>
>>
>


Mime
View raw message