示例#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);
   }
 }