Examples of update()


Examples of com.google.appengine.tools.admin.AppAdmin.update()

                new PrintWriter(System.err, true)
            );

            getExecutor().execute(new Runnable() {
                public void run() {
                    appAdmin.update(listener);
                }
            });

            Status status;
            synchronized (this) {
View Full Code Here

Examples of com.google.appengine.tools.mapreduce.impl.util.Crc32c.update()

  private static boolean isValidCrc(int checksum, ByteBuffer data, byte type) {
    if (checksum == 0 && type == 0) {
      return true;
    }
    Crc32c crc = new Crc32c();
    crc.update(type);
    crc.update(data.array(), 0, data.limit());

    return LevelDbConstants.unmaskCrc(checksum) == crc.getValue();
  }
View Full Code Here

Examples of com.google.code.hs4j.ModifyStatement.update()

    stmt = this.session.createStatement();
    stmt.setInt(1, 1);
    stmt.setString(2, "dennis");
    stmt.setString(3, "test@163.com");
    stmt.setInt(4, 109);
    assertEquals(1, stmt.update(keys, FindOperator.EQ));

    // find twice
    rs = this.session.find(new String[] { "dennis" });
    assertTrue(rs.next());
View Full Code Here

Examples of com.google.devrel.training.conference.domain.Profile.update()

            // Now create a new Profile entity
            profile = new Profile(userId, displayName, mainEmail, teeShirtSize);
        } else {
            // The Profile entity already exists
            // Update the Profile entity
            profile.update(displayName, teeShirtSize);
        }

        // TODO 3
        // Save the entity in the datastore
        ofy().save().entity(profile).now();
View Full Code Here

Examples of com.google.gdata.client.GoogleService.update()

        newEntry.setTitle(new PlainTextConstruct("Sample entry title"));
        newEntry.setContent(new PlainTextConstruct("Sample entry content"));
        BaseEntry e = service.insert(feedUrl, newEntry);
        System.out.println("Inserted an entry, ID is " + e.getId());
        e.setContent(new PlainTextConstruct("New sample entry content"));
        service.update(new URL(e.getEditLink().getHref()), e);
        System.out.println("Updated the entry");
        service.delete(new URL(e.getEditLink().getHref()));
        System.out.println("Deleted the entry");
      }
View Full Code Here

Examples of com.google.gdata.data.calendar.CalendarEventEntry.update()

            CalendarEventEntry insertedEntry = service.insert(
                    new URL("http://www.google.com/calendar/feeds/default/private/full"),
                    entry
            );
            setupReminder(insertedEntry);
            insertedEntry.update();
        } catch (IOException | ServiceException e) {
            throw new SmsSendException("Can't add calendar event.", e);
        }
    }
View Full Code Here

Examples of com.google.gdata.data.contacts.ContactEntry.update()

    } else {
      ContactEntry contact = buildContact(parameters);
      // get the contact then update it
      ContactEntry canonicalContact = getContactInternal(parameters.getId());
      ElementHelper.updateContact(canonicalContact, contact);
      printContact(canonicalContact.update());
    }
  }

  /**
   * Gets a contact by it's id.
View Full Code Here

Examples of com.google.gdata.data.contacts.ContactGroupEntry.update()

          canonicalGroup.getExtendedProperties();
      extendedProperties.clear();
      if (group.hasExtendedProperties()) {
        extendedProperties.addAll(group.getExtendedProperties());
      }
      printGroup(canonicalGroup.update());
    } else {
      ContactEntry contact = buildContact(parameters);
      // get the contact then update it
      ContactEntry canonicalContact = getContactInternal(parameters.getId());
      ElementHelper.updateContact(canonicalContact, contact);
View Full Code Here

Examples of com.google.gdata.data.docs.DocumentListEntry.update()

  @Override
  public DocumentServiceEntry renameDocument(String documentId, String newTitle) throws DocumentServiceException {
    DocumentListEntry entry = getDocumentEntry(documentId);
    try {
      entry.setTitle(new PlainTextConstruct(newTitle));
      entry.update();
      return getDocument(documentId);
    } catch (Exception e) {
      e.printStackTrace();
      throw new DocumentServiceException(e.getMessage());
    }
View Full Code Here

Examples of com.google.gdata.data.spreadsheet.ListEntry.update()

    if (baseEditUrl != null) {
      ssEntry.getCustomElements().setValueLocal(
          baseUrlFieldName,
          baseEditUrl);
    }
    ssEntry.update();
  }
  /**
   * Retrieves a <code>List</code> of <code>SpreadsheetEntry</code> instances
   * available from the list of Spreadsheets accessible from the authenticated
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.