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:
@@ -92,6 +92,15 @@ public class RatingRepository extends DepotRepository
|
||||
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
|
||||
protected void getManagedRecords (Set<Class<? extends PersistentRecord>> classes)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user