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:[email protected]] 
> Sent: Friday, January 14, 2011 9:33 PM
> To: [email protected]
> 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
> 

Reply via email to