public void getAndSaveSummonerByIds(String ids, String region) { String[] parsed = ids.split(";"); List<String> nameList = Arrays.asList(parsed); List<Summoner> summoners; try { summoners = facade.getSummonerByIDs(nameList, region); for (Summoner summoner : summoners) { SummonerDAO.saveOrUpdate(summoner); } } catch (BadRequestException | UnauthorizedException | EntityNotFoundException | RateLimitExceededException | InternalServerException e) { log.error("error inside getAndSaveSummonerByIds ", e); } }
public boolean checkFollowDb(String summonerName) { return SummonerDAO.getSummonerByName(summonerName) == null ? false : true; }
public String getSummonerNameById(long id) { return SummonerDAO.getSummonerNameById(id); }