Class BenchA

java.lang.Object
org.h2.test.bench.BenchA
All Implemented Interfaces:
Bench

public class BenchA extends Object implements Bench
This test is similar to the TPC-A test of the Transaction Processing Council (TPC). However, only one connection and one thread is used.

See also: http://www.tpc.org/tpca/spec/tpca_current.pdf

  • Constructor Details

    • BenchA

      public BenchA()
  • Method Details

    • init

      public void init(org.h2.test.bench.Database db, int size) throws SQLException
      Description copied from interface: Bench
      Initialize the database. This includes creating tables and inserting data.
      Specified by:
      init in interface Bench
      Parameters:
      db - the database object
      size - the amount of data
      Throws:
      SQLException
    • runTest

      public void runTest() throws SQLException
      Description copied from interface: Bench
      Run the test.
      Specified by:
      runTest in interface Bench
      Throws:
      SQLException
    • getName

      public String getName()
      Description copied from interface: Bench
      Get the name of the test.
      Specified by:
      getName in interface Bench
      Returns:
      the test name