cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurent Marchal <>
Subject Returning updated rows from SQLTemplate
Date Mon, 15 Sep 2008 09:22:42 GMT
Hello !

I use Cayenne 3.0M4 and since UpdateQuery is deprecated i use a
SQLTemplate query to do an UPDATE.
The thing is i would like to know how many rows are updated, and the
query returns no DataRows.

SQLTemplate query = new SQLTemplate(..., "UPDATE...");

List<DataRow> dtList = context.performQuery(query);

the returned list is always empty....
How can i get the precious Integer saying "X rows updated" ?

Laurent Marchal.

View raw message