We're not going to do this INDEX: comment thing.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@404 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Par Winzell
2007-08-16 21:53:47 +00:00
parent 01db2cc225
commit 4567264b91
2 changed files with 0 additions and 10 deletions
@@ -54,7 +54,6 @@ public class RatingRepository extends DepotRepository
public RatingRecord getRating (int gameId, int playerId)
throws PersistenceException
{
// INDEX: Full primary key.
return load(RatingRecord.class, RatingRecord.getKey(gameId, playerId));
}
@@ -62,8 +61,6 @@ public class RatingRepository extends DepotRepository
* Fetch the ratings registered for any of the given players for the given game and return
* them as a list of {@link RatingRecord} objects. The size of this list is no less than zero
* and no greater than the number of given players.
*
* INDEXING: Uses primary key.
*/
public List<RatingRecord> getRatings (int gameId, Integer... players)
throws PersistenceException
@@ -71,7 +68,6 @@ public class RatingRepository extends DepotRepository
if (players.length == 0) {
return Collections.emptyList();
}
// INDEX: Full primary key.
return findAll(RatingRecord.class,
new Where(new And(new Equals(RatingRecord.GAME_ID_C, gameId),
new In(RatingRecord.PLAYER_ID_C, players))));
@@ -83,7 +79,6 @@ public class RatingRepository extends DepotRepository
public List<RatingRecord> getRatings (int playerId)
throws PersistenceException
{
// INDEX: ixPlayerId
return findAll(RatingRecord.class, new Where(RatingRecord.PLAYER_ID_C, playerId));
}