Examples of save()


Examples of net.loyin.model.Wagepay.save()

    try{
      Wagepay m=getModel(Wagepay.class);
      if(m.getLong("id")!=null){
        m.update();
      }else{
        m.save();
      }
      toDwzJson(200, "保存成功!", navTabId);
    }catch(Exception e){
      toDwzJson( 300, "保存异常!");
    }
View Full Code Here

Examples of net.minecraft.server.ItemStack.save()

   * @param item ItemStack
   * @param compound TagCompound
   */
  public static void saveItemStack(org.bukkit.inventory.ItemStack item, CommonTagCompound compound) {
    ItemStack stack = (ItemStack) HandleConverter.toItemStackHandle.convert(item);
    stack.save((NBTTagCompound) compound.getHandle());
  }

  /**
   * Saves a tag list to an output
   *
 
View Full Code Here

Examples of net.minecraftforge.common.Configuration.save()

    c.load();
   
    doUpdateCheck = c.get(Configuration.CATEGORY_GENERAL, "EnableUpdateCheck", true);
    doUpdateCheck.comment = "Set to false to disable update checks for all Power Crystals' mods.";
   
    c.save();
  }

  @Override
  public String getModId()
  {
View Full Code Here

Examples of net.minecraftforge.common.config.Configuration.save()

  @Mod.EventHandler
  public void preInit(FMLPreInitializationEvent evt) {
    final File configFile = evt.getSuggestedConfigurationFile();
    Configuration config = new Configuration(configFile);
    ConfigProcessing.processAnnotations(configFile, ModInfo.ID, config, Config.class);
    if (config.hasChanged()) config.save();
  }

  @Mod.EventHandler
  public void init(FMLInitializationEvent evt) {
    ClientCommandHandler.instance.registerCommand(new CommandDump());
View Full Code Here

Examples of net.relatedwork.server.userHelper.ServerSIO.save()

    NewUserActionResult resultObject;
   
    // Update sessionInformation object for client
    ServerSIO session = new ServerSIO(newUserAction.getSession());
    session.save();
   
    // Register new user on server
    try {
      UserInformation UIO = new UserInformation(servletContext);
      UIO.registerNewUser(newUserAction);
View Full Code Here

Examples of net.sdiz.bitcoin.jdo.Config.save()

    } finally {
      log.info("Fin. H=" + sh.getCount() + ", A=" + accepted + ", R="
          + rejected);
    }

    config.save();

    resp.getWriter().println(
        "Fin. H=" + sh.getCount() + ", A=" + accepted + ", R="
            + rejected);
  }
View Full Code Here

Examples of net.sf.agentopia.util.Config.save()

        Config conf = Config.getConfig();
        conf.putInt("GUI.WindowWid", frame.getWidth());
        conf.putInt("GUI.WindowHei", frame.getHeight());
        conf.putInt("GUI.WindowX", frame.getX());
        conf.putInt("GUI.WindowY", frame.getY());
        conf.save();

        // Exit.
        System.exit(0);
    }
View Full Code Here

Examples of net.sf.archimede.model.collection.CollectionDao.save()

                List collections = new ArrayList();
                collections.add(groupCollection);
                rootCollection.setCollections(collections);
            }
           
            collectionDao.save(groupCollection);
        }
           
        Collection seriesCollection = getSeriesInRepository(groupCollection);
        if (seriesCollection == null) {
            CollectionDao collectionDao = CollectionDao.createInstance();
View Full Code Here

Examples of net.sf.archimede.model.folder.FolderDao.save()

                seriesCollection.setFolders(folders);
            }
           
           
            FolderDao folderDao = FolderDao.createInstance();
            folderDao.save(folder);
           
            addFiles(folder);
            addMetadata(folder);
        } else {
            throw new ObjectExistsException(folder);
View Full Code Here

Examples of net.sf.cannagrower.gui.FrameCulture.save()

   */
  private void menuFileSave() {
    if(jDesktopPane.getSelectedFrame()==null){return;}
    if(jDesktopPane.getSelectedFrame().getClass().equals(FrameCulture.class)){
      FrameCulture cultureViewer=(FrameCulture)jDesktopPane.getSelectedFrame();
      cultureViewer.save();
    }
  }

  private void menuFileSettings(){
    CannaGrowerProperties.getProperties().setShowSettings(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.