Package com.freewebsys.sns.service

Examples of com.freewebsys.sns.service.UserVisitorException


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


  @Transactional
  public void saveUserVisitor(UserVisitor userVisitor) throws UserVisitorException {
    try {
      baseDao.save(userVisitor);
    } catch (Exception e) {
      throw new UserVisitorException("UserVisitor保存异常");
    }
  }
View Full Code Here

  @Transactional
  public UserVisitor findUserVisitorById(Integer id) throws UserVisitorException {
    try {
      return (UserVisitor) baseDao.findById(UserVisitor.class, id);
    } catch (Exception e) {
      throw new UserVisitorException("UserVisitor按ID查询异常");
    }
  }
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 UserVisitorException("UserVisitor分页异常");
    }
  }
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 UserVisitorException("查询UserVisitor全部异常");
    }
  }
View Full Code Here

TOP

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

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.