Пример #1
0
 @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);
   }
 }
Пример #2
0
 @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);
   }
 }
Пример #3
0
 @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);
   }
 }
Пример #4
0
 @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);
   }
 }