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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user