Examples of Commit()


Examples of org.hsqldb_voltpatches.Session.commit()

                    case ScriptReaderBase.SEQUENCE_STATEMENT :
                        scr.getCurrentSequence().reset(scr.getSequenceValue());
                        break;

                    case ScriptReaderBase.COMMIT_STATEMENT :
                        current.commit(false);
                        break;

                    case ScriptReaderBase.INSERT_STATEMENT : {
                        current.beginAction(null);

Examples of org.huihoo.workflow.store.persistent.UserTransaction.commit()

              userTransaction,
              workflowWork,
              workflowTransition);
        }

        userTransaction.commit();
      }
      catch (WorkflowException ex)
      {
        if (userTransaction != null)
        {

Examples of org.infinispan.atomic.AtomicHashMap.commit()

                      isRemoved(), isValid(), isChanged(), isCreated(), value);

         // Ugh!
         if (value instanceof AtomicHashMap) {
            AtomicHashMap ahm = (AtomicHashMap) value;
            ahm.commit();
            if (isRemoved() && !isEvicted()) ahm.markRemoved(true);
         }

         if (isRemoved()) {
            container.remove(key);

Examples of org.infinispan.atomic.impl.AtomicHashMap.commit()

   public void testDeltasWithNoChanges() {
      AtomicHashMap m = new AtomicHashMap();
      m.initForWriting();
      m.put("k1", "v1");
      m.commit();
      assert m.size() == 1;
      Delta d = m.delta();
      assert d instanceof NullDelta;

      AtomicHashMap newMap = new AtomicHashMap();

Examples of org.infinispan.container.entries.CacheEntry.commit()

            Map.Entry<Object, CacheEntry> e = it.next();
            CacheEntry entry = e.getValue();
            Object key = e.getKey();
            boolean needToUnlock = lockManager.possiblyLocked(entry);
            // could be null with read-committed
            if (entry != null && entry.isChanged()) entry.commit(dataContainer);
            else {
               if (trace) log.trace("Entry for key {0} is null, not calling commitUpdate", key);
            }

            // and then unlock

Examples of org.infinispan.transaction.TransactionCoordinator.commit()

      worker.start();

      try {
         // finally commit or rollback the transaction
         if (commit) {
            txCoordinator.commit(localTx, false);
         } else {
            txCoordinator.rollback(localTx);
         }

         // make the transaction manager forget about our tx so that we don't get rollback exceptions in the log

Examples of org.infinispan.transaction.impl.TransactionCoordinator.commit()

      worker.start();

      try {
         // finally commit or rollback the transaction
         if (commit) {
            txCoordinator.commit(localTx, false);
         } else {
            txCoordinator.rollback(localTx);
         }

         // make the transaction manager forget about our tx so that we don't get rollback exceptions in the log

Examples of org.infinispan.transaction.tm.DummyTransactionManager.commit()

                  }
               }
            } catch (Exception e) {
               if (useTx) {
                  try {
                     mgr.commit();
                  } catch (Exception e1) {
                  }
               }
               latch.countDown();
            }

Examples of org.infinispan.transaction.xa.TransactionXaAdapter.commit()

      assertPrepared(0, dummyTm().getTransaction());
      xaRes.prepare(xaRes.getLocalTransaction().getXid());
      assertPrepared(1, dummyTm().getTransaction());
      final DummyTransaction suspend = (DummyTransaction) dummyTm().suspend();

      xaRes.commit(xaRes.getLocalTransaction().getXid(), false);
      assertPrepared(0, suspend);
      assertEquals(0, TestingUtil.getTransactionTable(cache).getLocalTxCount());
   }

   public void testMultipleTransactions() throws Exception {

Examples of org.jaudiotagger.audio.AudioFile.commit()

          result.add(message);
          Log.getInstance(HSQLController.class).warn(message);
        }
      }
     
      file.commit();
    } catch (Exception e) {
      result.add(e.getMessage() + " (" + e.toString() + ")"); //$NON-NLS-1$ //$NON-NLS-2$
      Log.getInstance(HSQLController.class).warn(e.getMessage());     
    }
    return result;
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.