Examples of save()


Examples of com.baasbox.dao.AssetDao.save()

     
      if (meta!=null && !meta.trim().isEmpty()) {
        ODocument metaDoc=(new ODocument()).fromJSON("{ 'meta' : " + meta + "}");
        doc.merge(metaDoc, true, false);
      }
      dao.save(doc);
    }catch (OSerializationException e){
      throw new InvalidJsonException(e);
    }catch (Throwable e){
      throw e;
    }
View Full Code Here

Examples of com.baasbox.dao.DocumentDao.save()

    DbHelper.requestTransaction();

    ODocument doc = dao.create();
    try  {
      dao.update(doc,(ODocument) (new ODocument()).fromJSON(bodyJson.toString()));
      dao.save(doc);
      DbHelper.commitTransaction();
    }catch (OSerializationException e){
      DbHelper.rollbackTransaction();
      throw new InvalidJsonException(e);
    }catch (UpdateOldVersionException e){
View Full Code Here

Examples of com.baasbox.dao.FileAssetDao.save()

    ODocument doc=dao.create(name,fileName,contentType,content);
    if (meta!=null && !meta.trim().isEmpty()) {
      ODocument metaDoc=(new ODocument()).fromJSON("{ 'meta' : " + meta + "}");
      doc.merge(metaDoc, true, false);
    }
    dao.save(doc);
    return doc;
  }
 
  public static ODocument get(String rid) throws SqlInjectionException, IllegalArgumentException, InvalidModelException, ODatabaseException, DocumentNotFoundException {
    AssetDao dao = AssetDao.getInstance();
View Full Code Here

Examples of com.baasbox.dao.FileDao.save()

      ODocument doc=dao.create(fileName,contentType,contentLength,is,metadata,contentString);
      if (data!=null && !data.trim().isEmpty()) {
        ODocument metaDoc=(new ODocument()).fromJSON("{ '"+DATA_FIELD_NAME+"' : " + data + "}");
        doc.merge(metaDoc, true, false);
      }
      dao.save(doc);
      return doc;
    }
   
    public static ODocument createFile(String fileName, String dataJson,
        String aclJsonString, String contentType, long length,
View Full Code Here

Examples of com.baasbox.dao.ScriptsDao.save()

        ScriptsDao dao = ScriptsDao.getInstance();
        ODocument script = dao.getByName(name);
        if (script == null) throw new ScriptException("Script not found");
        ODocument emdedded = new ODocument().fromJSON(data.toString());
        script.field(ScriptsDao.LOCAL_STORAGE,emdedded);
        dao.save(script);
        return emdedded;
    }

    public static ODocument getStore(String name) throws ScriptException {
        ScriptsDao dao = ScriptsDao.getInstance();
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.particles.ParticleEffectLoader.save()

  public void saveEffect (File file) {
    Writer fileWriter = null;
    try {
      ParticleEffectLoader loader = (ParticleEffectLoader)assetManager.getLoader(ParticleEffect.class);
      loader.save(effect, new ParticleEffectSaveParameter(new FileHandle(file.getAbsolutePath()), assetManager, particleSystem.getBatches()));
    } catch (Exception ex) {
      System.out.println("Error saving effect: " + file.getAbsolutePath());
      ex.printStackTrace();
      JOptionPane.showMessageDialog(this, "Error saving effect.");
    } finally {
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.particles.ResourceData.SaveData.save()

  @Override
  public void save (AssetManager manager, ResourceData data) {
    if(model != null){
      SaveData saveData = data.createSaveData();
      saveData.saveAsset(manager.getAssetFileName(model), Model.class);
      saveData.save("index", model.meshes.indexOf(mesh, true));
    }
  }
 
  @Override
  public void load (AssetManager manager, ResourceData data) {
View Full Code Here

Examples of com.badlogic.gdx.tools.hiero.unicodefont.HieroSettings.save()

    settings.setGlyphText(sampleTextPane.getText());
    for (Iterator iter = effectPanels.iterator(); iter.hasNext();) {
      EffectPanel panel = (EffectPanel)iter.next();
      settings.getEffects().add(panel.getEffect());
    }
    settings.save(file);
  }

  void open (File file) {
    EffectPanel[] panels = (EffectPanel[])effectPanels.toArray(new EffectPanel[effectPanels.size()]);
    for (int i = 0; i < panels.length; i++)
View Full Code Here

Examples of com.bekvon.bukkit.residence.persistance.YMLSaveHelper.save()

            yml.getRoot().put("Version", saveVersion);
            World world = server.getWorld(entry.getKey());
            if (world != null)
                yml.getRoot().put("Seed", world.getSeed());
            yml.getRoot().put("Residences", (Map) entry.getValue());
            yml.save();
            if (ymlSaveLoc.isFile()) {
                File backupFolder = new File(worldFolder, "Backup");
                backupFolder.mkdirs();
                File backupFile = new File(backupFolder, "res_" + entry.getKey() + ".yml");
                if (backupFile.isFile()) {
View Full Code Here

Examples of com.bergerkiller.bukkit.common.config.FileConfiguration.save()

  public static void save(String filename) {
    FileConfiguration config = new FileConfiguration(filename);
    for (TimeSign sign : timerSigns.values()) {
      config.set(sign.name, sign.getDuration());
    }
    config.save();
  }
  public static void deinit() {
    timerSigns.clear();
    timerSigns = null;
    timeCalculations.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.