Examples of commit()


Examples of org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction.commit()

                    // since the transaction is not yet committed.  
                    IngestServices.getInstance().fireModuleContentEvent(new ModuleContentEvent(localFileAdded));
                }
            }

            trans.commit();
        } catch (TskCoreException ex) {
            trans.rollback();
        }
        return fileSetRootDir;
    }

Examples of org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess.commit()

      try {
        process.run(paths.toArray(new String[paths.size()]));
      } catch (TskDataException ex) {
        Logger.getLogger(Sample.class.getName()).log(Level.SEVERE, null, ex);
      }
      process.commit();
     
      // print out all the images found, and their children
      List<Image> images = sk.getImages();
      for (Image image : images) {
        System.out.println("Found image: " + image.getName());

Examples of org.sonar.core.persistence.DbSession.commit()

      .setActiveRuleId(1)
      .setRulesParameterId(1)
      .setKey("max")
      .setValue("20");
    dao.insert(dto, session);
    session.commit();
    session.close();

    checkTables("insert_parameter", "active_rule_parameters");
  }

Examples of org.springframework.binding.value.CommitTrigger.commit()

       
        BufferedValueModel buffer = new BufferedValueModel(wrapped, trigger1);
        buffer.setValue("change1");
        Object wrappedValue = wrapped.getValue();
        Object bufferedValue = buffer.getValue();
        trigger2.commit();
        assertEquals(
            "Changing the unrelated trigger2 to commit has no effect on the wrapped.",
            wrapped.getValue(),
            wrappedValue);
        assertSame(

Examples of org.springframework.data.solr.core.SolrOperations.commit()

  private void deleteAll() {
    SolrOperations template;
    try {
      template = createSolrTemplate();
      template.delete(new SimpleQuery(new SimpleStringCriteria("*:*")));
      template.commit();
    } catch (IOException e) {
      throw new RuntimeException(e);
    } catch (ParserConfigurationException e) {
      throw new RuntimeException(e);
    } catch (SAXException e) {

Examples of org.springframework.jdbc.datasource.DataSourceTransactionManager.commit()

    // TODO: This is where the DAO interface's update scripts would
    // be run.
   
    // Commit the transaction.
    try {
      transactionManager.commit(transactionStatus);
    }
    catch(TransactionException e) {
      transactionManager.rollback(transactionStatus);
      throw
        new IllegalStateException(

Examples of org.springframework.orm.hibernate3.HibernateTransactionManager.commit()

        HibernateTransactionManager tm = new HibernateTransactionManager(sf);
        TransactionStatus ts = tm.getTransaction(
            new DefaultTransactionDefinition(TransactionDefinition.PROPAGATION_SUPPORTS));
        org.hibernate.Session sess = SessionFactoryUtils.getSession(sf, true);
        SessionFactoryUtils.releaseSession(sess, sf);
        tm.commit(ts);

        sessionControl.verify();
        sessionControl.reset();

        session.close();

Examples of org.springframework.transaction.PlatformTransactionManager.commit()

    DefaultTransactionDefinition definition = new DefaultTransactionDefinition();
    definition.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRES_NEW);
    TransactionStatus status = txManager.getTransaction(definition);
    try {
      action.execute(activityXml, activityInst);
      txManager.commit(status);
    } catch (Exception e) {
      txManager.rollback(status);
      throw new ProcessEngineException("触发事件执行失败", e);
    }
  }

Examples of org.springframework.transaction.jta.JtaTransactionManager.commit()

    session = SqlSessionUtils.getSqlSession(sqlSessionFactory);
    session.getMapper(TestMapper.class).findTest();
    SqlSessionUtils.closeSqlSession(session, sqlSessionFactory);

    jtaManager.commit(status);

    // assume a real JTA tx would enlist and commit the JDBC connection
    assertNoCommitJdbc();
    assertCommitSession();
    assertSingleConnection();

Examples of org.springframework.transaction.support.AbstractPlatformTransactionManager.commit()

        AuditLogService logService = (AuditLogService) context.getBean("logService");
        DefaultTransactionDefinition def = new DefaultTransactionDefinition();
        TransactionStatus status = aptm.getTransaction(def);
        ProcessInstanceLog log = logService.findProcessInstance(processInstance.getId());
        assertNotNull(log);
        aptm.commit(status);

        List<TaskSummary> tasks = taskService.getTasksOwned("max", "en-UK");
        System.out.println("Found " + tasks.size() + " task(s) for user 'max'");

        long taskId = tasks.get(0).getId();
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.