Examples of Commit()


Examples of com.dci.intellij.dbn.connection.ConnectionHandler.commit()

        } finally {
            if (executionInput.isCommitAfterExecution()) {
                if (usePoolConnection) {
                    connection.commit();
                } else {
                    if (connectionHandler != null) connectionHandler.commit();
                }
            }
            if (connectionHandler != null && usePoolConnection) connectionHandler.freePoolConnection(connection);
        }

Examples of com.dci.intellij.dbn.connection.transaction.DatabaseTransactionManager.commit()

        Project project = ActionUtil.getProject(e);
        VirtualFile virtualFile = e.getData(PlatformDataKeys.VIRTUAL_FILE);
        if (project != null && virtualFile != null) {
            DatabaseTransactionManager transactionManager = DatabaseTransactionManager.getInstance(project);
            ConnectionHandler activeConnection = getConnectionHandler(project, virtualFile);
            transactionManager.commit(activeConnection, true, false);
        }
    }

    @Override
    public void update(AnActionEvent e) {

Examples of com.din.din.model.util.EntityCachingManager.commit()

        }
       
        RecipeDAO.delete(entityManager, selected, cache);
       
        transaction.commit();
        cache.commit();
        setSelected(null);
       
        refresh();
      } catch (Exception e) {
        success = false;

Examples of com.facebook.presto.metadata.ColumnFileHandle.commit()

                Page page = source.getOutput();
                if (page != null) {
                    columnFileHandle.append(page);
                }
            }
            columnFileHandle.commit();

            return cachedFile;
        }
        catch (IOException e) {
            throw Throwables.propagate(e);

Examples of com.facebook.presto.spi.RecordSink.commit()

        sink.beginRecord(7);
        sink.appendLong(4);
        sink.finishRecord();

        String fragment = sink.commit();

        // commit the table
        metadata.commitCreateTable(outputHandle, ImmutableList.of(fragment));

        // load the new table

Examples of com.github.maven_nar.cpptasks.TargetHistoryTable.commit()

                    new String[]{"dummy.o"}, null);
            //
            //   commit. If "compiled" file was judged to be
            //   valid we should have a history file.
            //
            table.commit();
            historyFile = table.getHistoryFile();
            assertTrue("History file was not created", historyFile.exists());
            assertTrue("History file was empty", historyFile.length() > 10);
        } finally {
            if (compiledFile != null && compiledFile.exists()) {

Examples of com.google.api.services.androidpublisher.AndroidPublisher.Edits.commit()

            Listing updatedUkListing = updateUkListingsRequest.execute();
            log.info(String.format("Created new UK app listing with title: %s",
                    updatedUkListing.getTitle()));

            // Commit changes for edit.
            Commit commitRequest = edits.commit(ApplicationConfig.PACKAGE_NAME, editId);
            AppEdit appEdit = commitRequest.execute();
            log.info(String.format("App edit with id %s has been comitted", appEdit.getId()));

        } catch (IOException | GeneralSecurityException ex) {
            log.error("Exception was thrown while updating listing", ex);

Examples of com.google.api.services.datastore.client.Datastore.commit()

        creq.getMutationBuilder().addInsert(entity);
      }
      // Execute the Commit RPC synchronously and ignore the response.
      // Apply the insert mutation if the entity was not found and close
      // the transaction.
      datastore.commit(creq.build());
      // Get `question` property value.
      String question = entity.getProperty(0).getValue().getStringValue();
      // Get `answer` property value.
      Long answer = entity.getProperty(1).getValue().getIntegerValue();
      System.out.println(question);

Examples of com.google.appengine.api.datastore.Transaction.commit()

    // does nothing
  }

  public void commitTransaction() {
    Transaction txn = ds.getCurrentTransaction();
    txn.commit();
  }

  public void rollbackTransaction() {
    Transaction txn = ds.getCurrentTransaction();
    txn.rollback();

Examples of com.google.gdt.eclipse.designer.model.module.GwtDocumentEditContext.commit()

      IFile moduleFile = ((DefaultModuleDescription) moduleDescription).getFile();
      GwtDocumentEditContext context = new GwtDocumentEditContext(moduleFile);
      try {
        ModuleElement moduleElement = context.getModuleElement();
        modification.modify(moduleElement);
        context.commit();
      } finally {
        context.disconnect();
      }
    }
  }
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.