Example #1
0
 @Override
 public Area queryAreaById(long id) throws ManagerException {
   try {
     return areaDao.selectOneArea(id);
   } catch (DAOException e) {
     throw new ManagerException(e.getMessage(), e);
   }
 }
Example #2
0
 @Override
 public int editArea(Area area) throws ManagerException {
   try {
     return areaDao.updateArea(area);
   } catch (DAOException e) {
     throw new ManagerException(e.getMessage(), e);
   }
 }
Example #3
0
 @Override
 public List<Area> queryAreaList(QueryArea queryArea, PagingList<Area> areaPage)
     throws ManagerException {
   try {
     return areaDao.selectAreaList(queryArea, areaPage);
   } catch (DAOException e) {
     throw new ManagerException(e.getMessage(), e);
   }
 }