Examples of save()


Examples of org.mitre.oval.xmlSchema.ovalVariables5.OvalVariablesDocument.save()

            exec.setResultsFile(resultFile);

            OvalVariablesDocument variablesDocument = getVariablesDocument(getExports(), config);
            if (variablesDocument != null) {
          File variablesFile = resultContext.getAuxiliaryFile("oval-variables_", ".xml");
                variablesDocument.save( variablesFile, new XmlOptions().setSavePrettyPrint() );
                exec.setExternalVariableFile( variablesFile );
                variablesDocumentContent = new FileResultContent(variablesFile);
            }

            Set<String> defList = getCheckedDefinitions();
View Full Code Here

Examples of org.mitre.oval.xmlSchema.ovaldi.evalids.EvalutationDefinitionIdsDocument.save()

            Set<String> defList = getCheckedDefinitions();
            if (!defList.isEmpty()) {
                EvalutationDefinitionIdsDocument evaluatedDefinitionsDocument = getEvaluatedDefinitionsDocument(defList);
                if (evaluatedDefinitionsDocument != null) {
                    File evaluatedDefinitionsFile = resultContext.getAuxiliaryFile("oval-evaluation-ids_", ".xml");
                    evaluatedDefinitionsDocument.save(evaluatedDefinitionsFile, new XmlOptions().setSavePrettyPrint());
                    exec.setExternalEvaluatedDefinitionsFile(evaluatedDefinitionsFile);
                    evaluationIdsDocumentContent = new FileResultContent(evaluatedDefinitionsFile);
                }
            }
View Full Code Here

Examples of org.modeshape.jcr.JcrSession.save()

        ((Node) session.getRootNode()).addNode(outputNode);

        InputStream resourceAsStream = getClass().getClassLoader().getResourceAsStream("sequencer/zip_file_1.zip");
        assertNotNull(resourceAsStream);
        jcrTools.uploadFile(session, "/testRoot/zip", resourceAsStream);
        session.save();

        String outputPath = "/" + outputNode;
        Node output = session.getNode(outputPath);
        Property binaryProperty = session.getProperty("/testRoot/zip/jcr:content/jcr:data");
        session.sequence("zip-sequencer-manual", binaryProperty, output);
View Full Code Here

Examples of org.modeshape.jcr.api.Session.save()

        registerNodeTypes("cnd/flex.cnd");

        Session session = (Session)jcrSession();
        testRoot = session.getRootNode().addNode("testRoot");
        testRoot.addNode("node1");
        session.save();

        readOnlyProjection.create(testRoot, "readonly");
        storeProjection.create(testRoot, "store");
        jsonProjection.create(testRoot, "json");
        legacyProjection.create(testRoot, "legacy");
View Full Code Here

Examples of org.modeshape.jcr.cache.SessionCache.save()

        }

        system.mutable(key).removeChild(system, version.key);
        system.destroy(version.key);
        try {
            system.save();
        } catch (org.modeshape.jcr.cache.ReferentialIntegrityException e) {
            // expected by the tck
            throw new ReferentialIntegrityException(e);
        }
    }
View Full Code Here

Examples of org.modeshape.jcr.cache.document.WritableSessionCache.save()

                                SessionCache workspaceSession = new WritableSessionCache(context, workspaceCache, sessionContext);
                                MutableCachedNode workspaceRootNode = workspaceSession.mutable(workspaceSession.getRootKey());
                                workspaceRootNode.linkChild(workspaceSession, RepositoryCache.this.systemKey, JcrLexicon.SYSTEM);

                                // this will be enrolled in the active transaction
                                workspaceSession.save();
                            }
                        }
                        return workspaceCache;
                    }
                });
View Full Code Here

Examples of org.mongodb.morphia.Datastore.save()

        final IndexedEntity b = new IndexedEntity("b");
        final IndexedEntity c = new IndexedEntity("c");

        Datastore ds = getDs();

        ds.save(a);
        ds.save(b);
        ds.save(c);

        Assert.assertEquals("last", b.id, ds.createQuery(IndexedEntity.class).order("-id")
                                            .upperIndexBound(new BasicDBObject("testField", "c")).get().id);
View Full Code Here

Examples of org.mongodb.morphia.testdaos.HotelDAO.save()

        address.setStreet("Posthusstraeti 11");
        address.setPostCode("101");
        borg.setAddress(address);

        final HotelDAO hotelDAO = new HotelDAO(getMorphia(), getMongoClient());
        hotelDAO.save(borg);
        assertEquals(1, hotelDAO.count());
        assertNotNull(borg.getId());

        final Hotel hotelLoaded = hotelDAO.get(borg.getId());
        assertEquals(borg.getName(), hotelLoaded.getName());
View Full Code Here

Examples of org.moparscape.msc.gs.model.Player.save()

        player.getActionSender().sendInventory();
        player.getActionSender().sendEquipmentStats();
        long now = GameEngine.getTime();
        player.save();
        player.setLastSaveTime(now);
        affectedPlayer.save();
        affectedPlayer.setLastSaveTime(now);
        player.getActionSender().sendMessage("Trade completed.");

        affectedPlayer.getActionSender().sendInventory();
        affectedPlayer.getActionSender().sendEquipmentStats();
View Full Code Here

Examples of org.moparscape.msc.ls.model.PlayerSave.save()

    }

    save.setEventCD(p.readLong());

    save.setLastUpdate(System.currentTimeMillis());
    if (!save.save()) { // we shouldnt always save right away
      System.out.println("Error saving: " + save.getUsername());
    }
  }

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