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