public class LogDeviceTest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
LOG_PATH |
private static java.lang.String |
LOG_PATH1 |
private static java.lang.String |
TEST_DATABASE_NAME |
private static java.lang.String |
TEST_DATABASE_NAME1 |
private static java.lang.String |
TEST_TABLE_NAME |
Constructor and Description |
---|
LogDeviceTest() |
Modifier and Type | Method and Description |
---|---|
private boolean |
createDir(java.lang.String path) |
private void |
createTable(java.sql.Connection conn,
java.lang.String tableName) |
private static void |
dumpSQLException(java.sql.SQLException sqle)
dump the SQLException to the standard output.
|
private java.lang.String |
getFullPath(java.lang.String path) |
private void |
insert(java.sql.Connection conn,
java.lang.String tableName,
int rowCount)
Insert some rows into the specified table.
|
private void |
logMessage(java.lang.String str)
Write message to the standard output.
|
static void |
main(java.lang.String[] argv) |
private void |
runTest() |
private void |
shutdown(java.lang.String dbName)
Shutdown the datbase
|
private static final java.lang.String TEST_DATABASE_NAME
private static final java.lang.String TEST_DATABASE_NAME1
private static final java.lang.String TEST_TABLE_NAME
private static final java.lang.String LOG_PATH
private static final java.lang.String LOG_PATH1
public static void main(java.lang.String[] argv) throws java.lang.Throwable
java.lang.Throwable
private java.lang.String getFullPath(java.lang.String path) throws java.io.IOException
java.io.IOException
private boolean createDir(java.lang.String path)
private void runTest() throws java.lang.Exception
java.lang.Exception
private void shutdown(java.lang.String dbName)
dbName
- Name of the database to shutdown.private void logMessage(java.lang.String str)
private static void dumpSQLException(java.sql.SQLException sqle)
private void insert(java.sql.Connection conn, java.lang.String tableName, int rowCount) throws java.sql.SQLException
conn
- connection to the database.tableName
- name of the table that rows are inserted.rowCount
- Number of rows to Insert.java.sql.SQLException
- if any database exception occurs.private void createTable(java.sql.Connection conn, java.lang.String tableName) throws java.sql.SQLException
java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.