Undo a premature checkin. Not yet ready to commit the code that depends on this change.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@723 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Tom Conkling
2008-08-11 22:20:49 +00:00
parent 7ee0c156b2
commit fa7b70c63e
@@ -64,10 +64,10 @@ public class StatRepository extends DepotRepository
* Applies a modification to a single stat. If the stat in question does not exist, a blank
* instance will be created via {@link Stat.Type#newStat}.
*
* @return the modified Stat, if any modification took place; or null if the modification had
* @return true if the stat was modified and written to the database, false if the modifier had
* no effect on the stat's data.
*/
public <T extends Stat> T updateStat (int playerId, StatModifier<T> modifier)
public <T extends Stat> boolean updateStat (int playerId, StatModifier<T> modifier)
throws PersistenceException
{
Where where = new Where(StatRecord.PLAYER_ID_C, playerId,
@@ -80,10 +80,10 @@ public class StatRepository extends DepotRepository
@SuppressWarnings("unchecked") T tstat = (T)stat;
modifier.modify(tstat);
if (!tstat.isModified()) {
return null;
return false;
}
if (updateStat(playerId, tstat, false)) {
return tstat;
if (updateStat(playerId, stat, false)) {
return true;
}
}