Examples of commit()


Examples of fitnesse.wiki.WikiPage.commit()

    private void assertTranslates(String expected, String content, String property) throws Exception {
        WikiPage pageWithHelp = new TestRoot().makePage("TestHelp", content);
        PageData pageData = pageWithHelp.getData();
        pageData.setAttribute(property, "help me");
        pageWithHelp.commit(pageData);
        ParserTestHelper.assertTranslatesTo(pageWithHelp, expected);
    }
}

Examples of fr.dyade.aaa.agent.ServerConfigHelper.commit()

      for (int i = 0; i < serviceNames.length; i++) {
        helper.addService(request.getServerId(),
                          serviceNames[i],
                          serviceArgs[i]);
      }
      helper.commit();
      distributeReply(replyTo, msgId, new AdminReply(true, "Server added"));
      if (from == null) {
        broadcastRequest(request, request.getServerId(), replyTo, msgId);
      }
    } catch (ServerConfigHelper.ServerIdAlreadyUsedException exc) {

Examples of galena.addins.modules.database.DB.DBConnection.commit()

        StringUtils.parseBareAddress(oldWrapper.presence.getFrom()).toLowerCase(),
        StringUtils.parseResource(oldWrapper.presence.getFrom()),
        oldWrapper.presence.getMode().toString(),
        oldWrapper.date,
        new Date());
    db.commit();
    Iterator i = oldWrapper.presence.getExtensions();
    while(i.hasNext()) {
      PacketExtension ex = (PacketExtension)i.next();
      if(ex instanceof GameStatusExtension) {
        GameStatusExtension status = (GameStatusExtension)ex;

Examples of helma.objectmodel.db.Transactor.commit()

     */
    public void commit() throws Exception {
        Transactor tx = Transactor.getInstance();
        if (tx != null) {
            String tname = tx.getTransactionName();
            tx.commit();
            tx.begin(tname);
        }
    }

    /**
 

Examples of hermes.Hermes.commit()

        
         hermes.send(queue, message) ;
        
         if (hermes.getTransacted())
         {
            hermes.commit() ;
         }
        
         hermes.close() ;
        
         System.exit(1) ;

Examples of hudson.BulkChange.commit()

            if(result)
                FormApply.success(req.getContextPath()+'/').generateResponse(req, rsp, null);
            else
                FormApply.success("configure").generateResponse(req, rsp, null);    // back to config
        } finally {
            bc.commit();
        }
    }

    /**
     * Gets the {@link CrumbIssuer} currently in use.

Examples of hudson.remoting.jnlp.MainMenu.commit()

                MainMenu mainMenu = dialog.getMainMenu();
                JMenu m = mainMenu.getFileMenu();
                JMenuItem menu = new JMenuItem(Messages.WindowsInstallerLink_DisplayName(), KeyEvent.VK_W);
                menu.addActionListener(WindowsSlaveInstaller.this);
                m.add(menu);
                mainMenu.commit();
            }
        });

        return null;
    }

Examples of hudson.util.AtomicFileWriter.commit()

            new XmlFile(Items.XSTREAM, out.getTemporaryFile()).unmarshal(this);
            onLoad(getParent(), getRootDir().getName());
            Jenkins.getInstance().rebuildDependencyGraph();

            // if everything went well, commit this new version
            out.commit();
            SaveableListener.fireOnChange(this, getConfigFile());
        } finally {
            out.abort(); // don't leave anything behind
        }
    }

Examples of in.partake.model.dao.PartakeConnection.commit()

        try {
            con.beginTransaction();
            T result = doExecute(con, dbService.getDAOs());

            if (con.isInTransaction()) {
                con.commit();
            }

            return result;
        } finally {
          try {

Examples of io.crate.blob.DigestBlob.commit()

        byte[] buffer = new byte[15];
        FileInputStream stream = new FileInputStream(digestBlob.file());
        stream.read(buffer, 0, 15);
        assertEquals("ABCDEFGHIJKLMNO", new BytesArray(buffer).toUtf8().trim());
        File file = digestBlob.commit();
        assertTrue(file.exists());
        file.delete();
    }

    @Test
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.