|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocalBootable
An interface that is implemented by an object that boots up the database. This is provided as an interface so that we aren't dependant on the entire database when compiling the JDBC code.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |