/* This file is part of VoltDB.
 * Copyright (C) 2008-2019 VoltDB Inc.
 *
 * This file contains original code and/or modifications of original code.
 * Any modifications made by VoltDB Inc. are licensed under the following
 * terms and conditions:
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 */
/* Copyright (C) 2008
 * Evan Jones
 * Massachusetts Institute of Technology
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 */
package com.procedures;

import org.voltdb.DeprecatedProcedureAPIAccess;
import org.voltdb.SQLStmt;
import org.voltdb.VoltProcedure;
import org.voltdb.VoltTable;

/**
 * Loads initial data into TPCC tables.
 */
public class LoadWarehouse extends VoltProcedure {

    public static final SQLStmt writeStmt = new SQLStmt("INSERT INTO WAREHOUSE VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);");

    @SuppressWarnings("deprecation")
    public VoltTable[] run(short w_id, VoltTable warehouses, VoltTable districts, VoltTable customers,
        VoltTable stocks, VoltTable orders, VoltTable neworders, VoltTable orderLines, VoltTable histories)
    throws VoltAbortException {
        DeprecatedProcedureAPIAccess.voltLoadTable(this, "cluster", "database", "WAREHOUSE", warehouses, false, false);
        DeprecatedProcedureAPIAccess.voltLoadTable(this, "cluster", "database", "DISTRICT", districts, false, false);
        DeprecatedProcedureAPIAccess.voltLoadTable(this, "cluster", "database", "CUSTOMER", customers, false, false);
        DeprecatedProcedureAPIAccess.voltLoadTable(this, "cluster", "database", "STOCK", stocks, false, false);
        DeprecatedProcedureAPIAccess.voltLoadTable(this, "cluster", "database", "ORDERS", orders, false, false);
        DeprecatedProcedureAPIAccess.voltLoadTable(this, "cluster", "database", "NEW_ORDER", neworders, false, false);
        DeprecatedProcedureAPIAccess.voltLoadTable(this, "cluster", "database", "ORDER_LINE", orderLines, false, false);
        DeprecatedProcedureAPIAccess.voltLoadTable(this, "cluster", "database", "HISTORY", histories, false, false);
        return null;
    }
}

@@ -3157,39 +3157,16 @@
 le(this,
- %22cluster%22, %22database%22,
  %22WAREHO
@@ -3181,30 +3181,16 @@
 rehouses
-, false, false
 );%0A     
@@ -3240,39 +3240,16 @@
 le(this,
- %22cluster%22, %22database%22,
  %22DISTRI
@@ -3262,30 +3262,16 @@
 istricts
-, false, false
 );%0A     
@@ -3321,39 +3321,16 @@
 le(this,
- %22cluster%22, %22database%22,
  %22CUSTOM
@@ -3343,30 +3343,16 @@
 ustomers
-, false, false
 );%0A     
@@ -3408,59 +3408,22 @@
 s, %22
-cluster%22, %22database%22, %22STOCK%22, stocks, false, false
+STOCK%22, stocks
 );%0A 
@@ -3477,39 +3477,16 @@
 le(this,
- %22cluster%22, %22database%22,
  %22ORDERS
@@ -3490,38 +3490,24 @@
 ERS%22, orders
-, false, false
 );%0A        D
@@ -3553,39 +3553,16 @@
 le(this,
- %22cluster%22, %22database%22,
  %22NEW_OR
@@ -3576,30 +3576,16 @@
 eworders
-, false, false
 );%0A     
@@ -3635,39 +3635,16 @@
 le(this,
- %22cluster%22, %22database%22,
  %22ORDER_
@@ -3660,30 +3660,16 @@
 derLines
-, false, false
 );%0A     
@@ -3723,31 +3723,8 @@
 his,
- %22cluster%22, %22database%22,
  %22HI
@@ -3744,22 +3744,8 @@
 ries
-, false, false
 );%0A 

Update calls to DeprecatedProcedureAPIAccess.voltLoadTable (#6577)