Package com.dianping.cat.home.dal.report

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


      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

    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

    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

    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

    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

    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

    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

    }
    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

    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

Related Classes of com.dianping.cat.home.dal.report.DailyReportContent

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.