public class TestDb
extends java.lang.Object
Constructor and Description |
---|
TestDb() |
Modifier and Type | Method and Description |
---|---|
static void |
buildCoffeeTable(java.sql.Connection conn)
The buildCoffeeTable method creates the
Coffee table and adds some rows to it.
|
static void |
buildCustomerTable(java.sql.Connection conn)
The buildCustomerTable method creates the
Customer table and adds some rows to it.
|
static void |
buildUnpaidOrderTable(java.sql.Connection conn)
The buildUnpaidOrderTable method creates
the UnpaidOrder table.
|
static void |
dropTables(java.sql.Connection conn)
The dropTables method drops any existing
in case the database already exists.
|
public static void dropTables(java.sql.Connection conn)
public static void buildCoffeeTable(java.sql.Connection conn)
public static void buildCustomerTable(java.sql.Connection conn)
public static void buildUnpaidOrderTable(java.sql.Connection conn)