|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mckoi.database.control.DBController
public final class DBController
An object that provides methods for creating and controlling database systems in the current JVM.
| Method Summary | |
|---|---|
DBSystem |
createDatabase(DBConfig config,
java.lang.String admin_user,
java.lang.String admin_pass)
Creates a database in the local JVM (and filesystem) given the configuration in DBConfig and returns a DBSystem object. |
boolean |
databaseExists(DBConfig config)
Returns true if a Mckoi database exists in the given directory of the file system, otherwise returns false if the path doesn't contain a database. |
static DBController |
getDefault()
Returns the static controller for this JVM. |
DBSystem |
startDatabase(DBConfig config)
Starts a database in the local JVM given the configuration in DBConfig and returns a DBSystem object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean databaseExists(DBConfig config)
The path string must be formatted using Unix '/' deliminators as directory separators.
config - the configuration of the database to check the existence
of.
public DBSystem createDatabase(DBConfig config,
java.lang.String admin_user,
java.lang.String admin_pass)
A failure might happen because the database path does not exist.
admin_user - the username of the administrator for the new database.admin_pass - the password of the administrator for the new database.config - the configuration of the database to create and start in the
local JVM.
public DBSystem startDatabase(DBConfig config)
A failure might happen if the database does not exist in the path given in the configuration.
config - the configuration of the database to start in the local
JVM.
public static DBController getDefault()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||