From e6c4008258c589ad120fe86641e546d2f50f27eb Mon Sep 17 00:00:00 2001 From: mdb Date: Thu, 13 Apr 2006 18:41:46 +0000 Subject: [PATCH] Documented some return values. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1824 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/jdbc/JORARepository.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/java/com/samskivert/jdbc/JORARepository.java b/src/java/com/samskivert/jdbc/JORARepository.java index ab5d0add..37c4c433 100644 --- a/src/java/com/samskivert/jdbc/JORARepository.java +++ b/src/java/com/samskivert/jdbc/JORARepository.java @@ -56,8 +56,11 @@ public abstract class JORARepository extends SimpleRepository } /** - * Inserts the supplied object into the specified table. The table - * must be configured to store items of the supplied type. + * Inserts the supplied object into the specified table. The table must be + * configured to store items of the supplied type. + * + * @return a call to {@link DatabaseLiaison#lastInsertedId} made + * immediately following the insert. */ protected int insert (final Table table, final T object) throws PersistenceException @@ -75,6 +78,8 @@ 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. + * + * @return the number of rows modified by the update. */ protected int update (final Table table, final T object) throws PersistenceException