|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.depot.impl.QueryResult
com.samskivert.depot.PersistentRecord
com.threerings.stats.server.persist.StatRecord
public class StatRecord
| Field Summary | |
|---|---|
static Class<StatRecord> |
_R
|
static com.samskivert.depot.expression.ColumnExp<Byte> |
MOD_COUNT
|
byte |
modCount
The number of times this stat has been updated, so that simultaneous attempts to update the same stat in the repository can be caught and handled. |
static com.samskivert.depot.expression.ColumnExp<Integer> |
PLAYER_ID
|
int |
playerId
The identifier of the player this is a stat for. |
static int |
SCHEMA_VERSION
|
static com.samskivert.depot.expression.ColumnExp<Integer> |
STAT_CODE
|
static com.samskivert.depot.expression.ColumnExp<byte[]> |
STAT_DATA
|
int |
statCode
The code of the stat. |
byte[] |
statData
The data associated with the stat. |
| Constructor Summary | |
|---|---|
StatRecord()
An empty constructor for unmarshalling. |
|
StatRecord(int playerId,
int statCode,
byte[] data)
A constructor that populates all our fields. |
|
StatRecord(int playerId,
int statCode,
byte[] data,
byte modCount)
|
|
| Method Summary | |
|---|---|
static com.samskivert.depot.Key<StatRecord> |
getKey(int playerId,
int statCode)
Create and return a primary Key to identify a StatRecord
with the supplied key values. |
String |
toString()
|
| Methods inherited from class com.samskivert.depot.PersistentRecord |
|---|
colexp, newKey, registerKeyFields |
| Methods inherited from class com.samskivert.depot.impl.QueryResult |
|---|
clone |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Class<StatRecord> _R
public static final com.samskivert.depot.expression.ColumnExp<Integer> PLAYER_ID
public static final com.samskivert.depot.expression.ColumnExp<Integer> STAT_CODE
public static final com.samskivert.depot.expression.ColumnExp<byte[]> STAT_DATA
public static final com.samskivert.depot.expression.ColumnExp<Byte> MOD_COUNT
public static final int SCHEMA_VERSION
public int playerId
public int statCode
public byte[] statData
public byte modCount
| Constructor Detail |
|---|
public StatRecord()
public StatRecord(int playerId,
int statCode,
byte[] data)
public StatRecord(int playerId,
int statCode,
byte[] data,
byte modCount)
| Method Detail |
|---|
public String toString()
toString in class Object
public static com.samskivert.depot.Key<StatRecord> getKey(int playerId,
int statCode)
Key to identify a StatRecord
with the supplied key values.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||