public class StatRecord extends PersistentRecord
| Modifier and Type | Field and Description |
|---|---|
static Class<StatRecord> |
_R |
static 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 ColumnExp<Integer> |
PLAYER_ID |
int |
playerId
The identifier of the player this is a stat for.
|
static int |
SCHEMA_VERSION |
static ColumnExp<Integer> |
STAT_CODE |
static ColumnExp<byte[]> |
STAT_DATA |
int |
statCode
The code of the stat.
|
byte[] |
statData
The data associated with the stat.
|
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
static Key<StatRecord> |
getKey(int playerId,
int statCode)
Create and return a primary
Key to identify a StatRecord
with the supplied key values. |
String |
toString() |
clonepublic static final Class<StatRecord> _R
public static final ColumnExp<byte[]> STAT_DATA
public static final int SCHEMA_VERSION
public int playerId
public int statCode
public byte[] statData
public byte modCount
public StatRecord()
public StatRecord(int playerId,
int statCode,
byte[] data)
public StatRecord(int playerId,
int statCode,
byte[] data,
byte modCount)
public static Key<StatRecord> getKey(int playerId, int statCode)
Key to identify a StatRecord
with the supplied key values.Copyright © 2015. All rights reserved.