Package com.freewebsys.sns.service

Examples of com.freewebsys.sns.service.PhotoException


  public void deletePhotoById(Integer id) throws PhotoException {
    try {
      Photo photo = (Photo) baseDao.findById(Photo.class, id);
      baseDao.delete(photo);
    } catch (Exception e) {
      throw new PhotoException("Photo删除异常");
    }
  }
View Full Code Here


        photo.setUserInfo(userInfo);
        baseDao.save(photo);
      }
    } catch (Exception e) {
      throw new PhotoException("Photo保存异常");
    }
  }
View Full Code Here

  @Transactional
  public Photo findPhotoById(Integer id) throws PhotoException {
    try {
      return (Photo) baseDao.findById(Photo.class, id);
    } catch (Exception e) {
      throw new PhotoException("Photo按ID查询异常");
    }
  }
View Full Code Here

      Object[] values = CommonDaoUtil.commonQuery(map);
      hql += values[0].toString();
      // Object[]需要进行强制转换.
      return baseDao.find(hql, (Object[]) values[1]);
    } catch (Exception e) {
      throw new PhotoException("查询Photo全部异常");
    }
  }
View Full Code Here

TOP

Related Classes of com.freewebsys.sns.service.PhotoException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.