Package com.freewebsys.sns.service

Examples of com.freewebsys.sns.service.FriendException


      String hql = " from Friend friend where friend.userId = ? and friend.friend.id = ?";
      Friend friend = (Friend) baseDao
          .findFirstOne(hql, userId, friendId);
      baseDao.delete(friend);
    } catch (Exception e) {
      throw new FriendException("Friend删除异常");
    }
  }
View Full Code Here


        friend.setCreateTime(new Date());
        friend.setStatus(0);
        baseDao.save(friend);
      }
    } catch (Exception e) {
      throw new FriendException("Friend保存异常");
    }
  }
View Full Code Here

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

          System.out.println(status);
        }
      }
      return pageConf;
    } catch (Exception e) {
      throw new FriendException("Friend分页异常");
    }
  }
View Full Code Here

      Object[] values = CommonDaoUtil.commonQuery(map);
      hql += values[0].toString();
      // Object[]需要进行强制转换.
      return baseDao.findPage(start, limit, hql, (Object[]) values[1]);
    } catch (Exception e) {
      throw new FriendException("Friend分页异常");
    }
  }
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 FriendException("查询Friend全部异常");
    }
  }
View Full Code Here

    try {
      String hql = " select module from UserInfo module where module.name = ? ";
      // 通用查询匹配
      return baseDao.findPage(start, limit, hql, name);
    } catch (Exception e) {
      throw new FriendException("查询Friend异常");
    }
  }
View Full Code Here

TOP

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

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.