Examples of save()


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

    public void doInsert(RunData data, Context context)
        throws Exception
    {
        Vendor entry = new Vendor();
        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.chromattic.api.ChromatticSession.save()

      chromatticManager.beginRequest();
      ChromatticSession session = test1LF.getChromattic().openSession();
      FooEntity foo = session.create(FooEntity.class);
      String fooId = session.persist(foo, "testPersistence");
      session.save();
      chromatticManager.endRequest(true);

      chromatticManager.beginRequest();
      session = test1LF.getChromattic().openSession();
      foo = session.findById(FooEntity.class, fooId);
View Full Code Here

Examples of org.cipres.treebase.domain.study.SubmissionService.save()

      SubmissionService ss = ContextManager.getSubmissionService();
      Collection<Study> pseudoStudies = sh.findByName(name, true);
      if (pseudoStudies.size() == 0) {
        pseudoSubmission = ss.createSubmission(null, null);
        pseudoSubmission.getStudy().setName(name);
        ss.save(pseudoSubmission.getStudy());
        sh.flush();
      } else if (pseudoStudies.size() == 1) {
        Study pseudoStudy = pseudoStudies.iterator().next();
        pseudoSubmission = pseudoStudy.getSubmission();
      } else {
View Full Code Here

Examples of org.cishell.reference.gui.prefs.swt.CIShellPreferenceStore.save()

     */
   
    try {
      if (this.getPreferenceStore() instanceof CIShellPreferenceStore) {
        CIShellPreferenceStore realPrefStore = (CIShellPreferenceStore) this.getPreferenceStore();
        realPrefStore.save();
      }
    } catch (ClassCastException e) {
      super.performApply();
    } catch (IOException e) {
      this.log.log(LogService.LOG_WARNING, "Unable to save preferences due to I/O Exception", e);
View Full Code Here

Examples of org.cishell.reference.gui.workflow.controller.WorkflowMaker.save()

      String type = itm.getType();
      if (type == Constant.Workflow) {
        WorkflowGUI wfGUI = (WorkflowGUI) itm;

        WorkflowMaker savedState = new WorkflowMaker();
        savedState.save(wfGUI.getWorkflow());
      }
    }
  }

  private class LoadListener implements Listener {
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.client.DeploymentInfoWorkingCopy.save()

      runnable = new IRunnableWithProgress() {
        public void run(IProgressMonitor monitor) {
          try {
            DeploymentInfoWorkingCopy wc = applicationModule.resolveDeploymentInfoWorkingCopy(monitor);
            wc.setUris(page.getURLs());
            wc.save();
          }
          catch (CoreException e) {
            result[0] = e.getStatus();
          }
        }
View Full Code Here

Examples of org.codehaus.mojo.appassembler.util.FormattedProperties.save()

                confFile.removeProperty( key );
            }
        }

        StringOutputStream string = new StringOutputStream();
        confFile.save( string );

        Reader reader = new InputStreamReader( new StringInputStream( string.toString() ) );

        writeFilteredFile( request, daemon, reader, new File( outputDirectory, "conf/wrapper.conf" ), context );
    }
View Full Code Here

Examples of org.codehaus.plexus.registry.Registry.save()

        if ( section == null )
        {
            section = registry.getSection( KEY + ".base" );
        }
        new ConfigurationRegistryWriter().write( configuration, section );
        section.save();

        this.configuration = configuration;
    }

    public void addChangeListener( RegistryListener listener )
View Full Code Here

Examples of org.compass.core.CompassSession.save()

          boolean found = false;
          for (ItemLanguage language : master.getItemLanguages()) {
            if (language.getSiteProfileClass().getSiteProfileClassId().equals(siteProfileClass.getSiteProfileClassId())) {
              found = true;
              CompassItemLanguage compassItemLanguage = formatItemLanguage(master, language, -1L);
              compassSession.save(compassItemLanguage);
            }
          }
          if (!found) {
            CompassItemLanguage compassItemLanguage = formatItemLanguage(master, master.getItemLanguage(), -1L);
            compassItemLanguage.setSiteProfileClassId(siteProfileClass.getSiteProfileClassId());
View Full Code Here

Examples of org.compiere.model.MArchive.save()

    byte[] data = Document.getPDFAsArray(m_reportEngine.getLayout().getPageable(false))//  No Copy
    if (data != null)
    {
      MArchive archive = new MArchive (Env.getCtx(), m_reportEngine.getPrintInfo(), null);
      archive.setBinaryData(data);
      success = archive.save();
    }
    if (success)
      ADialog.info(m_WindowNo, this, "Archived");
    else
      ADialog.error(m_WindowNo, this, "ArchiveError");
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.