Examples of FriendGroupException


Examples of com.freewebsys.sns.service.FriendGroupException

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

Examples of com.freewebsys.sns.service.FriendGroupException

  @Transactional
  public void saveFriendGroup(FriendGroup friendGroup) throws FriendGroupException {
    try {
      baseDao.save(friendGroup);
    } catch (Exception e) {
      throw new FriendGroupException("FriendGroup保存异常");
    }
  }
View Full Code Here

Examples of com.freewebsys.sns.service.FriendGroupException

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

Examples of com.freewebsys.sns.service.FriendGroupException

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

Examples of com.freewebsys.sns.service.FriendGroupException

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