Package com.freewebsys.sns.service

Examples of com.freewebsys.sns.service.BlogException


        }
      } else {
        return null;
      }
    } catch (Exception e) {
      throw new BlogException("Blog分页异常");
    }
  }
View Full Code Here


      } else {
        return null;
      }
    } catch (Exception e) {
      throw new BlogException("Blog分页异常");
    }
  }
View Full Code Here

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

      baseDao.save(blog);

      feedService.saveFeed(blog);
    } catch (Exception e) {
      throw new BlogException("Blog保存异常");
    }
  }
View Full Code Here

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

        }
      } else {
        return null;
      }
    } catch (Exception e) {
      throw new BlogException("Blog分页异常");
    }
  }
View Full Code Here

      } else {
        return null;
      }
    } catch (Exception e) {
      throw new BlogException("Blog分页异常");
    }
  }
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 BlogException("查询Blog全部异常");
    }
  }
View Full Code Here

TOP

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

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.