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 LocalBootable
config
- the configuration variables.SQLException
public DatabaseInterface boot(DBConfig config) throws SQLException
boot
in interface LocalBootable
config
- the configuration variables.SQLException
public boolean checkExists(DBConfig config) throws SQLException
checkExists
in interface LocalBootable
config
- the configuration variables.SQLException
public boolean isBooted() throws SQLException
isBooted
in interface LocalBootable
SQLException
public DatabaseInterface connectToJVM() throws SQLException
connectToJVM
in interface LocalBootable
SQLException
Copyright © 2015. All rights reserved.