public class DriverUtility
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.sql.Connection |
conn
Database connection
|
private static java.lang.String |
dbUrl
Database connection url
|
private static boolean |
doChecks
flag to indicate if we should perform consistency, cardinality checks
after the load
|
private static java.lang.String |
driver
JDBC Driver class
|
private static short |
scale
Warehouse scale factor
|
| Constructor and Description |
|---|
DriverUtility()
Create a test case with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
allChecks()
Do the necessary checks to see if database is in consistent state
|
void |
cleanup()
cleanup resources.
|
java.sql.Connection |
getConnection() |
static void |
main(java.lang.String[] args)
Run OE load
|
private static void |
parseArgs(java.lang.String[] args)
parse arguments.
|
void |
populate()
Populate the OE database.
|
private static void |
printUsage()
prints the usage
|
private java.sql.Connection conn
private static short scale
private static java.lang.String dbUrl
private static java.lang.String driver
private static boolean doChecks
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - supply arguments for benchmark.java.lang.Exceptionpublic java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void populate()
throws java.lang.Exception
java.lang.Exceptionpublic void allChecks()
throws java.lang.Exception
java.lang.Exceptionprivate static void parseArgs(java.lang.String[] args)
args - arguments to parseprivate static void printUsage()
public void cleanup()
throws java.sql.SQLException
java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.