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