Examples of save()


Examples of org.rssowl.core.internal.persist.dao.EntitiesToBeIndexedDAOImpl.save()

          LongArrayList list = new LongArrayList(newsRefs.size());
          for (NewsReference newsRef : newsRefs)
            list.add(newsRef.getId());
          EntityIdsByEventType entityIdsByEventType = dao.load();
          entityIdsByEventType.removeAll(list, list, list);
          dao.save(entityIdsByEventType);
        }
      };
      EntityIdsByEventType outstandingNewsIds = dao.load();
      List<NewsReference> persistedEntityRefs = outstandingNewsIds.getPersistedEntityRefs();
      if (!persistedEntityRefs.isEmpty())
View Full Code Here

Examples of org.rssowl.core.persist.dao.IFeedDAO.save()

    FeedReference feedRef = feedDAO.loadReference(uriObj[0]);

    /* Create a new Feed then */
    if (feedRef == null) {
      IFeed feed = Owl.getModelFactory().createFeed(null, uriObj[0]);
      feed = feedDAO.save(feed);
    }

    /* Create the BookMark */
    IFolder parent = fBookMarkDefinitionPage.getFolder();

View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.source.editors.EditingTarget.save()

         {
            @Override
            public void execute(EditingTarget saveTarget,
                                Command continuation)
            {        
               saveTarget.save(continuation);
            }
         },
        
         // onCompleted at the end
         onCompleted
View Full Code Here

Examples of org.securegraph.VertexBuilder.save()

            VertexBuilder v = getGraph().prepareVertex(profileImageId, data.getVisibility());
            LumifyProperties.TITLE.setProperty(v, "Profile Image of " + userTitle, data.getVisibility());
            LumifyProperties.RAW.setProperty(v, imageValue, data.getVisibility());
            LumifyProperties.CONCEPT_TYPE.setProperty(v, TwitterOntology.CONCEPT_TYPE_PROFILE_IMAGE, data.getVisibility());
            profileImageVertex = v.save(getAuthorizations());
            LOGGER.debug("created vertex: %s", profileImageVertex.getId());

            getGraph().addEdge((Vertex) data.getElement(), profileImageVertex, entityHasImageIri, data.getVisibility(), getAuthorizations());
            LumifyProperties.ENTITY_IMAGE_VERTEX_ID.setProperty(data.getElement(), profileImageVertex.getId(), data.getVisibility(), getAuthorizations());
            getGraph().flush();
View Full Code Here

Examples of org.securegraph.mutation.ExistingElementMutation.save()

                m.addPropertyValue(translatedTextPropertyKey, data.getProperty().getName(), translatedTextValue, metadata, data.getProperty().getVisibility());
                translated = true;
            }
        }

        m.save(getAuthorizations());

        if (translated) {
            getGraph().flush();
            getWorkQueueRepository().pushGraphPropertyQueue(data.getElement(), translatedTextPropertyKey, data.getProperty().getName(), data.getWorkspaceId(), data.getVisibilitySource());
        }
View Full Code Here

Examples of org.securegraph.tools.GraphBackup.save()

        OutputStream out = response.getOutputStream();
        try {
            GraphBackup graphBackup = new GraphBackup();
            graphBackup.saveVertex(workspaceVertex, out);
            graphBackup.save(vertices, edges, out);
        } finally {
            out.close();
        }
    }
View Full Code Here

Examples of org.sf.jlaunchpad.xml.ProxiesXmlHelper.save()

    // set up local repository value
    localRepository.setText(repositoryHome.replace(File.separatorChar, '/'));

    xmlHelper.process(launcherProps);

    xmlHelper.save(outSettings);
  }

  private void install(String name) throws Exception {
    System.out.println("Installing \"" + name + "\" project...");
View Full Code Here

Examples of org.snmp4j.agent.SerializableManagedObject.save()

    output.writeSequence(new Sequence(mos.size()));
    for (Iterator it = mos.values().iterator(); it.hasNext(); ) {
      SerializableManagedObject mo = (SerializableManagedObject) it.next();
      MOInfo moInfo = new MOInfo(mo.getID());
      output.writeManagedObjectBegin(moInfo);
      mo.save(output);
      output.writeManagedObjectEnd(moInfo);
    }
  }
}
View Full Code Here

Examples of org.sonar.api.batch.sensor.test.TestCaseExecution.save()

        .message(StringUtils.trimToNull(message))
        .stackTrace(StringUtils.trimToNull(stack));
      if (durationStr != null) {
        test.durationInMs(Long.parseLong(durationStr));
      }
      test.save();
    } catch (Exception e) {
      throw new IllegalStateException("Error processing line " + lineNumber + " of file " + testplanFile.getAbsolutePath(), e);
    }
  }
View Full Code Here

Examples of org.sonar.api.measures.FileLinesContext.save()

    int fileLength = getContext().peekSourceCode().getInt(EcmaScriptMetric.LINES);
    for (int line = 1; line <= fileLength; line++) {
      fileLinesContext.setIntValue(CoreMetrics.NCLOC_DATA_KEY, line, linesOfCode.contains(line) ? 1 : 0);
      fileLinesContext.setIntValue(CoreMetrics.COMMENT_LINES_DATA_KEY, line, linesOfComments.contains(line) ? 1 : 0);
    }
    fileLinesContext.save();

    linesOfCode.clear();
    linesOfComments.clear();
  }
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.