Examples of PhotoException


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

Examples of com.freewebsys.sns.service.PhotoException

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

Examples of com.freewebsys.sns.service.PhotoException

  @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

Examples of com.freewebsys.sns.service.PhotoException

      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
Copyright © 2018 www.massapi.com. 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.