Examples of save()


Examples of com.google.devtools.depan.eclipse.persist.ObjectXmlPersist.save()

  public void doSave(IProgressMonitor monitor) {
    try {
      // TODO(leeca):  Is this configured with the correct XStream flavor?
      ObjectXmlPersist persist =
          new ObjectXmlPersist(XStreamFactory.getSharedRefXStream());
      persist.save(uri, migrationTask);
      setDirtyState(false);
    } catch (IOException errIo) {
      monitor.setCanceled(true);
      throw new RuntimeException(
          "Unable to save migration task to " + uri, errIo);
View Full Code Here

Examples of com.google.devtools.depan.eclipse.persist.XmlPersistentPathExpression.save()

      String fullPath = FILE_PREFIX
          + Platform.getLocation().append(filePath).toOSString();
      XmlPersistentPathExpression persist = new XmlPersistentPathExpression();

      try {
        persist.save(new URI(fullPath), list);
      } catch (IOException e) {
        System.err.println("I/O Exception.");
        e.printStackTrace();
      } catch (URISyntaxException e) {
        System.err.println("Malformed URI! Check the filename!");
View Full Code Here

Examples of com.google.enterprise.connector.notes.client.NotesDocument.save()

    deleteReq.appendItemValue(NCCONST.ITMFORM, NCCONST.FORMCRAWLREQUEST);
    deleteReq.replaceItemValue(NCCONST.ITM_ACTION,
        ActionType.DELETE.toString());
    deleteReq.replaceItemValue(NCCONST.ITM_DOCID, googleDocId);
    deleteReq.replaceItemValue(NCCONST.NCITM_STATE, NCCONST.STATEFETCHED);
    deleteReq.save(true);
    deleteReq.recycle();
  }

  /**
   * Creates a document for an attachment in the GSA Configuration database.  If
View Full Code Here

Examples of com.google.gwt.canvas.dom.client.Context2d.save()

  }
 
  @Override
  public void visit(Surface surface) {
    Context2d context = surface.getContext();
    context.save();
    context.translate(x + width / 2, y + height / 2);
    context.scale(width / 2, height / 2);
    context.arc(0, 0, 1, 0, MathHelper.TWO_PI, true);
    context.restore();
  }
View Full Code Here

Examples of com.google.k2crypto.storage.K2Storage.save()

      // Problem building key
      throw ex;
    }
   
    // Quickly save it (the native driver recognizes file:// addresses)
    storage.save(NATIVE_STORE.toURI(), original);
   
    // Quickly load it back
    Key loaded = storage.load(NATIVE_STORE.toURI());
    assert(original.buildData().build().equals(loaded.buildData().build()));
   
View Full Code Here

Examples of com.google.k2crypto.storage.Store.save()

      // Open a SQLite database store
      store = storage.open(
          "sqlite:" + SQLITE_DATABASE.toURI().getRawPath() + "#samekey");
     
      // Save previously loaded key
      store.save(loaded);
     
      // Check store is not empty and load key back
      if (!store.isEmpty()) {
        Key sameKey = store.load();
        assert(loaded.buildData().build().equals(sameKey.buildData().build()));
View Full Code Here

Examples of com.google.refine.model.Row.save()

    @Test
    public void saveRow() {
        Row row = new Row(5);
        row.setCell(0, new Cell("I'm not empty", null));
        row.save(writer, options);
        Assert.assertEquals(writer.getBuffer().toString(),
                "{\"flagged\":false,\"starred\":false,\"cells\":[{\"v\":\"I'm not empty\"}]}");
    }

    @Test
View Full Code Here

Examples of com.google.refine.util.Pool.save()

                out.closeEntry();
            }

            out.putNextEntry(new ZipEntry("pool.txt"));
            try {
                pool.save(out);
            } finally {
                out.closeEntry();
            }
        } finally {
            out.close();
View Full Code Here

Examples of com.google.tchotchke.model.VideoSubmission.save()

    PersistenceManager pm = PMF.get().getPersistenceManager();

    try {
      VideoSubmission newSubmission = new VideoSubmission(videoId, articleId,
          uploader, authSubToken);
      newSubmission.save(pm);
    } finally {
      pm.close();
    }

  }
View Full Code Here

Examples of com.googlecode.objectify.Objectify.save()

        if(today.Reports > 200)
        {
         // System.out.println("200 Reports in day " + PACKAGE_NAME + " DISCARDING NEW");
          log.severe("200 Reports in day " + PACKAGE_NAME + " DISCARDING NEW");
          appPackage.enabled = false;
          ofy.save().entity(appPackage).now();
         
          // email app owner.
          SendAppTooManyEMail(appUser,appPackage,today);
         
         
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.