コード例 #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);
   }
 }