Examples of OtgObject


Examples of com.services.otg.dom.OtgObject

  private ReferenceItem version;

  public OtgObject test() {

    OtgObject o = new OtgObject();
    o.setFailureReason("testing successful");
    return o;
  }
View Full Code Here

Examples of com.services.otg.dom.OtgObject

    return trackingTemplate.insertTrackingAction(deviceId, action, null);
  }

  public OtgObject trackAction(String deviceId, String action, String view, String payload) {

    OtgObject o = new OtgObject();
    o.setFailureReason("track Action post-style: " + action +"--"+view+"--"+deviceId+"--"+payload);
    return o;
  }
View Full Code Here

Examples of com.services.otg.dom.OtgObject

        if (null != success) resp+= success;
        it.remove();
     
      }
    }
    if (resp.length() > 1 ) return new OtgObject(resp);
    return new OtgObject();
  }
View Full Code Here

Examples of com.services.otg.dom.OtgObject

        }
        details.put(key, jsonObject.get(key).toString());
      }
    } catch (Exception e) {
      e.printStackTrace();
      return new OtgObject(e.getLocalizedMessage());
    }
   
    return insertTrackingAction(devId, action, details);
  }
View Full Code Here

Examples of com.services.otg.dom.OtgObject

    String sql = "{CALL sp_insert_error_text('"+devId + "','"+ errorTxt +"')}";
    try {
      jdbc.execute(sql);
    } catch (Exception e) {
      e.printStackTrace();
      return new OtgObject(e.getMessage());
    }

    return new OtgObject();

  }
View Full Code Here

Examples of com.services.otg.dom.OtgObject

    String sql = "{sp_insert_error_text("+devId + ","+ errorTxt +")}";
    try {
      jdbc.execute(sql);
    } catch (Exception e) {
      e.printStackTrace();
      return new OtgObject(e.getMessage());
    }

    return new OtgObject();

  }
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.