Examples of keys()


Examples of com.google.apphosting.api.DatastorePb.DeleteRequest.keys()

            removeCacheByEntity(putrequest.entitys());
        }
        if (methodName.equals("Delete")) {
            DeleteRequest pbrequest = new DeleteRequest();
            pbrequest.mergeFrom(request);
            removeCache(pbrequest.keys());
        }
        return baseDelegate.makeAsyncCall(environment, packageName, methodName, request, apiConfig);
    }

    public byte[] makeSyncCall(E environment, String packageName,
View Full Code Here

Examples of com.google.apphosting.api.DatastorePb.PutResponse.keys()

        byte[] responseBuf =
            parentDelegate.makeSyncCall(env, service, method, requestBuf);
        if (DATASTORE_SERVICE.equals(service) && PUT_METHOD.equals(method)) {
            PutResponse response = new PutResponse();
            response.mergeFrom(responseBuf);
            for (Reference r : response.keys()) {
                datastoreKeys.add(DatastoreUtil.referenceToKey(r));
            }
        } else if (service.equals(MAIL_SERVICE)
            && method.startsWith(SEND_METHOD)) { // Send[ToAdmins]
            MailMessage messagePb = new MailMessage();
View Full Code Here

Examples of com.google.gwt.query.client.Properties.keys()

   * TODO: jquery implementation accepts a second parameter (traditional)
   */
  public static String param(JavaScriptObject js) {
    Properties prop = js.cast();
    String ret = "";
    for (String k : prop.keys()) {
      ret += ret.isEmpty() ? "" : "&";
      JsCache o = prop.getArray(k).cast();
      if (o != null) {
        for (int i = 0, l = o.length(); i < l ; i++) {
          ret += i > 0 ? "&" : "";
View Full Code Here

Examples of com.google.gwt.query.client.js.JsCache.keys()

    c.put(1, null);
    c.put("X", "X");
    assertNull(c.get(1));
    assertEquals(slist[2], c.get(2));
    assertEquals(7, c.length());
    assertEquals(7, c.keys().length);
    assertEquals(7, c.elements().length);

    assertTrue(c.exists(2));
    assertFalse(c.exists(3));
    assertTrue(c.exists("X"));
View Full Code Here

Examples of com.liferay.portal.kernel.json.JSONObject.keys()

    PortletPreferences portletSetup =
      PortletPreferencesFactoryUtil.getLayoutPortletSetup(
        layout, portletId);

    Iterator<String> iterator = portletPreferencesJSONObject.keys();

    while (iterator.hasNext()) {
      String key = iterator.next();

      String value = portletPreferencesJSONObject.getString(key);
View Full Code Here

Examples of com.mcbans.firestar.mcbans.org.json.JSONObject.keys()

            return out;
        }
       
        JSONObject output = this.get_data(json_text);
        if (output != null) {
            Iterator<String> i = output.keys();
            if (i != null) {
                while (i.hasNext()) {
                    String next = i.next();
                    try {
                        out.put(next, output.getString(next));
View Full Code Here

Examples of com.mysema.query.sql.dml.SQLMergeClause.keys()

            .keys(survey.id)
            .set(survey.id, 5)
            .set(survey.name, "5")
            .addBatch();

        merge
            .keys(survey.id)
            .set(survey.id, 6)
            .set(survey.name, "6")
            .addBatch();
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDMap.keys()

      Name = obj.get("name").asString();
      Location = obj.get("location").asVector3d();
      GroupOwned = obj.get("is_group_owned").asBoolean();
      OwnerID = obj.get("owner_id").asUUID();
      OSDMap resources = (OSDMap)obj.get("resources");
      Resources = new HashMap<String, Integer>(resources.keys().size());
      for (Entry<String, OSD> kvp : resources.entrySet())
      {
        Resources.put(kvp.getKey(), kvp.getValue().asInteger());
      }
    }
View Full Code Here

Examples of com.restfb.json.JsonObject.keys()

      // request the client sends all the queries in fqlByQueryIndex to Facebook
      // in one go and have the raw JsonObject be returned
      JsonObject response = facebookClient.executeFqlMultiquery(fqlByQueryIndex, JsonObject.class);

      // transform the response into a Map
      for (Iterator<?> it = response.keys(); it.hasNext();) {
        String key = (String) it.next();
        JsonArray innerResult = (JsonArray) response.get(key);

        try {
          // resolve the map key back into a date
View Full Code Here

Examples of com.senseidb.util.JSONUtil.FastJSONObject.keys()

    if (query == null) return;

    try
    {
      JSONObject jsonObj = new FastJSONObject(query.toString());
      Iterator iter = jsonObj.keys();

      final String format = "%s:%s";

      while (iter.hasNext()) {
        String key = (String) iter.next();
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.