@Override public List<FoodType> getAll(String typeName) { try { // TODO Auto-generated method stub return foodTypeDao.getAll(typeName); } catch (Exception e) { // TODO: handle exception throw new RuntimeException(e); } }
@Override public void delete(int id) { try { // TODO Auto-generated method stub foodTypeDao.delete(id); } catch (Exception e) { // TODO: handle exception throw new RuntimeException(e); } }
@Override public FoodType findById(int id) { try { // TODO Auto-generated method stub return foodTypeDao.findById(id); } catch (Exception e) { // TODO: handle exception throw new RuntimeException(e); } }
@Override public void update(FoodType foodType) { try { // TODO Auto-generated method stub foodTypeDao.update(foodType); } catch (Exception e) { // TODO: handle exception throw new RuntimeException(e); } }