ant genrecord.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@905 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2010-03-24 20:12:01 +00:00
parent dad43e916c
commit ec69dd15f7
4 changed files with 16 additions and 16 deletions
@@ -61,10 +61,10 @@ public class PercentileRecord extends PersistentRecord
*/ */
public static Key<PercentileRecord> getKey (int gameId, int gameMode) public static Key<PercentileRecord> getKey (int gameId, int gameMode)
{ {
return new Key<PercentileRecord>( return newKey(_R, gameId, gameMode);
PercentileRecord.class,
new ColumnExp[] { GAME_ID, GAME_MODE },
new Comparable[] { gameId, gameMode });
} }
/** Register the key fields in an order matching the getKey() factory. */
static { registerKeyFields(GAME_ID, GAME_MODE); }
// AUTO-GENERATED: METHODS END // AUTO-GENERATED: METHODS END
} }
@@ -96,10 +96,10 @@ public class RatingRecord extends PersistentRecord
*/ */
public static Key<RatingRecord> getKey (int gameId, int playerId) public static Key<RatingRecord> getKey (int gameId, int playerId)
{ {
return new Key<RatingRecord>( return newKey(_R, gameId, playerId);
RatingRecord.class,
new ColumnExp[] { GAME_ID, PLAYER_ID },
new Comparable[] { gameId, playerId });
} }
/** Register the key fields in an order matching the getKey() factory. */
static { registerKeyFields(GAME_ID, PLAYER_ID); }
// AUTO-GENERATED: METHODS END // AUTO-GENERATED: METHODS END
} }
@@ -98,10 +98,10 @@ public class StatRecord extends PersistentRecord
*/ */
public static Key<StatRecord> getKey (int playerId, int statCode) public static Key<StatRecord> getKey (int playerId, int statCode)
{ {
return new Key<StatRecord>( return newKey(_R, playerId, statCode);
StatRecord.class,
new ColumnExp[] { PLAYER_ID, STAT_CODE },
new Comparable[] { playerId, statCode });
} }
/** Register the key fields in an order matching the getKey() factory. */
static { registerKeyFields(PLAYER_ID, STAT_CODE); }
// AUTO-GENERATED: METHODS END // AUTO-GENERATED: METHODS END
} }
@@ -92,10 +92,10 @@ public class StringCodeRecord extends PersistentRecord
*/ */
public static Key<StringCodeRecord> getKey (int statCode, String value) public static Key<StringCodeRecord> getKey (int statCode, String value)
{ {
return new Key<StringCodeRecord>( return newKey(_R, statCode, value);
StringCodeRecord.class,
new ColumnExp[] { STAT_CODE, VALUE },
new Comparable[] { statCode, value });
} }
/** Register the key fields in an order matching the getKey() factory. */
static { registerKeyFields(STAT_CODE, VALUE); }
// AUTO-GENERATED: METHODS END // AUTO-GENERATED: METHODS END
} }