public class DefaultLocalBootable extends Object implements LocalBootable
| Constructor and Description |
|---|
DefaultLocalBootable() |
| Modifier and Type | Method and Description |
|---|---|
DatabaseInterface |
boot(DBConfig config)
Boots the local database with the given configuration.
|
boolean |
checkExists(DBConfig config)
Attempts to test if the database exists or not.
|
DatabaseInterface |
connectToJVM()
Creates a new LocalDatabaseInterface that is connected to the database
currently running in this VM.
|
DatabaseInterface |
create(String username,
String password,
DBConfig config)
Creates and boots a local database with the given configuration.
|
boolean |
isBooted()
Returns true if a database has successfully been booted in this JVM.
|
public DatabaseInterface create(String username, String password, DBConfig config) throws SQLException
create in interface LocalBootableconfig - the configuration variables.SQLExceptionpublic DatabaseInterface boot(DBConfig config) throws SQLException
boot in interface LocalBootableconfig - the configuration variables.SQLExceptionpublic boolean checkExists(DBConfig config) throws SQLException
checkExists in interface LocalBootableconfig - the configuration variables.SQLExceptionpublic boolean isBooted()
throws SQLException
isBooted in interface LocalBootableSQLExceptionpublic DatabaseInterface connectToJVM() throws SQLException
connectToJVM in interface LocalBootableSQLExceptionCopyright © 2019. All rights reserved.