예제 #1
0
 public JSONObject getSummonerSpelByID(Long id) {
   Document summonerSpel = couch.getDataFromDatabase(CouchDB.SUMMONER_SPEL_ID + id.toString());
   summonerSpel.remove("_id");
   summonerSpel.remove("_rev");
   return summonerSpel.getJSONObject();
 }
예제 #2
0
 public JSONObject getRuneByID(Long id) {
   Document rune = couch.getDataFromDatabase(CouchDB.RUNE_ID + id.toString());
   rune.remove("_id");
   rune.remove("_rev");
   return rune.getJSONObject();
 }
예제 #3
0
 public JSONObject getItemByID(Long id) {
   Document item = couch.getDataFromDatabase(CouchDB.ITEM_ID + id.toString());
   item.remove("_id");
   item.remove("_rev");
   return item.getJSONObject();
 }
예제 #4
0
 public JSONObject getMasteryByID(Long id) {
   Document mastery = couch.getDataFromDatabase(CouchDB.MASTERY_ID + id.toString());
   mastery.remove("_id");
   mastery.remove("_rev");
   return mastery.getJSONObject();
 }
예제 #5
0
 public JSONObject getChampionByID(Long id) {
   Document champion = couch.getDataFromDatabase(CouchDB.CHAMPION_ID + id.toString());
   champion.remove("_id");
   champion.remove("_rev");
   return champion.getJSONObject();
 }