Examples of FriendBlackException


Examples of com.freewebsys.sns.service.FriendBlackException

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

Examples of com.freewebsys.sns.service.FriendBlackException

  @Transactional
  public void saveFriendBlack(FriendBlack friendBlack) throws FriendBlackException {
    try {
      baseDao.save(friendBlack);
    } catch (Exception e) {
      throw new FriendBlackException("FriendBlack保存异常");
    }
  }
View Full Code Here

Examples of com.freewebsys.sns.service.FriendBlackException

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

Examples of com.freewebsys.sns.service.FriendBlackException

      Object[] values = CommonDaoUtil.commonQuery(map);
      hql += values[0].toString();
      // Object[]需要进行强制转换.
      return baseDao.findPage(start, limit, hql, (Object[]) values[1]);
    } catch (Exception e) {
      throw new FriendBlackException("FriendBlack分页异常");
    }
  }
View Full Code Here

Examples of com.freewebsys.sns.service.FriendBlackException

      Object[] values = CommonDaoUtil.commonQuery(map);
      hql += values[0].toString();
      // Object[]需要进行强制转换.
      return baseDao.find(hql, (Object[]) values[1]);
    } catch (Exception e) {
      throw new FriendBlackException("查询FriendBlack全部异常");
    }
  }
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.