|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
bass.db.embedded.DerbyInit
public class DerbyInit
Initialization Class for the embedded java DB, checks if DB is initialized or not, if not the DB is created, the tables are added and filled
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private static java.lang.String |
path
|
private StartupScreen |
ss
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
DerbyInit(StartupScreen ss)
|
|
| Method Summary | |
|---|---|
private boolean |
checkForCompleteDB(int nrOfBands,
int nrOfFriends)
|
private void |
createTables()
creates the tables "bands" & "bandfriends" and the index "ipx_bandname" on the embedded db |
private void |
fillTables()
fills the tables "bands" & "bandfriends" with the data from insertBandData.sql & insertBandFriendData.sql |
private void |
initDatabase()
|
static boolean |
isDBInstalled()
checks if the embedded db is already installed |
static void |
main(java.lang.String[] args)
Deprecated. testing purposes only |
void |
run()
|
private void |
setDBSystemDir()
sets the directory for the embedded DB |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static java.lang.String path
private StartupScreen ss
| Constructor Detail |
|---|
public DerbyInit(StartupScreen ss)
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic static void main(java.lang.String[] args)
args - private void setDBSystemDir()
public static boolean isDBInstalled()
private void initDatabase()
private void createTables()
private void fillTables()
private boolean checkForCompleteDB(int nrOfBands,
int nrOfFriends)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||