@Override public void deleteRoute(final IRoute route) { routeDao.delete(route.getId()); RouteCache.getInstance().remove(route.getName()); }
@Override public final void saveOrUpdate(final IRoute route) { routeDao.saveOrUpdate(route); RouteCache.getInstance().addAll(Arrays.asList(route)); }