Examples of save()


Examples of org.bukkit.configuration.file.FileConfiguration.save()

    if (userIsNotAdded && sender.hasPermission("ECM.adduser")
        || sender.hasPermission("ECM.*")) {
      if (configExists) {
        userName.set("EMC.Users", user);
        userName.save("plugins" + File.pathSeparator + "ECM"
            + File.pathSeparator + "users.yml");
        chat.finishMessage(sender, "You have let " + user.toLowerCase()
            + " use ECM correctly!");
      } else {
        FileWriter outFile = new FileWriter(configFile, true);
View Full Code Here

Examples of org.bukkit.configuration.file.YamlConfiguration.save()

    War.war.getMysqlConfig().saveTo(mysqlSection);

    // Save to disk
    File warConfigFile = new File(War.war.getDataFolder().getPath() + "/war.yml");
    try {
      warYmlConfig.save(warConfigFile);
    } catch (IOException e) {
      War.war.log("Failed to save war.yml", Level.WARNING);
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.bukkit.util.config.Configuration.save()

        Configuration config = new Configuration(getModPackYMLFile());
        config.load();
        config.setProperty("current", selected);
        config.setProperty("launcher", Main.build);
        config.save();

        updated = true;
      }
    }
  }
View Full Code Here

Examples of org.campware.dream.om.CostType.save()

    public void doInsert(RunData data, Context context)
        throws Exception
    {
        CostType entry = new CostType();
        data.getParameters().setProperties(entry);
        entry.save();
    }

    /**
     * Update a record in the database with the
     * information present in the web form.
View Full Code Here

Examples of org.campware.dream.om.Country.save()

    public void doInsert(RunData data, Context context)
        throws Exception
    {
        Country entry = new Country();
        data.getParameters().setProperties(entry);
        entry.save();
    }

    /**
     * Update a record in the database with the
     * information present in the web form.
View Full Code Here

Examples of org.campware.dream.om.Dcontract.save()

        }

        Connection conn = Transaction.begin(DcontractPeer.DATABASE_NAME);
        boolean success = false;
        try {
            entry.save(conn);
            entry.setDcontractCode(getRowCode("CO", entry.getDcontractId()));
            entry.save(conn);
            Transaction.commit(conn);
            success = true;
View Full Code Here

Examples of org.campware.dream.om.DinboxEvent.save()

      entry.setModified(new Date());
       
      Connection conn = Transaction.begin(DinboxEventPeer.DATABASE_NAME);
      boolean success = false;
      try {
        entry.save(conn);
        entry.setDinboxEventCode(getRowCode("IE", entry.getDinboxEventId()));
        entry.save(conn);
        Transaction.commit(conn);
        success = true;
View Full Code Here

Examples of org.campware.dream.om.Distributor.save()

            entry.setDistributorCode(getTempCode());

            Connection conn = Transaction.begin(DistributorPeer.DATABASE_NAME);
            boolean success = false;
            try {
                entry.save(conn);
                entry.setDistributorCode(getRowCode("DI", entry.getDistributorId()));
                entry.save(conn);
                Transaction.commit(conn);
                success = true;
   
View Full Code Here

Examples of org.campware.dream.om.DistributorCategory.save()

    public void doInsert(RunData data, Context context)
        throws Exception
    {
        DistributorCategory entry = new DistributorCategory();
        data.getParameters().setProperties(entry);
        entry.save();
    }

    /**
     * Update a record in the database with the
     * information present in the web form.
View Full Code Here

Examples of org.campware.dream.om.Dnewsletter.save()

          entry.setModified(new Date());
         
          Connection conn = Transaction.begin(DnewsletterPeer.DATABASE_NAME);
          boolean success = false;
          try {
              entry.save(conn);
              entry.setDnewsletterCode(getRowCode("NL", entry.getDnewsletterId()));
              entry.save(conn);
              Transaction.commit(conn);
              success = true;
 
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.