public class MySQLEmbeddedDB extends EmbeddedDB
EmbeddedDB.DBEngine, EmbeddedDB.ResultSetJob| Modifier and Type | Field and Description |
|---|---|
protected DataSource |
dataSource |
protected int |
port |
protected AtomicBoolean |
started |
allTables, databaseName, jdbcConnectionString, logger, password, username| Constructor and Description |
|---|
MySQLEmbeddedDB() |
MySQLEmbeddedDB(String databaseName,
String username,
String password,
boolean useMariaDB) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createDataSource() |
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, getPort, getUsernameprotected final AtomicBoolean started
protected DataSource 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 EmbeddedDBprotected void createDataSource()
Copyright © 2010-2015. All Rights Reserved.