Allow rating records to be deleted (we'll probably want a delete for just the

game and one for just the user as well but I'll add those later).


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@406 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2007-08-21 21:50:11 +00:00
parent d3cc74bc0d
commit abeac5d1b2
@@ -92,6 +92,15 @@ public class RatingRepository extends DepotRepository
store(new RatingRecord(gameId, playerId, rating, experience)); store(new RatingRecord(gameId, playerId, rating, experience));
} }
/**
* Deletes the specified rating record.
*/
public void deleteRating (int gameId, int playerId)
throws PersistenceException
{
delete(RatingRecord.class, RatingRecord.getKey(gameId, playerId));
}
@Override // from DepotRepository @Override // from DepotRepository
protected void getManagedRecords (Set<Class<? extends PersistentRecord>> classes) protected void getManagedRecords (Set<Class<? extends PersistentRecord>> classes)
{ {