Fiddlesticks. Let's unify these update methods and do away entirely with the

old dangerous way of updating. We will now use only the timeless way.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5574 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-12-05 00:51:37 +00:00
parent 62f393db95
commit c116f93a7b
4 changed files with 34 additions and 77 deletions
@@ -55,6 +55,18 @@ public class OccupantInfo extends SimpleStreamableObject
/** Maps status codes to human readable strings. */
public static final String[] X_STATUS = { "active", "idle", "discon" };
/** Used by PlaceManager.updateOccupantInfo. */
public static interface Updater<T extends OccupantInfo>
{
/**
* Make whatever changes are desired to your {@link OccupantInfo} here.
*
* @return true if the record was modified and should be published, false if no
* modifications were made (it will not be published).
*/
public boolean update (T info);
}
/** The body object id of this occupant (and our entry key). */
public Integer bodyOid;