cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Balažic <david.bala...@comtrade.com>
Subject RE: rowSets not defined in example
Date Mon, 17 Jan 2011 16:37:28 GMT
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