Package org.killbill.commons.embeddeddb
Class GenericStandaloneDB
- java.lang.Object
-
- org.killbill.commons.embeddeddb.EmbeddedDB
-
- org.killbill.commons.embeddeddb.GenericStandaloneDB
-
public class GenericStandaloneDB extends EmbeddedDB
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.killbill.commons.embeddeddb.EmbeddedDB
EmbeddedDB.DBEngine, EmbeddedDB.ResultSetJob
-
-
Field Summary
Fields Modifier and Type Field Description protected AtomicBooleanstarted-
Fields inherited from class org.killbill.commons.embeddeddb.EmbeddedDB
allTables, databaseName, dataSource, jdbcConnectionString, logger, password, username
-
-
Constructor Summary
Constructors Constructor Description GenericStandaloneDB(String databaseName, String username, String password, String jdbcConnectionString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmbeddedDB.DBEnginegetDBEngine()voidinitialize()voidrefreshTableNames()voidstart()voidstop()-
Methods inherited from class org.killbill.commons.embeddeddb.EmbeddedDB
cleanupAllTables, cleanupTable, createHikariDataSource, execute, execute, executeQuery, executeScript, executeUpdate, getAllTables, getCmdLineConnectionString, getConnection, getDatabaseName, getDataSource, getJdbcConnectionString, getPassword, getPort, getUsername, setDataSource, useConnectionPooling
-
-
-
-
Field Detail
-
started
protected final AtomicBoolean started
-
-
Method Detail
-
getDBEngine
public EmbeddedDB.DBEngine getDBEngine()
- Specified by:
getDBEnginein classEmbeddedDB
-
initialize
public void initialize() throws IOException, SQLException- Specified by:
initializein classEmbeddedDB- Throws:
IOExceptionSQLException
-
start
public void start() throws IOException- Specified by:
startin classEmbeddedDB- Throws:
IOException
-
refreshTableNames
public void refreshTableNames() throws IOException- Specified by:
refreshTableNamesin classEmbeddedDB- Throws:
IOException
-
stop
public void stop() throws IOException- Overrides:
stopin classEmbeddedDB- Throws:
IOException
-
-