Examples of Commit()


Examples of de.mhus.lib.jpa.JpaEntityManager.commit()

   
    Book book2 = new Book();
    book2.setName("Sofies Welt");
    em.persist(book2);
   
    em.commit();
   
    System.out.println("ID: " + book1.getId() );
    System.out.println("ID: " + book2.getId() );
   
    assertNotSame(book1.getId(), book2.getId());

Examples of de.mhus.lib.sql.DbConnection.commit()

     
      // create database
      DbStatement sthc = con.getStatement("create");
      try {
        sthc.executeUpdate(null);
          con.commit();
      } catch (Exception e) {e.printStackTrace();}
     
      DbStatement sth = con.getStatement("select");
      try {
        DbResult res = sth.executeQuery(null);

Examples of de.odysseus.calyxo.forms.FormProperties.commit()

    HttpServletResponse response) throws Exception {

    FormsSupport support = FormsSupport.getInstance(request);
    FormProperties properties =
      support.getFormProperties(request, mapping.getPath());
    properties.commit();

    return new ActionForward(mapping.getInput());
  }
}

Examples of de.zib.scalaris.Transaction.commit()

                            + ") failed with not found: " + e.getMessage());
                }
            }

            System.out.print("    Committing transaction... ");
            transaction.commit();
            System.out.println("done");
        } catch (final ConnectionException e) {
            System.out.println("failed: " + e.getMessage());
            return;
        } catch (final TimeoutException e) {

Examples of dovetaildb.api.ApiService.commit()

        api.remove(req.getBagName(), req.getId());
        break;
      default:
        throw new RuntimeException();
      }
      api.commit();
      normalFinish = true;
    } finally {
      if (! normalFinish) api.rollback();
    }
    return returnVal;

Examples of dovetaildb.dbservice.BagIndexBridge.commit()

          }
        });
        FsTransactionMapper mapper = new FsTransactionMapper(subDbServiceHome, sync);
        b.setTxnMapper(mapper);
        // when creating a new BagIndexBridge, issue an empty commit to get a valid initial txn entry
        b.commit(mapper.getHighestTxnId(), new HashMap<String, ApiBuffer>());
        DbService dbService = b;
        dbService = new ScoringDbService(dbService);
        return dbService;
      }
    };

Examples of edu.brown.hstore.estimators.TransactionEstimator.commit()

                case OK:
                    if (t_estimator != null) {
                        if (trace.val)
                            LOG.trace(String.format("Telling the %s to COMMIT %s",
                                      t_estimator.getClass().getSimpleName(), ts));
                        t_estimator.commit(t_state);
                    }
                    // We always need to keep track of how many txns we process
                    // in order to check whether we are hung or not
                    if (hstore_conf.site.txn_counters || hstore_conf.site.status_kill_if_hung) {
                        TransactionCounter.COMPLETED.inc(catalog_proc);

Examples of edu.isi.karma.semantictypes.tfIdf.Indexer.commit()

        IndexableField existingContent = labelDoc.getField(Indexer.CONTENT_FIELD_NAME);
        indexer.updateDocument(existingContent, sb.toString(), label);
      } else {
        indexer.addDocument(sb.toString(), label);
      }
      indexer.commit();
    } finally {
      indexer.close();
    }

    return true;

Examples of edu.wpi.first.wpilibj.Dashboard.commit()

      lowDashData.finalizeCluster();

      lowDashData.addByte(Solenoid.getAll());
    }
    lowDashData.finalizeCluster();
    lowDashData.commit();
  }
}

Examples of es.ipsa.atril.sec.authentication.AtrilSession.commit()

      Dms oDms = oSes.getDms();
      Order oOrder = new Order(oDms, order_id);
      BigDecimal oStatus = oOrder.getBigDecimal("status_number");
      if (oStatus != null && (oStatus.compareTo(Tpv.PAGADO) != 0 && oStatus.compareTo(Tpv.PENDIENTE_CONFIRMACION) != 0)) {
        oOrder.getDocument().deleteWithChildren();
        oSes.commit();
      }
      disconnect();
      return new ForwardResolution("");
    } catch (StorageException ex) {
      Exceptions.printStackTrace(ex);
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.