cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: rowSets not defined in example
Date Tue, 18 Jan 2011 12:42:33 GMT
Fixed that one too. Thanks again!

"given enough eyeballs, all bugs are shallow..." Eric S. Raymond. 

This goes for documentation too :-)

Andrus

On Jan 17, 2011, at 6:37 PM, David Balažic wrote:

> http://cayenne.apache.org/doc30/selecting-objects.html
> 
> 
> <query.addParam("paramter1", "abc"); 
>> query.addParameter("parameter1", "abc");
> 
> same for parameter2, of course.
> 
> David
> 
> 
>> -----Original Message-----
>> From: Andrus Adamchik [mailto:andrus@objectstyle.org] 
>> Sent: Friday, January 14, 2011 9:33 PM
>> To: user@cayenne.apache.org
>> Subject: Re: rowSets not defined in example
>> Importance: Low
>> 
>> Good catch, thanks! It should be something like this:
>> 
>> QueryResponse response = context.performGenericQuery(query);
>> for (response.reset(); response.next();) {
>>     if (response.isList()) {
>>         List list = response.currentList();
>>         // ...
>>     }
>>    else {
>>         int[] updateCounts = response.currentUpdateCount();
>>         // ...
>>     }
>> }
>> 
>> I am fixing the docs now.
>> 
>> Andrus
>> 
>> On Jan 14, 2011, at 8:34 PM, David Balažic wrote:
>> 
>>> Hi!
>>> 
>>> on 
>> http://cayenne.apache.org/doc/executing-a-stored-procedure.htm
>> l in the first
>>> example rowSets is used, but is not declared nor assigned anywhere.
>>> 
>>> Looks wrong to me.
>>> 
>>> Regards,
>>> David
>> 
> 


Mime
View raw message