Package com.freewebsys.sns.service

Examples of com.freewebsys.sns.service.FeedTemplateException


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


  @Transactional
  public void saveFeedTemplate(FeedTemplate feedTemplate) throws FeedTemplateException {
    try {
      baseDao.save(feedTemplate);
    } catch (Exception e) {
      throw new FeedTemplateException("FeedTemplate保存异常");
    }
  }
View Full Code Here

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

TOP

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

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.