Added the ability to delete stat records for a player ID

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@261 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Mark Johnson
2007-03-23 00:49:37 +00:00
parent e1ca18f8ed
commit ceb4ea2a07
@@ -93,6 +93,15 @@ public class StatRepository extends SimpleRepository
return stats;
}
/**
* Deletes all stats associated with the specified player.
*/
public void deleteStats (int playerId)
throws PersistenceException
{
update("delete from STATS where PLAYER_ID = " + playerId);
}
/**
* Writes out any of the stats in the supplied array that have been modified since they were
* first loaded. Exceptions that occur while writing the stats will be caught and logged.