Examples of commit()


Examples of org.cruxframework.crux.core.rebind.AbstractProxyCreator.SourcePrinter.commit()

    generateConstructor(lazyPrinter, lazyPanel+"Class", lazyId);
    generateCreateWidgetMethod(lazyPrinter, element, lazyId);
    generateFields(lazyPrinter, lazyPanel+"Class");
    generateGetResourceMethod(lazyPrinter);
   
    lazyPrinter.commit();
   
    if (factory.getControllerAccessHandler() instanceof SingleControllerAccessHandler)
    {
      SingleControllerAccessHandler controllerAccessHandler = (SingleControllerAccessHandler) factory.getControllerAccessHandler();
    factoryPrinter.println(lazyPanel+"Class " + lazyPanel + " = new "+lazyPanel+"Class("+ViewFactoryCreator.getViewVariable()+", "+controllerAccessHandler.getSingleControllerVariable()+");");

Examples of org.dcm4che3.media.DicomDirWriter.commit()

        if (instRec != null)
            return false;
   
        instRec = recFact.createRecord(ds, fmi, ddWriter.toFileIDs(f));
        ddWriter.addLowerDirectoryRecord(seriesRec, instRec);
        ddWriter.commit();
        return true;
    }

    private static Attributes refSOP(String iuid, String cuid, int failureReason) {
        Attributes attrs = new Attributes(3);

Examples of org.deuce.transaction.Context.commit()

        commit = false;
      } catch (Throwable ex) {
        throwable = ex;
      }
      if (commit) {
        if (context.commit()) {
          if (throwable != null) {
            throw throwable;
          } else {
            return;
          }

Examples of org.drools.persistence.Transaction.commit()

    persister.save();
    Transaction transaction = persister.getTransaction();
    try {
      transaction.start();
      T result = super.executeNext(command);
      transaction.commit();
      return result;
    } catch (Throwable t) {
      try {
        transaction.rollback();
        throw new RuntimeException("Could not execute command", t);

Examples of org.drools.persistence.TransactionManager.commit()

            // Do the "sub" transaction
            // - the txm doesn't really commit,
            //   because we keep track of who's the tx owner.
            boolean notTxOwner = txm.begin();
            em.persist(mainObject);
            txm.commit(notTxOwner);
      
            // Finish the transaction off
            em.persist(subObject);
            txm.commit(txOwner);
        }

Examples of org.drools.persistence.jta.JtaTransactionManager.commit()

            }
            marshalledDataList.add(marshalledData);
            logger.trace("> " + marshalledData);
        }
       
        txm.commit(txOwner);
       
        return marshalledDataList;
    }

    /**
 

Examples of org.dspace.core.Context.commit()

                {
                    DSIndexer.indexContent(context, item, true);
                    ib.indexItem(item);
                }
            }
            context.commit();
            context.clearCache();
        }
        catch (DCInputsReaderException e)
        {
            log.error(e.getMessage());

Examples of org.eclipse.core.filebuffers.ITextFileBuffer.commit()

      monitor.beginTask(TextEditorMessages.TextFileDocumentProvider_beginTask_saving, 2000);
      ITextFileBufferManager manager= FileBuffers.getTextFileBufferManager();
      manager.connect(file.getFullPath(), LocationKind.IFILE, monitor);
      ITextFileBuffer buffer= ITextFileBufferManager.DEFAULT.getTextFileBuffer(file.getFullPath(), LocationKind.IFILE);
      buffer.getDocument().set(document.get());
      buffer.commit(monitor, true);
      manager.disconnect(file.getFullPath(), LocationKind.IFILE, monitor);
    } finally {
      monitor.done();
    }
  }

Examples of org.eclipse.egit.ui.common.CommitDialogTester.commit()

    assertTrue("Wrong file",
        commitDialogTester.getEntryText(0).endsWith("test.txt"));
    commitDialogTester.setAuthor(TestUtil.TESTAUTHOR);
    commitDialogTester.setCommitter(TestUtil.TESTCOMMITTER);
    commitDialogTester.setCommitMessage("The new commit");
    commitDialogTester.commit();
    TestUtil.checkHeadCommit(lookupRepository(repositoryFile),
        TestUtil.TESTAUTHOR, TestUtil.TESTCOMMITTER, "The new commit");
    NoFilesToCommitPopup popup = CommitDialogTester
        .openCommitDialogExpectNoFilesToCommit(PROJ1);
    popup.cancelPopup();

Examples of org.eclipse.egit.ui.common.StagingViewTester.commit()

    stagingViewTester.stageFile(FILE1_PATH);

    stagingViewTester.setAuthor(TestUtil.TESTAUTHOR);
    stagingViewTester.setCommitter(TestUtil.TESTCOMMITTER);
    stagingViewTester.setCommitMessage("The new commit");
    stagingViewTester.commit();
    TestUtil.checkHeadCommit(repository, TestUtil.TESTAUTHOR,
        TestUtil.TESTCOMMITTER, "The new commit");
  }

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