package com.boardgamegeek.provider; import android.net.Uri; import com.boardgamegeek.provider.BggContract.Games; import com.boardgamegeek.provider.BggDatabase.Tables; import com.boardgamegeek.util.SelectionBuilder; public class GamesProvider extends BasicProvider { @Override protected String getDefaultSortOrder() { return Games.DEFAULT_SORT; } @Override protected String getInsertedIdColumn() { return Games.GAME_ID; } @Override protected String getPath() { return BggContract.PATH_GAMES; } @Override protected String getTable() { return Tables.GAMES; } @Override protected String getType(Uri uri) { return Games.CONTENT_TYPE; } @Override protected SelectionBuilder buildExpandedSelection(Uri uri) { return new SelectionBuilder().table(Tables.GAMES_JOIN_COLLECTION).mapToTable(Games.GAME_ID, Tables.GAMES) .mapToTable(Games.UPDATED, Tables.GAMES); } }