public class RatingRecord extends PersistentRecord
| Modifier and Type | Field and Description |
|---|---|
static Class<RatingRecord> |
_R |
int |
experience
The number of times the player has played this game.
|
static ColumnExp<Integer> |
EXPERIENCE |
static ColumnExp<Integer> |
GAME_ID |
int |
gameId
The identifier of the game we're rating for.
|
static ColumnExp<Timestamp> |
LAST_UPDATED |
Timestamp |
lastUpdated
The last time this rating was updated.
|
static ColumnExp<Integer> |
PLAYER_ID |
int |
playerId
The identifier of the player we're rating.
|
int |
rating
The player's current rating.
|
static ColumnExp<Integer> |
RATING |
static int |
SCHEMA_VERSION |
| Constructor and Description |
|---|
RatingRecord()
An empty constructor for unmarshalling.
|
RatingRecord(int gameId,
int playerId,
int rating,
int experience)
A constructor that populates all our fields.
|
| Modifier and Type | Method and Description |
|---|---|
static Key<RatingRecord> |
getKey(int gameId,
int playerId)
Create and return a primary
Key to identify a RatingRecord
with the supplied key values. |
String |
toString() |
clonepublic static final Class<RatingRecord> _R
public static final int SCHEMA_VERSION
public int gameId
public int playerId
public int rating
public int experience
public Timestamp lastUpdated
public RatingRecord()
public RatingRecord(int gameId,
int playerId,
int rating,
int experience)
public static Key<RatingRecord> getKey(int gameId, int playerId)
Key to identify a RatingRecord
with the supplied key values.Copyright © 2015. All rights reserved.