Examples of save()


Examples of com.garbagemule.MobArena.region.ArenaRegion.save()

       
        region.addSpawn("s1", new Location(world, x1+3, y1+2, z1+3));
        region.addSpawn("s2", new Location(world, x1+3, y1+2, z2-3));
        region.addSpawn("s3", new Location(world, x2-3, y1+2, z1+3));
        region.addSpawn("s4", new Location(world, x2-3, y1+2, z2-3));
        region.save();
       
        am.reloadConfig();
        return true;
    }
   
View Full Code Here

Examples of com.geekhub.lessons.lesson7.storage.DatabaseStorage.save()

        for (int i = 1; i <= 20; i++) {
            Cat cat = new Cat();
            cat.setName("cat" + i);
            cat.setAge(i);
            storage.save(cat);
        }

        cats = storage.list(Cat.class);
        if (cats.size() != 20) throw new Exception("Number of cats in storage should be 20!");
View Full Code Here

Examples of com.geekhub.lessons.lesson7.storage.Storage.save()

        for (int i = 1; i <= 20; i++) {
            Cat cat = new Cat();
            cat.setName("cat" + i);
            cat.setAge(i);
            storage.save(cat);
        }

        cats = storage.list(Cat.class);
        if (cats.size() != 20) throw new Exception("Number of cats in storage should be 20!");
View Full Code Here

Examples of com.gi.engine.carto.MapDescFile.save()

    try {
      String password = JOptionPane
          .showInputDialog("Input encrypt password, no encrypt if leave it blank.");
      MapDescFile file = new MapDescFile(this.getMapDescFilePath());
      if (password != null && "".equals(password.trim())) {
        if (file.save(mapDesc)) {
          JOptionPane.showMessageDialog(this, "Save success!");
        }
      } else if (password != null && !"".equals(password.trim())) {
        if (file.save(mapDesc, password)) {
          JOptionPane.showMessageDialog(this, "Save success!");
View Full Code Here

Examples of com.gi.engine.server.service.MapServiceDescFile.save()

        desc.setTileInfo(tileInfo);
      }

      MapServiceDescFile mapServiceDescFile = new MapServiceDescFile(app
          .getMapServiceDescFilePath());
      if (mapServiceDescFile.save(desc)) {
        JOptionPane.showMessageDialog(this, "Save Success!");
      }
    } catch (Exception e) {
      JOptionPane.showMessageDialog(this, "Error!");
    }
View Full Code Here

Examples of com.github.jmkgreen.morphia.Datastore.save()

                        meteoLog.setGustLevel(Double.valueOf(columns[20]));
                    } catch (Exception e) {
                        log.error("line " + lineCount, e);
                    }

                    ds.save(meteoLog, WriteConcern.NORMAL);
                    lineCount++;

                }

                log.debug("Tot line insert:" + lineCount);
View Full Code Here

Examples of com.github.jmkgreen.morphia.testdaos.HotelDAO.save()

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

        HotelDAO hotelDAO = new HotelDAO(morphia, mongo);
        hotelDAO.save(borg);
        assertEquals(1, hotelDAO.count());
        assertNotNull(borg.getId());

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

Examples of com.gmail.nossr50.datatypes.player.PlayerProfile.save()

    // Utility methods follow.
    private static void addOfflineXP(UUID playerUniqueId, SkillType skill, int XP) {
        PlayerProfile profile = getOfflineProfile(playerUniqueId);

        profile.addXp(skill, XP);
        profile.save();
    }

    @Deprecated
    private static void addOfflineXP(String playerName, SkillType skill, int XP) {
        PlayerProfile profile = getOfflineProfile(playerName);
View Full Code Here

Examples of com.google.code.morphia.Datastore.save()

    public static void crud() throws Exception {
        Datastore ds = getDatastore();
        // create
        PureMorphiaUser user = new PureMorphiaUser("John", "Smith");
        ds.save(user);
        // read
        PureMorphiaUser user2 = ds.get(PureMorphiaUser.class, user.id);
        // update
        user2.fName = "Tom";
        ds.save(user2);
View Full Code Here

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

  }

  public static void saveGraphDocument(IFile file, GraphDocument graph)
      throws CoreException {
    GraphModelXmlPersist loader = new GraphModelXmlPersist();
    loader.save(file.getRawLocationURI(), graph);
    file.refreshLocal(IResource.DEPTH_ZERO, null);
  }

  /**
   * Provide the graph document located for the given file.
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.