Examples of commit()


Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit()

      doc.fromJSON(json);
      doc.field("nr", g);

      doc.save();
    }
    db.commit();

    Assert.assertEquals(db.countClusterElements("Account"), totalAccounts + 1000);

    db.close();
  }

Examples of com.orientechnologies.orient.core.db.record.ODatabaseFlat.commit()

      public void onOpen(ODatabase iDatabase) {
      }
    });

    db.commit();

    db.close();
  }
}

Examples of com.orientechnologies.orient.core.db.record.ODatabaseRecord.commit()

    try {
      final Object result = super.execute(iArgs);

      if (txbegun)
        database.commit();

      return result;
    } catch (Exception e) {
      if (txbegun)
        database.rollback();

Examples of com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.commit()

      if (Logger.isDebugEnabled()) Logger.debug("Commit transaction");
      tranCount.set(tranCount.get().intValue()-1);
      if (tranCount.get()<0) throw new RuntimeException("Commit without transaction!");
      if (tranCount.get()==0) {
        db.commit();
        db.getTransaction().close();
     
    }else throw new NoTransactionException("There is no open transaction to commit");
    if (Logger.isDebugEnabled()) Logger.debug("Commit Transaction: transaction count -after-: " + tranCount.get());

Examples of com.orientechnologies.orient.core.index.OIndex.commit()

      // COMMIT INDEX CHANGES
      final ODocument indexEntries = currentTx.getIndexChanges();
      if (indexEntries != null) {
        for (Entry<String, Object> indexEntry : indexEntries) {
          final OIndex index = getMetadata().getIndexManager().getIndexInternal(indexEntry.getKey());
          index.commit((ODocument) indexEntry.getValue());
        }
      }
    } finally {
      // RELEASE INDEX LOCKS IF ANY
      if (lockedIndexes != null)

Examples of com.orientechnologies.orient.core.index.OIndexMVRBTreeAbstract.commit()

      // COMMIT INDEX CHANGES
      final ODocument indexEntries = currentTx.getIndexChanges();
      if (indexEntries != null) {
        for (Entry<String, Object> indexEntry : indexEntries) {
          final OIndex index = getMetadata().getIndexManager().getIndexInternal(indexEntry.getKey());
          index.commit((ODocument) indexEntry.getValue());
        }
      }
    } finally {
      // RELEASE INDEX LOCKS IF ANY
      if (lockedIndexes != null)

Examples of com.orientechnologies.orient.object.db.OObjectDatabaseTx.commit()

      Profile person = new Profile();
      person.setNick("Guy1");
      person.setName("Guy");
      person.setSurname("Ritchie");
      person = db.save(person);
      db.commit();

      db.begin();
      db.delete(person);
      db.commit();

Examples of com.persistit.Transaction.commit()

            try {
                if (tx.isActive() && !tx.isRollbackPending()) {
                    int i = 0;
                    while (true) {
                        try {
                            tx.commit(Transaction.CommitPolicy.HARD);
                            tx.end();
                            break;
                        } catch (RollbackException ex) {
                            if (i++ >= retries) {
                                throw ex;

Examples of com.ponysdk.core.stm.Txn.commit()

                    for (final Object data : collection) {
                        for (final DataListener listener : listenerCollection) {
                            listener.onData(data);
                        }
                    }
                    txn.commit();
                } catch (final Throwable e) {
                    log.error("Cannot process open socket", e);
                    txn.rollback();
                }
            } finally {

Examples of com.prodeagle.java.counters.BatchCounter.commit()

    while (numberOfCounters > 0) {
      batchCounters.increment("Counter" + numberOfCounters);
      numberOfCounters--;
    }
   
    batchCounters.commit();
  }
 
  public void doPost(HttpServletRequest req, HttpServletResponse resp) {
    doGet(req, resp);
  }
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.