Package com.freewebsys.sns.service

Examples of com.freewebsys.sns.service.MessageException


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


      // 设置信箱状态-发件箱
      messageLogMe.setStatus(2);

      baseDao.save(messageLogMe);
    } catch (Exception e) {
      throw new MessageException("Message保存异常");
    }
  }
View Full Code Here

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

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

TOP

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

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.