Examples of saveChanges()


Examples of com.breezejs.save.ContextProvider.saveChanges()

    log.debugv("saveChanges", "source={0}", source);
    Response response;
    Session session = sessionFactory.openSession();
    try {
      ContextProvider context = new HibernateContext(session, metadata);
      SaveResult sr = context.saveChanges(source);
     
      String json = Json.toJson(sr);
      log.debugv("saveChanges: SaveResult={0}", json);
      if (sr.hasErrors()) {
        response = Response.status(Response.Status.FORBIDDEN).entity(json).build();
View Full Code Here

Examples of com.etown.util.email.MailMessage.saveChanges()

     
      String filePath = System.getProperty("web.home")+System.getProperty("regTplHtml");
      String content=FileUtil.readAll(filePath);
      content=StringUtil.format(content, new String[]{nickName,userName,validateCode});
      mail1.setContent(content);
      mail1.saveChanges();
      mailSuccess=sender.send(mail1);
    } catch (Exception e) {
      log.error("发送验证邮件失败");
      mailSuccess=false;
    }
View Full Code Here

Examples of com.sun.mail.smtp.SMTPMessage.saveChanges()

                msg.setFrom(new InternetAddress(_emailSender, _emailSender));
                msg.addRecipient(RecipientType.TO, address);
                msg.setSubject("You are invited to join the cloud stack project id=" + projectId);
                msg.setSentDate(new Date(DateUtil.currentGMTTime().getTime() >> 10));
                msg.setContent(content, "text/plain");
                msg.saveChanges();

                SMTPTransport smtpTrans = null;
                if (_smtpUseAuth) {
                    smtpTrans = new SMTPSSLTransport(_smtpSession, new URLName("smtp", _smtpHost, _smtpPort, null, _smtpUsername, _smtpPassword));
                } else {
View Full Code Here

Examples of com.webobjects.eocontrol.EOEditingContext.saveChanges()

          if (company == null) {
            company = Company.createCompany(ec, name);
          }
          companies.addObject(company);
    }
        ec.saveChanges();
       
        employee = Employee.fetchEmployee(ec, ERXQ.and(ERXQ.equals(Employee.FIRST_NAME_KEY, "Bill"),
                                   ERXQ.equals(Employee.LAST_NAME_KEY, "Wratchit")));
        if (employee == null) {
            Company company = Company.fetchCompany(ec, Company.NAME_KEY, companyNames.objectAtIndex(2));
View Full Code Here

Examples of com.willwinder.universalgcodesender.uielements.ConnectionSettingsDialog.saveChanges()

        gcsd.setConvertArcsToLines(settings.isConvertArcsToLines());
        gcsd.setSmallArcThreshold(settings.getSmallArcThreshold());
        gcsd.setSmallArcSegmentLengthSpinner(settings.getSmallArcSegmentLength());
        gcsd.setVisible(true);
       
        if (gcsd.saveChanges()) {
            settings.setOverrideSpeedSelected(gcsd.getSpeedOverrideEnabled());
            settings.setOverrideSpeedValue(gcsd.getSpeedOverridePercent());
            settings.setMaxCommandLength(gcsd.getMaxCommandLength());
            settings.setTruncateDecimalLength(gcsd.getTruncateDecimalLength());
            settings.setSingleStepMode(gcsd.getSingleStepModeEnabled());
View Full Code Here

Examples of de.innovationgate.eclipse.utils.ui.model.TMLFileMetadataModel.saveChanges()

     
      if(isCachable || isDirectAccess){
        TMLFileMetadataModel model = new TMLFileMetadataModel(tmlFile);
        model.setCachable(isCachable);
        model.setDirectAccess(isDirectAccess);
        model.saveChanges();
     
     

     
     
View Full Code Here

Examples of de.innovationgate.eclipse.utils.ui.model.WGADesignConfigurationModelWrapper.saveChanges()

                model.setVersionCompliance(Activator.DEFAULT_VERSION_COMPLIANCE);
              
        model.createPluginConfig();
        model.setPluginUniqueName(_page.getPluginUniqueName());
        model.saveChanges();
       
        try {
          // select syncinfo in navigation views
          WorkbenchUtils.setNavigationViewSelection(new SingleStructuredSelection(syncInfo));
        } catch (Exception e) {         
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.models.WGARuntimeConfigurationModel.saveChanges()

            try {
                WGARuntimeConfigurationModel model = new WGARuntimeConfigurationModel();
                model.init(_runtime);
                if (model.getRemoteLocation() == null || !model.getRemoteLocation().equals(_remoteLocationPage.getLocation())) {
                    model.setRemoteLocation(_remoteLocationPage.getLocation());
                    model.saveChanges();   
                }
            } catch (Exception e) {
                // ignore
            }
           
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.models.WGARuntimeConfigurationModel.saveChanges()

    try {
      WGARuntimeConfigurationModel model = new WGARuntimeConfigurationModel();
      model.init(_runtime);
      if (model.getRemoteLocation() == null || !model.getRemoteLocation().equals(_remoteLocationPage.getLocation())) {
        model.setRemoteLocation(_remoteLocationPage.getLocation());
        model.saveChanges()
      }
    } catch (Exception e) {
      // ignore
    }     
     
View Full Code Here

Examples of de.innovationgate.wga.model.WGADesignConfigurationModel.saveChanges()

                model.setVersionCompliance(Activator.DEFAULT_VERSION_COMPLIANCE);
              
        model.createPluginConfig();
        model.setPluginUniqueName(_page.getPluginUniqueName());
        model.saveChanges();
       
        try {
          // select syncinfo in navigation views
          WorkbenchUtils.setNavigationViewSelection(new SingleStructuredSelection(syncInfo));
        } catch (Exception e) {         
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.