Examples of Commit()


Examples of javax.transaction.xa.XAResource.commit()

            try {
                if (!delistSuccessful || test.rollbackAllways()|| test.exceptionOccurred()) {
                  xaResource.rollback(xid);
                }
                else if (commit) {
                  xaResource.commit(xid, true);
                }           
            } catch (Exception e) {
              if (!exception) {
                throw new TransactionRuntimeException(e);
              }

Examples of jdbm.RecordManager.commit()

                System.out.println( "Insert: " + people[i] );
                tree.insert( people[ i ], occupations[ i ], false );
            }

            // make the data persistent in the database
            recman.commit();

            // show list of people with their occupation
            System.out.println();
            System.out.println( "Person                   Occupation       " );
            System.out.println( "------------------       ------------------" );

Examples of jdbm.recman.BaseRecordManager.commit()

    RecordManager recman = new BaseRecordManager(file);
    PrimaryTreeMap<Long, String> map = recman.treeMap("aa");
    for(long i = init; i<init+size;i++){
      map.put(i, "");     
    }
    recman.commit();
    recman.defrag();
    recman.close();
    long fileSize = new File(file+".dbr.0").length()/1024;
    System.out.println("file size: "+fileSize);
    assertTrue("file is too big, compression failed", fileSize<1000);

Examples of jfix.search.FullTextIndex.commit()

              .getItemRenderer()).render(entity));
        } else {
          index.add(entity, String.valueOf(entity));
        }
      }
      index.commit();
      for (Object obj : index.search(searchTerm)) {
        if (selectionModel.indexOf(obj) == -1) {
          choiceModel.add(obj);
        }
      }

Examples of jodd.db.jtx.DbJtxTransaction.commit()

    assertTotals(0, 0);
    DbJtxTransaction tx = dbtxm.requestTransaction(new JtxTransactionMode().propagationRequired());
    assertTotals(1, 1);
    s0 = tx.requestResource();
    service0_1(tx);
    tx.commit();
    assertTotals(0, 0);
  }

  void service0_1(JtxTransaction uptx) {
    assertTotals(1, 1);

Examples of jodd.jtx.JtxTransaction.commit()

      System.out.println(StringUtil.repeat('-', 55) + " start");
      System.out.println("\n\n");
      run();
      System.out.println("\n\n");
      System.out.println(StringUtil.repeat('-', 55) + " end");
      tx.commit();
    } catch (Throwable throwable) {
      throwable.printStackTrace();
      tx.rollback();
    }

Examples of liquibase.database.Database.commit()

    public void clearAllCheckSums() throws LiquibaseException {
        Database database = getDatabase();
        UpdateStatement updateStatement = new UpdateStatement(database.getLiquibaseCatalogName(), database.getLiquibaseSchemaName(), database.getDatabaseChangeLogTableName());
        updateStatement.addNewColumnValue("MD5SUM", null);
        ExecutorService.getInstance().getExecutor(database).execute(updateStatement);
        database.commit();
    }

    @Override
    public void destroy() throws DatabaseException {
        Database database = getDatabase();

Examples of liquibase.database.DatabaseConnection.commit()

            try {
                connectionStatement.executeUpdate("drop table " + database.escapeTableName(database.getLiquibaseCatalogName(), database.getLiquibaseSchemaName(), database.getDatabaseChangeLogLockTableName()));
            } catch (SQLException e) {
                ;
            }
            connection.commit();
            try {
                connectionStatement.executeUpdate("drop table " + database.escapeTableName(database.getLiquibaseCatalogName(), database.getLiquibaseSchemaName(), database.getDatabaseChangeLogTableName()));
            } catch (SQLException e) {
                ;
            }

Examples of marauroa.server.db.TransactionPool.commit()

      System.out.println("> " + i);
      String cmd = "INSERT INTO itemlog_new (id, timedate, itemid, source, event, param1, param2, param3, param4)"
        + " SELECT id, timedate, itemid, source, event, param1, param2, param3, param4 FROM itemlog WHERE id >= " + (i * 100) + " AND id < "  + ((i+1) * 100);
      DBTransaction transaction = transactionPool.beginWork();
      transaction.execute(cmd, null);
      transactionPool.commit(transaction);
      System.out.println("< " + i);
      Thread.sleep(3000);
    }
  }
}

Examples of mireka.pop.store.MaildropAppender.commit()

                appender.rollback();
                throw new RejectExceptionExt(
                        EnhancedStatus.TRANSIENT_LOCAL_ERROR_IN_PROCESSING);
            }
            try {
                appender.commit();
            } catch (LocalMailSystemException e) {
                logger.error("Cannot accept mail because of a "
                        + "maildrop failure", e);
                throw new RejectExceptionExt(e.errorStatus());
            }
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.