Examples of commit()


Examples of com.salesforce.phoenix.jdbc.PhoenixConnection.commit()

                rowCount++;
                // Commit a batch if auto commit is true and we're at our batch size
                if (isAutoCommit && rowCount % batchSize == 0) {
                    MutationState state = new MutationState(tableRef, mutations, 0, maxSize, connection);
                    connection.getMutationState().join(state);
                    connection.commit();
                    mutations.clear();
                }
            }

            // If auto commit is true, this last batch will be committed upon return

Examples of com.sleepycat.db.Transaction.commit()

            index = null;
            blocks = null;
            throw e;
        } finally {
            if (txn != null)
                txn.commit();
            txn = null;
        }
    }

    @Override

Examples of com.sleepycat.je.Transaction.commit()

      } finally {
        if (cursor != null) {
          cursor.close();
        }
        if (txn != null) {
          txn.commit();
        }
      }
      return results;
    }
  }

Examples of com.sleepycat.je.XAEnvironment.commit()

      assertTrue(sawXid1 && sawXid2);

      xaEnv2 = (XAEnvironment) env;
      Transaction recoveryXATxn1 = xaEnv2.getXATransaction(xid1);
      Transaction recoveryXATxn2 = xaEnv2.getXATransaction(xid2);
      xaEnv2.commit(xid1, false);
      xaEnv2.rollback(xid2);
      verifyData(expectedData1, false, 0, NUM_DBS);
      verifyData(expectedData2, false, NUM_DBS, NUM_DBS << 1);
      forceCloseEnvOnly();
      xaRecoverOnly(NUM_DBS);

Examples of com.sleepycat.je.rep.txn.MasterTxn.commit()

        nameIdPair.revertToNull(); /* read transaction, so null id is ok. */

        /* Now delete old nodes and the group, and establish a new group */
        Txn txn = new MasterTxn(repImpl, txnConfig, nameIdPair);
        RepGroupImpl prevRepGroup = fetchGroupObject(txn, dbImpl);
        txn.commit();

        final int nodeIdSequenceStart = prevRepGroup.getNodeIdSequence();

        final DatabaseEntry keyEntry = new DatabaseEntry();
        final DatabaseEntry value = new DatabaseEntry();

Examples of com.sleepycat.je.rep.txn.ReplayTxn.commit()

                     */
                    repNode.getVLSNFreezeLatch().awaitThaw();
                    repNode.getMasterStatus().assertSync();
                }

                repTxn.commit(syncPolicy,
                              new ReplicationContext(lastReplayedVLSN),
                              masterCommit.getMasterNodeId());

                final long masterCommitTimeMs =
                        masterCommit.getTime().getTime();

Examples of com.sleepycat.je.txn.Txn.commit()

            }
            removeReferringHandle(new Transaction(this, txn));
            if (txn.isOnlyAbortable()) {
                throw new XAException(XAException.XA_RBROLLBACK);
            }
            txn.commit(xid);
        } catch (DatabaseException DE) {
            throwNewXAException(DE);
        }
        if (DEBUG) {
            System.out.println("*** commit finished");

Examples of com.sun.enterprise.ee.admin.hadbmgmt.HADBConfigurePersistence.commit()

                clusterName, getLogger(), getConfigContext(),
                getMBeanServer(), type, frequency, scope, store, props);
            info.setup();
           
            HADBConfigurePersistence worker = new HADBConfigurePersistence(info);
            return worker.commit();
        }
        catch(HADBSetupException hse)
        {
            throw hse;
        }

Examples of com.sun.enterprise.ee.synchronization.store.SynchronizationMemento.commit()

       
            System.out.println("Number of files copied to directory ["
                + getBackupFile(tmpFile) + "]: " + copied.size());
       
            // merges the two trees
            m.commit();

            List newInventory = iMgr.getInventory();

            System.out.println("Number of files in directory ["
                + tmpFile + "]: " + newInventory.size());

Examples of com.sun.enterprise.transaction.api.JavaEETransaction.commit()

                            if(transactionCompletionMode.equalsIgnoreCase(COMMIT)){
                                if(_logger.isLoggable(Level.FINEST)){
                                    _logger.log(Level.FINEST,"Transaction Completion Mode for LocalTx resource is " +
                                            "set as COMMIT, committing transaction");
                                }
                                j2eetran.commit();
                            }else if(transactionCompletionMode.equalsIgnoreCase(ROLLBACK)){
                                if(_logger.isLoggable(Level.FINEST)){
                                    _logger.log(Level.FINEST,"Transaction Completion Mode for LocalTx resource is " +
                                        "set as ROLLBACK, rolling back transaction");
                                }
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.