public void insert(TemperatureStatus t) {
      Object[] args=new Object[2];
      args[0]=t.pv;
      args[1]="";
      if (t.cooling) args[1]="cooling";
      if (t.heating) args[1]="heating";
      if (t.heating && t.cooling) args[1]="heating,cooling";
      String sql="replace into pv set pv=?,output=?";
      tp.update(sql,args);
    }