Examples of save()


Examples of org.tarantool.facade.TarantoolTemplate.save()

    Mapping<User> mapping = new Mapping<User>(User.class, TEMPLATE_SPACE, "id", "phone", "point", "iq", "height", "lifeFormId", "salary", "birthday",
        "name", "sign", "male");

    TarantoolTemplate template = new TarantoolTemplate(connectionFactory);
    template.addMapping(mapping);
    assertNotNull(template.save(user).insertOrReplaceAndGet());
    try {
      template.save(user).insert();
      fail();
    } catch (TarantoolException ignored) {
View Full Code Here

Examples of org.tarantool.facade.TarantoolTemplate7.save()

    }
    User user = new User();
    tpl.delete(User.class, user.getId()).delete();
    assertNull(tpl.find(User.class, 0, "id").condition(123).one());

    assertEquals(1, tpl.save(user).insertOrReplace());
    try {
      tpl.save(user).insert();
      fail();
    } catch (TarantoolException e) {
View Full Code Here

Examples of org.teavm.dom.canvas.CanvasRenderingContext2D.save()

    private static void render() {
        CanvasRenderingContext2D context = (CanvasRenderingContext2D)canvas.getContext("2d");
        context.setFillStyle("white");
        context.setStrokeStyle("grey");
        context.fillRect(0, 0, 600, 600);
        context.save();
        context.translate(0, 600);
        context.scale(1, -1);
        context.scale(100, 100);
        context.setLineWidth(0.01);
        for (Body body = scene.getWorld().getBodyList(); body != null; body = body.getNext()) {
View Full Code Here

Examples of org.teavm.eclipse.TeaVMProjectSettings.save()

            for (TeaVMProfile profile : settings.getProfiles()) {
                if (!coveredProfiles.contains(profile.getName()) && profile.getExternalToolId().equals(TOOL_ID)) {
                    settings.deleteProfile(profile);
                }
            }
            settings.save();
        } finally {
            monitor.done();
        }
    }
View Full Code Here

Examples of org.terasology.logic.behavior.asset.BehaviorTreeLoader.save()

        BehaviorTreeLoader loader = new BehaviorTreeLoader();
        try {
            Files.createDirectories(savePath);
            Path file = savePath.resolve(uri.getAssetName() + ".behavior");
            try (FileOutputStream fos = new FileOutputStream(file.toFile())) {
                loader.save(fos, tree.getData());
            }
        } catch (IOException e) {
            throw new RuntimeException("Cannot save asset " + uri + " to " + savePath, e);
        }
    }
View Full Code Here

Examples of org.terasology.persistence.WorldDumper.save()

            helpText = "Writes entity information out into a file named \"entityDump.txt\".")
    public void dumpEntities() throws IOException {
        EngineEntityManager engineEntityManager = (EngineEntityManager) entityManager;
        PrefabSerializer prefabSerializer = new PrefabSerializer(engineEntityManager.getComponentLibrary(), engineEntityManager.getTypeSerializerLibrary());
        WorldDumper worldDumper = new WorldDumper(engineEntityManager, prefabSerializer);
        worldDumper.save(PathManager.getInstance().getHomePath().resolve("entityDump.txt"));
    }

    // TODO: Fix this up for multiplayer (cannot at the moment due to the use of the camera)
    @Command(shortDescription = "Spawns an instance of a prefab in the world")
    public String spawnPrefab(@CommandParam("prefabId") String prefabName, EntityRef entity) {
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.persistence.Persistable.save()

        // the title

        viewDTO.setContentType(view.getContentType());

        Persistable persistable = view;
        viewDTO.setViewState(persistable.save(persistanceManager));

        // Resource set DTOs
        // 1. resolved unmodified sets --> changes list size
        List<ResourceSet> resourceSets = new ArrayList<ResourceSet>(
                persistanceManager.getResourceSets());
View Full Code Here

Examples of org.timepedia.chronoscope.client.canvas.Layer.save()

//    }
    layoutPanels(bounds);

    Layer zlayer = zoomPanel.getLayer();
    if (null != zlayer) {
      zlayer.save();

      if(!zoomPanel.getBounds().equals(zlayer.getBounds())){
        zlayer.setBounds(zoomPanel.getBounds());
        // log("layout zoomPanel bounds:"+zoomPanel.getBounds() + " "+zoomPanel.getLayer().getLayerId()+zoomPanel.getLayer().getBounds());
      }
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.wc.admin.SVNLog.save()

        }
        if (!newEntryProperties.isEmpty()) {
            newEntryProperties.put(SVNLog.NAME_ATTR, name);
            log.addCommand(SVNLog.MODIFY_ENTRY, newEntryProperties, false);
        }
        log.save();
        dir.runLogs();
        return reverted;
    }

    private void setWCFormat(SVNAdminAreaInfo info, SVNAdminArea area, int format) throws SVNException {
View Full Code Here

Examples of org.twdata.maven.yamlpom.SyncManager.save()

        switch (syncManager.determineFormatToTarget())
        {
            case YAML:
                System.out.println("Converting "+xmlFile.getName() + " into " + yamlFile.getName());
                sync(xmlFile, yamlFile, false);
                syncManager.save();
                break;
            case XML:
                System.out.println("Converting "+yamlFile.getName() + " into " + xmlFile.getName());
                sync(xmlFile, yamlFile, true);
                syncManager.save();
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.