Examples of MiniException


Examples of com.freewebsys.sns.service.MiniException

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

Examples of com.freewebsys.sns.service.MiniException

      mini.setCommentCount(0);
      mini.setFeedId(0);
      mini.setCreateTime(new Date());
      baseDao.save(mini);
    } catch (Exception e) {
      throw new MiniException("Mini保存异常");
    }
  }
View Full Code Here

Examples of com.freewebsys.sns.service.MiniException

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

Examples of com.freewebsys.sns.service.MiniException

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

Examples of com.freewebsys.sns.service.MiniException

      Object[] values = CommonDaoUtil.commonQuery(map);
      hql += values[0].toString();
      // Object[]需要进行强制转换.
      return baseDao.find(hql, (Object[]) values[1]);
    } catch (Exception e) {
      throw new MiniException("查询Mini全部异常");
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.