|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.bloof.db.McKoiControl
This class is responsible for controlling the internal database McKoi.
Field Summary | |
static java.lang.String |
MY_URL_PREFIX
Name and prefix of the Database |
static java.lang.String |
NAME
Name and prefix of the Database |
Constructor Summary | |
McKoiControl()
|
Method Summary | |
static void |
close()
Closes the database, freeing resources |
static java.sql.Connection |
create(DbAccess aDbAccess)
Creates a new McKoi SQL Database |
static void |
createIndices()
Create indices on the databaes for faster processing |
static java.sql.Connection |
createRemoteConnection(DbAccess aDbAccess)
Creates a connection to remote McKoi SQL Database |
static boolean |
isMyUrl(java.lang.String aDbUrl)
Returns true if the given String has the prefix of this Database JDBC URL |
static java.sql.Connection |
open(DbAccess aDbAccess)
Starts a local internal McKoi SQL Database; if the database does not exist yet, it will be created |
static java.sql.Connection |
openRemote(DbAccess aDbAccess)
Opens a connection to remote McKoi SQL Database; |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String MY_URL_PREFIX
public static final java.lang.String NAME
Constructor Detail |
public McKoiControl()
Method Detail |
public static void close() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
- on error
java.io.IOException
- on errorpublic static java.sql.Connection create(DbAccess aDbAccess) throws java.sql.SQLException, java.io.IOException
aDbAccess
- access info for database
java.sql.SQLException
- if error on database connect occurs
java.io.IOException
- if the dll file could not be readpublic static void createIndices() throws java.io.IOException
java.io.IOException
- on access error to ddl filepublic static java.sql.Connection createRemoteConnection(DbAccess aDbAccess) throws java.sql.SQLException, java.io.IOException
aDbAccess
- access info for database
java.sql.SQLException
- if error on database connect occurs
java.io.IOException
- if the dll file could not be readpublic static boolean isMyUrl(java.lang.String aDbUrl)
aDbUrl
- URL to check
public static java.sql.Connection open(DbAccess aDbAccess) throws java.sql.SQLException, java.io.IOException
aDbAccess
- access info for database
java.sql.SQLException
- if error on database connect occurs
java.io.IOException
- if the dll file could not be readpublic static java.sql.Connection openRemote(DbAccess aDbAccess) throws java.sql.SQLException
aDbAccess
- access info for database
java.sql.SQLException
- if error on database connect occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |