DefaultLocalBootable
public interface LocalBootable
Modifier and Type | Method | Description |
---|---|---|
DatabaseInterface |
boot(DBConfig config) |
Boots the database with the given configuration.
|
boolean |
checkExists(DBConfig config) |
Attempts to test if the database exists or not.
|
DatabaseInterface |
connectToJVM() |
Connects this interface to the database currently running in this JVM.
|
DatabaseInterface |
create(java.lang.String username,
java.lang.String password,
DBConfig config) |
Attempts to create a new database system with the given name, and the
given username/password as the admin user for the system.
|
boolean |
isBooted() |
Returns true if there is a database currently booted in the current
JVM.
|
DatabaseInterface create(java.lang.String username, java.lang.String password, DBConfig config) throws java.sql.SQLException
config
- the configuration variables.java.sql.SQLException
DatabaseInterface boot(DBConfig config) throws java.sql.SQLException
config
- the configuration variables.java.sql.SQLException
boolean checkExists(DBConfig config) throws java.sql.SQLException
config
- the configuration variables.java.sql.SQLException
boolean isBooted() throws java.sql.SQLException
java.sql.SQLException
DatabaseInterface connectToJVM() throws java.sql.SQLException
java.sql.SQLException
Copyright © 2018. All rights reserved.