Package com.freewebsys.sns.service

Examples of com.freewebsys.sns.service.FeedUserException


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


  @Transactional
  public void saveFeedUser(FeedUser feedUser) throws FeedUserException {
    try {
      baseDao.save(feedUser);
    } catch (Exception e) {
      throw new FeedUserException("FeedUser保存异常");
    }
  }
View Full Code Here

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

TOP

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

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.