This commit is contained in:
Michael Bayne
2008-09-06 00:17:52 +00:00
parent 84c32cc5e3
commit fe1aff3842
@@ -745,7 +745,7 @@ public abstract class DepotRepository
if (primaryKey == null) { if (primaryKey == null) {
throw new IllegalArgumentException("Can't delete record with null primary key."); 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. * @return the number of rows deleted by this action.
*/ */
protected <T extends PersistentRecord> int delete ( protected <T extends PersistentRecord> int delete (Class<T> type, Comparable<?> primaryKeyValue)
Class<T> type, Comparable<?> primaryKeyValue)
throws DatabaseException throws DatabaseException
{ {
return delete(type, _ctx.getMarshaller(type).makePrimaryKey(primaryKeyValue)); return delete(type, _ctx.getMarshaller(type).makePrimaryKey(primaryKeyValue));