diff --git a/src/java/com/samskivert/jdbc/JORARepository.java b/src/java/com/samskivert/jdbc/JORARepository.java index 347fcf70..ab5d0add 100644 --- a/src/java/com/samskivert/jdbc/JORARepository.java +++ b/src/java/com/samskivert/jdbc/JORARepository.java @@ -76,15 +76,14 @@ public abstract class JORARepository extends SimpleRepository * Updates the supplied object in the specified table. The table must * be configured to store items of the supplied type. */ - protected void update (final Table table, final T object) + protected int update (final Table table, final T object) throws PersistenceException { - executeUpdate(new Operation() { - public Object invoke (Connection conn, DatabaseLiaison liaison) + return executeUpdate(new Operation() { + public Integer invoke (Connection conn, DatabaseLiaison liaison) throws SQLException, PersistenceException { - table.update(object); - return null; + return table.update(object); } }); }