public class DbTasks
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
blob_count |
static int |
clob_count |
static int |
delete_count |
private static int |
id_count |
static int |
insert_count |
static LogFile |
log |
static java.util.Random |
Rn |
Constructor and Description |
---|
DbTasks() |
Modifier and Type | Method and Description |
---|---|
void |
Backup(java.sql.Connection conn,
java.lang.String thread_name) |
void |
checkDbSize(java.sql.Connection conn,
java.lang.String thread_name) |
void |
compressTable(java.sql.Connection conn,
java.lang.String tabname,
java.lang.String thread_name) |
static long |
databaseSize(java.io.File dbname) |
static java.lang.String |
decrement(java.lang.String name,
int maxLength) |
void |
deleteMailByExp(java.sql.Connection conn,
java.lang.String thread_name) |
void |
deleteMailByThread(java.sql.Connection conn,
java.lang.String thread_name) |
void |
deleteMailByUser(java.sql.Connection conn,
java.lang.String thread_name) |
(package private) static void |
errorPrint(java.lang.Throwable e) |
private static char |
firstChar() |
static java.sql.Connection |
getConnection(java.lang.String usr,
java.lang.String passwd) |
void |
grantRevoke(java.sql.Connection conn,
java.lang.String thread_name) |
static java.lang.String |
increment(java.lang.String name,
int maxLength) |
void |
insertMail(java.sql.Connection conn,
java.lang.String thread_name) |
static void |
jdbcLoad(java.lang.String driverType,
boolean useexistingdb)
jdbcLoad - Create url, schema and set driver and database system property that will be use later in the test.
|
private static char |
lastChar() |
void |
moveToFolders(java.sql.Connection conn,
java.lang.String thread_name) |
private static char |
nextChar(char c) |
private static char |
previousChar(char c) |
void |
readMail(java.sql.Connection conn,
java.lang.String thread_name) |
static void |
setSystemProperty(java.lang.String key,
java.lang.String value) |
(package private) static void |
SQLExceptionPrint(java.sql.SQLException sqle) |
void |
totals(java.lang.String thread_name) |
public static LogFile log
private static int id_count
public static int insert_count
public static int delete_count
public static int clob_count
public static int blob_count
public static java.util.Random Rn
public static void jdbcLoad(java.lang.String driverType, boolean useexistingdb)
driverType
- - "embedded" or "NetworkServer"useexistingdb
- - whether to use existing database or notpublic static java.sql.Connection getConnection(java.lang.String usr, java.lang.String passwd)
public void readMail(java.sql.Connection conn, java.lang.String thread_name) throws java.lang.Exception
java.lang.Exception
public void deleteMailByUser(java.sql.Connection conn, java.lang.String thread_name) throws java.lang.Exception
java.lang.Exception
public void deleteMailByThread(java.sql.Connection conn, java.lang.String thread_name) throws java.lang.Exception
java.lang.Exception
public void moveToFolders(java.sql.Connection conn, java.lang.String thread_name) throws java.lang.Exception
java.lang.Exception
public void insertMail(java.sql.Connection conn, java.lang.String thread_name) throws java.lang.Exception
java.lang.Exception
public void deleteMailByExp(java.sql.Connection conn, java.lang.String thread_name) throws java.lang.Exception
java.lang.Exception
public void Backup(java.sql.Connection conn, java.lang.String thread_name) throws java.lang.Exception
java.lang.Exception
public void compressTable(java.sql.Connection conn, java.lang.String tabname, java.lang.String thread_name) throws java.lang.Exception
java.lang.Exception
public void checkDbSize(java.sql.Connection conn, java.lang.String thread_name)
public void grantRevoke(java.sql.Connection conn, java.lang.String thread_name) throws java.lang.Exception
java.lang.Exception
public static long databaseSize(java.io.File dbname)
public static void setSystemProperty(java.lang.String key, java.lang.String value)
public void totals(java.lang.String thread_name)
public static java.lang.String decrement(java.lang.String name, int maxLength)
private static char firstChar()
private static char lastChar()
private static char previousChar(char c)
public static java.lang.String increment(java.lang.String name, int maxLength)
private static char nextChar(char c)
static void errorPrint(java.lang.Throwable e)
static void SQLExceptionPrint(java.sql.SQLException sqle)
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.