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.html in the
> first
> example rowSets is used, but is not declared nor assigned anywhere.
>
> Looks wrong to me.
>
> Regards,
> David