|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mckoi.database.jdbcserver.DefaultLocalBootable
public class DefaultLocalBootable
A bootable object that filters through to a JDBCDatabaseInterface but is thread-safe and multi-threaded. This is to be used when you have a local JDBC Client accessing a stand-alone database.
| Constructor Summary | |
|---|---|
DefaultLocalBootable()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLocalBootable()
| Method Detail |
|---|
public DatabaseInterface create(java.lang.String username,
java.lang.String password,
DBConfig config)
throws java.sql.SQLException
create in interface LocalBootableconfig - the configuration variables.
java.sql.SQLException
public DatabaseInterface boot(DBConfig config)
throws java.sql.SQLException
boot in interface LocalBootableconfig - the configuration variables.
java.sql.SQLException
public boolean checkExists(DBConfig config)
throws java.sql.SQLException
checkExists in interface LocalBootableconfig - the configuration variables.
java.sql.SQLException
public boolean isBooted()
throws java.sql.SQLException
isBooted in interface LocalBootablejava.sql.SQLException
public DatabaseInterface connectToJVM()
throws java.sql.SQLException
connectToJVM in interface LocalBootablejava.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||