Examples of DailyReportContent


Examples of com.dianping.cat.home.dal.report.DailyReportContent

    try {
      report.setContent("");
      m_dailyReportDao.insert(report);

      int id = report.getId();
      DailyReportContent proto = m_dailyReportContentDao.createLocal();

      proto.setReportId(id);
      proto.setContent(content);
      m_dailyReportContentDao.insert(proto);
      return true;
    } catch (DalException e) {
      Cat.logError(e);
      return false;
View Full Code Here

Examples of com.dianping.cat.home.dal.report.DailyReportContent

      return config;
    }
  }

  private RouterConfig queryFromDailyBinary(int id) throws DalException {
    DailyReportContent content = m_dailyReportContentDao.findByPK(id, DailyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return null;
    }
  }
View Full Code Here

Examples of com.dianping.cat.home.dal.report.DailyReportContent

    bugReport.setEndTime(end);
    return bugReport;
  }

  private BugReport queryFromDailyBinary(int id, String domain) throws DalException {
    DailyReportContent content = m_dailyReportContentDao.findByPK(id, DailyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new BugReport(domain);
    }
  }
View Full Code Here

Examples of com.dianping.cat.home.dal.report.DailyReportContent

    eventReport.setEndTime(end);
    return eventReport;
  }

  private EventReport queryFromDailyBinary(int id, String domain) throws DalException {
    DailyReportContent content = m_dailyReportContentDao.findByPK(id, DailyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new EventReport(domain);
    }
  }
View Full Code Here

Examples of com.dianping.cat.home.dal.report.DailyReportContent

    utilizationReport.setEndTime(end);
    return utilizationReport;
  }

  private UtilizationReport queryFromDailyBinary(int id, String domain) throws DalException {
    DailyReportContent content = m_dailyReportContentDao.findByPK(id, DailyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new UtilizationReport(domain);
    }
  }
View Full Code Here

Examples of com.dianping.cat.home.dal.report.DailyReportContent

    matrixReport.setEndTime(end);
    return matrixReport;
  }

  private MatrixReport queryFromDailyBinary(int id, String domain) throws DalException {
    DailyReportContent content = m_dailyReportContentDao.findByPK(id, DailyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new MatrixReport(domain);
    }
  }
View Full Code Here

Examples of com.dianping.cat.home.dal.report.DailyReportContent

    serviceReport.setEndTime(end);
    return serviceReport;
  }

  private ServiceReport queryFromDailyBinary(int id, String domain) throws DalException {
    DailyReportContent content = m_dailyReportContentDao.findByPK(id, DailyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new ServiceReport(domain);
    }
  }
View Full Code Here

Examples of com.dianping.cat.home.dal.report.DailyReportContent

    stateReport.setEndTime(end);
    return stateReport;
  }

  private StateReport queryFromDailyBinary(int id, String domain) throws DalException {
    DailyReportContent content = m_dailyReportContentDao.findByPK(id, DailyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new StateReport(domain);
    }
  }
View Full Code Here

Examples of com.dianping.cat.home.dal.report.DailyReportContent

    }
    return new AlertReport(domain);
  }

  private AlertReport queryFromDailyBinary(int id, String domain) throws DalException {
    DailyReportContent content = m_dailyReportContentDao.findByPK(id, DailyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new AlertReport(domain);
    }
  }
View Full Code Here

Examples of com.dianping.cat.home.dal.report.DailyReportContent

    crossReport.setEndTime(end);
    return crossReport;
  }

  private CrossReport queryFromDailyBinary(int id, String domain) throws DalException {
    DailyReportContent content = m_dailyReportContentDao.findByPK(id, DailyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new CrossReport(domain);
    }
  }
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.