Пример #1
0
 @Override
 public final int saveOrUpdate(final IHealth health) {
   final int id = healthDao.saveOrUpdate(health);
   HealthCache.getInstance().addAll(Arrays.asList(health));
   return id;
 }
Пример #2
0
 @Override
 public final IHealth getHealth(final IAthlete athlete, final Date date) {
   return healthDao.getHealth(athlete, date);
 }
Пример #3
0
 @Override
 public final void removeHealth(final int id) {
   healthDao.remove(id);
   HealthCache.getInstance().remove(id);
 }
Пример #4
0
 // -------------------------------healthDao--------------------------------------------------
 @Override
 public final List<IHealth> getHealth(final IAthlete athlete) {
   return healthDao.getHealth(athlete);
 }