Examples of commit()


Examples of org.switchyard.component.bpm.transaction.AS7TransactionHelper.commit()

                    Object ret;
                    AS7TransactionHelper utx = new AS7TransactionHelper(true);
                    try {
                        utx.begin();
                        ret = method.invoke(_internalTaskService, args);
                        utx.commit();
                    } catch (Throwable t) {
                        utx.rollback();
                        throw t;
                    }
                    return ret;

Examples of org.tmatesoft.hg.internal.CommitFacility.commit()

    HgRepository hgRepo = new HgLookup().detect(repoLoc);
    CommitFacility cf = new CommitFacility(Internals.getInstance(hgRepo), 0);
    HgDataFile df = hgRepo.getFileNode("file1");
    cf.add(df, new ByteArrayDataSource("hello\nworld".getBytes()));
    Transaction tr = newTransaction(hgRepo);
    Nodeid secondRev = cf.commit("SECOND", tr);
    tr.commit();
    //
    List<HgChangeset> commits = new HgLogCommand(hgRepo).execute();
    errorCollector.assertEquals(2, commits.size());
    HgChangeset c1 = commits.get(0);

Examples of org.tmatesoft.hg.internal.Transaction.commit()

    CommitFacility cf = new CommitFacility(Internals.getInstance(hgRepo), 0);
    HgDataFile df = hgRepo.getFileNode("file1");
    cf.add(df, new ByteArrayDataSource("hello\nworld".getBytes()));
    Transaction tr = newTransaction(hgRepo);
    Nodeid secondRev = cf.commit("SECOND", tr);
    tr.commit();
    //
    List<HgChangeset> commits = new HgLogCommand(hgRepo).execute();
    errorCollector.assertEquals(2, commits.size());
    HgChangeset c1 = commits.get(0);
    HgChangeset c2 = commits.get(1);

Examples of org.tmatesoft.sqljet.core.table.SqlJetDb.commit()

           
            db.createTable(createTableQuery);
            db.createIndex(createFirstNameIndexQuery);
            db.createIndex(createDateIndexQuery);
        } finally {
            db.commit();
        }
        // close DB and open it again (as part of example code)
       
        db.close();       
        db = SqlJetDb.open(dbFile, true);

Examples of org.togglz.core.repository.file.ReloadablePropertiesFile.Editor.commit()

        // remove the old users property if it still exists from the old format
        editor.setValue(getUsersPropertyName(feature), null);

        // write
        editor.commit();

    }

    private static String getEnabledPropertyName(Feature feature) {
        return feature.name();

Examples of org.vaadin.console.client.util.ClientCommUtils.Transcation.commit()

        }

        Transcation tx = comm.startTx();
        tx.send("height", getHeight());
        tx.send("width", getWidth());
        tx.commit();
    }

    public void terminalInput(TextConsole term, String input) {
        if (!initComplete) {
            return;

Examples of org.w3c.cvs.CvsDirectory.commit()

  String u = (String)request.getState(AuthFilter.STATE_AUTHUSER);
  String env[] = {"USER="+u , "LOGNAME="+u };
  String comment = "("+u+") "+msg;
  CvsDirectory cvsdir = null;
  cvsdir = getCvsManager();
  cvsdir.commit(getFileResource().getFile().getName(), comment, env);
    }

    /**
     * @exception CvsException if the CVS process failed
     */
 

Examples of org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizer.commit()

    public void commit() throws SynchronizationException {
        String filePath = CarbonRepositoryUtils.getCarbonRepositoryFilePath(getConfigContext());
        DeploymentSynchronizer synchronizer = DeploymentSynchronizationManager.getInstance().
                getSynchronizer(filePath);
        synchronizer.commit();
    }

    public boolean synchronizerEnabledForCarbonRepository() {
        String filePath = CarbonRepositoryUtils.getCarbonRepositoryFilePath(getConfigContext());
        return DeploymentSynchronizationManager.getInstance().getSynchronizer(filePath) != null;

Examples of org.xapian.WritableDatabase.commit()

            doc.addTerm(term);
            db.addDocument(doc);
        }

        // make sure to commit the database so the documents get written to disk
        db.commit();
    }


    private static void usage() {
        System.err.println("Usage:");

Examples of org.xmldb.api.modules.TransactionService.commit()

           (XMLResource) col.createResource(id2, XMLResource.RESOURCE_TYPE);

        resource2.setContentAsDOM(document2);
        col.storeResource(resource2);

        transaction.commit();

   }
}
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.