public class MySQLEmbeddedDB extends EmbeddedDB
EmbeddedDB.DBEngine, EmbeddedDB.ResultSetJob| Modifier and Type | Field and Description |
|---|---|
protected com.mysql.jdbc.jdbc2.optional.MysqlDataSource |
dataSource |
protected int |
port |
protected AtomicBoolean |
started |
allTables, databaseName, jdbcConnectionString, logger, password, username| Constructor and Description |
|---|
MySQLEmbeddedDB() |
MySQLEmbeddedDB(String databaseName,
String username,
String password) |
MySQLEmbeddedDB(String databaseName,
String username,
String password,
String jdbcConnectionString) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCmdLineConnectionString() |
DataSource |
getDataSource() |
EmbeddedDB.DBEngine |
getDBEngine() |
void |
initialize() |
void |
refreshTableNames() |
void |
start() |
void |
stop() |
cleanupAllTables, cleanupTable, execute, execute, executeQuery, executeScript, executeUpdate, getAllTables, getConnection, getDatabaseName, getJdbcConnectionString, getPassword, getUsernameprotected final AtomicBoolean started
protected com.mysql.jdbc.jdbc2.optional.MysqlDataSource dataSource
protected int port
public EmbeddedDB.DBEngine getDBEngine()
getDBEngine in class EmbeddedDBpublic void initialize()
throws IOException
initialize in class EmbeddedDBIOExceptionpublic void start()
throws IOException
start in class EmbeddedDBIOExceptionpublic void refreshTableNames()
throws IOException
refreshTableNames in class EmbeddedDBIOExceptionpublic DataSource getDataSource() throws IOException
getDataSource in class EmbeddedDBIOExceptionpublic void stop()
throws IOException
stop in class EmbeddedDBIOExceptionpublic String getCmdLineConnectionString()
getCmdLineConnectionString in class EmbeddedDBCopyright © 2010-2014. All Rights Reserved.