LocalBootablepublic class DefaultLocalBootable extends java.lang.Object implements LocalBootable
| Constructor | Description |
|---|---|
DefaultLocalBootable() |
| Modifier and Type | Method | 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(java.lang.String username,
java.lang.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(java.lang.String username, java.lang.String password, DBConfig config) throws java.sql.SQLException
create in interface LocalBootableconfig - the configuration variables.java.sql.SQLExceptionpublic DatabaseInterface boot(DBConfig config) throws java.sql.SQLException
boot in interface LocalBootableconfig - the configuration variables.java.sql.SQLExceptionpublic boolean checkExists(DBConfig config) throws java.sql.SQLException
checkExists in interface LocalBootableconfig - the configuration variables.java.sql.SQLExceptionpublic boolean isBooted()
throws java.sql.SQLException
isBooted in interface LocalBootablejava.sql.SQLExceptionpublic DatabaseInterface connectToJVM() throws java.sql.SQLException
connectToJVM in interface LocalBootablejava.sql.SQLExceptionCopyright © 2018. All rights reserved.