git-svn-id: https://samskivert.googlecode.com/svn/trunk@2397 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2008-09-06 00:17:52 +00:00
parent f8fd195327
commit 315ea2d87a
@@ -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 <T extends PersistentRecord> int delete (
Class<T> type, Comparable<?> primaryKeyValue)
protected <T extends PersistentRecord> int delete (Class<T> type, Comparable<?> primaryKeyValue)
throws DatabaseException
{
return delete(type, _ctx.getMarshaller(type).makePrimaryKey(primaryKeyValue));