Package com.narirelays.ems.persistence.orm

Examples of com.narirelays.ems.persistence.orm.WinccMeasure


    {
      //历史查询时,需要返回计量点path供前台显示
      String measureID = cell.getMeasureId();
      if(measureID!=null)
      {
        WinccMeasure measure = winccMeasureDAO.findById(measureID);
        if(measure!=null) bean.set("path", measure.getPath());
      }     
    }
//    bean.set("queryType", cell.getQueryType());
//    bean.set("timeVar", cell.getTimeVar());
//    if(cell.getQueryType().equalsIgnoreCase("single")||cell.getQueryType().equalsIgnoreCase("serial"))
View Full Code Here


  /**
   * 从wincc中获取数据的driver
   * */
  private Double getSigleValueFromWinCC(String measureID, Date time)
  {
    WinccMeasure measure = winccMeasureDAO.findById(measureID);
    if(measure==null)
      return null;
   
    String tableName = measure.getTableName();
    String colName = measure.getColName();
    return WinccUtility.getSingleValueFromWincc(jdbcTemplate, tableName, colName, time);
  }
View Full Code Here

      String tableName = (String)bean.get("tableName");
      String colName = (String)bean.get("colName");
      String path = new StringBuffer().append("/").append(tableName).append("/").append(colName).toString();
      if(!hashTable.containsKey(path))//测点不在wincc计量表中,则添加
      {
        WinccMeasure measure = new WinccMeasure();
        measure.setId(MyUUIDGen.getUUID());
        measure.setTableName(tableName);
        measure.setColName(colName);
        measure.setPath(path);
        winccMeasureDAO.merge(measure);
      }
      else//测点在计量表中
      {
        //不需判断点是否变化,因为点不会发生变化
View Full Code Here

TOP

Related Classes of com.narirelays.ems.persistence.orm.WinccMeasure

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.