private class SQLProxyServer.ServerThread
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
private boolean |
authenticated |
private java.lang.String |
charset |
private boolean |
compress |
private java.sql.Connection |
connection |
private java.io.Reader |
inReader |
private java.lang.String |
lf |
private java.io.OutputStream |
out |
private java.io.Writer |
outWriter |
private boolean |
running |
private boolean |
sendExceptions |
private java.net.Socket |
socket |
private java.sql.Statement |
stmt |
Constructor and Description |
---|
ServerThread(java.net.Socket s) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
handleException(java.lang.Throwable e) |
boolean |
isTypeNumeric(int type) |
boolean |
openConnection(java.lang.String key) |
java.lang.String |
readQuery() |
void |
run() |
void |
sendResponse(java.lang.String response) |
void |
writeString(java.lang.String s) |
activeCount, checkAccess, clone, 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
private java.sql.Connection connection
private java.sql.Statement stmt
private java.net.Socket socket
private boolean running
private boolean sendExceptions
private java.io.Reader inReader
private java.io.Writer outWriter
private java.io.OutputStream out
private java.lang.String lf
private java.lang.String charset
private boolean compress
private boolean authenticated
public ServerThread(java.net.Socket s) throws java.io.IOException, java.sql.SQLException
java.io.IOException
java.sql.SQLException
public boolean openConnection(java.lang.String key) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String readQuery() throws java.io.IOException
java.io.IOException
public void writeString(java.lang.String s) throws java.io.IOException
java.io.IOException
public boolean isTypeNumeric(int type)
public void handleException(java.lang.Throwable e) throws java.io.IOException
java.io.IOException
public void sendResponse(java.lang.String response) throws java.io.IOException
java.io.IOException
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void dispose()
Copyright 2004-2015 Wandora Team