@Override public final int saveOrUpdate(final IHealth health) { final int id = healthDao.saveOrUpdate(health); HealthCache.getInstance().addAll(Arrays.asList(health)); return id; }
@Override public final IHealth getHealth(final IAthlete athlete, final Date date) { return healthDao.getHealth(athlete, date); }
@Override public final void removeHealth(final int id) { healthDao.remove(id); HealthCache.getInstance().remove(id); }
// -------------------------------healthDao-------------------------------------------------- @Override public final List<IHealth> getHealth(final IAthlete athlete) { return healthDao.getHealth(athlete); }