From fe1aff3842f1139362ab8f2ca7d7993efef18b18 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 6 Sep 2008 00:17:52 +0000 Subject: [PATCH] Tidying. --- src/java/com/samskivert/jdbc/depot/DepotRepository.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/java/com/samskivert/jdbc/depot/DepotRepository.java b/src/java/com/samskivert/jdbc/depot/DepotRepository.java index 643c24f..4cb9f8b 100644 --- a/src/java/com/samskivert/jdbc/depot/DepotRepository.java +++ b/src/java/com/samskivert/jdbc/depot/DepotRepository.java @@ -745,7 +745,7 @@ public abstract class DepotRepository if (primaryKey == null) { throw new IllegalArgumentException("Can't delete record with null primary key."); } - return deleteAll(type, primaryKey, primaryKey); + return delete(type, primaryKey); } /** @@ -754,8 +754,7 @@ public abstract class DepotRepository * * @return the number of rows deleted by this action. */ - protected int delete ( - Class type, Comparable primaryKeyValue) + protected int delete (Class type, Comparable primaryKeyValue) throws DatabaseException { return delete(type, _ctx.getMarshaller(type).makePrimaryKey(primaryKeyValue));