public interface Load
DECIMAL values are represented as String objects to allow Order Entry to be run on J2ME/CDC/Foundation which does not support BigDecimal.
| Modifier and Type | Field and Description |
|---|---|
static int |
CUSTOMER_COUNT_W |
static short |
DISTRICT_COUNT_W
Cardinality constants
These numbers are factored by W, the number of Warehouses,
to illustrate the database scaling.
|
static int |
HISTORY_COUNT_W |
static int |
ITEM_COUNT |
static int |
NEWORDERS_BREAKPOINT |
static int |
NEWORDERS_COUNT_W |
static int |
ORDERLINE_COUNT_WV |
static int |
ORDERS_COUNT_W |
static int |
STOCK_COUNT_W |
| Modifier and Type | Method and Description |
|---|---|
void |
populateAllTables()
Follow the initial database population requirements in Section 4.3.3
and populate all the required tables.
|
void |
setSeed(long seed)
Set the seed for the random number generator used to
populate the data.
|
void |
setThreadCount(int threadCount)
Set the number of total threads the loader is allowed to use
to load data.
|
void |
setupLoad(java.sql.Connection conn,
short scale)
Perform the necessary setup before database population.
|
static final short DISTRICT_COUNT_W
static final int CUSTOMER_COUNT_W
static final int ITEM_COUNT
static final int NEWORDERS_COUNT_W
static final int HISTORY_COUNT_W
static final int STOCK_COUNT_W
static final int ORDERS_COUNT_W
static final int ORDERLINE_COUNT_WV
static final int NEWORDERS_BREAKPOINT
void setSeed(long seed)
seed - void setupLoad(java.sql.Connection conn,
short scale)
throws java.lang.Exception
conn - - database connectionscale - - scale of the database. The WAREHOUSE table is
used as the base unit of scaling.java.lang.Exceptionvoid setThreadCount(int threadCount)
threadCount - Number of threads to use if loading supports
multiple threading.void populateAllTables()
throws java.lang.Exception
java.sql.SQLExceptionjava.lang.ExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.