twcore.core
Class SQLManager

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--twcore.core.SQLManager
All Implemented Interfaces:
java.lang.Runnable

public class SQLManager
extends java.lang.Thread


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SQLManager(java.io.File configFile)
          Creates a new instance of MySQLManager
 
Method Summary
 boolean isOperational()
           
 java.sql.ResultSet query(java.lang.String connectionName, java.lang.String query)
           
 void queryBackground(java.lang.String connName, java.lang.String identifier, java.lang.String query, twcore.core.SubspaceBot bot)
           
 void queryBackgroundHighPriority(java.lang.String connName, java.lang.String identifier, java.lang.String query, twcore.core.SubspaceBot bot)
           
 void run()
           
 void status()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLManager

public SQLManager(java.io.File configFile)
Creates a new instance of MySQLManager

Method Detail

queryBackground

public void queryBackground(java.lang.String connName,
                            java.lang.String identifier,
                            java.lang.String query,
                            twcore.core.SubspaceBot bot)

isOperational

public boolean isOperational()

queryBackgroundHighPriority

public void queryBackgroundHighPriority(java.lang.String connName,
                                        java.lang.String identifier,
                                        java.lang.String query,
                                        twcore.core.SubspaceBot bot)

query

public java.sql.ResultSet query(java.lang.String connectionName,
                                java.lang.String query)
                         throws java.sql.SQLException
java.sql.SQLException

status

public void status()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread