Package com.oltpbenchmark.benchmarks.tpcc.procedures

Examples of com.oltpbenchmark.benchmarks.tpcc.procedures.NewOrder


   * Executes a single TPCC transaction of type transactionType.
   */
  @Override
    protected TransactionStatus executeWork(TransactionType nextTransaction) throws UserAbortException, SQLException {
        if (nextTransaction.getProcedureClass().equals(NewOrder.class)) {
          NewOrder proc = (NewOrder) this.getProcedure(NewOrder.class);
      proc.run(conn, gen, terminalWarehouseID, numWarehouses,
          terminalDistrictLowerID, terminalDistrictUpperID, this);
        } else if (nextTransaction.getProcedureClass().equals(Payment.class)) {
      Payment proc2 = (Payment) this.getProcedure(Payment.class);
      proc2.run(conn, gen, terminalWarehouseID, numWarehouses,
          terminalDistrictLowerID, terminalDistrictUpperID, this);
View Full Code Here

TOP

Related Classes of com.oltpbenchmark.benchmarks.tpcc.procedures.NewOrder

Copyright © 2018 www.massapicom. 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.