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, yieldprivate 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.IOExceptionjava.sql.SQLExceptionpublic boolean openConnection(java.lang.String key)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String readQuery()
throws java.io.IOException
java.io.IOExceptionpublic void writeString(java.lang.String s)
throws java.io.IOException
java.io.IOExceptionpublic boolean isTypeNumeric(int type)
public void handleException(java.lang.Throwable e)
throws java.io.IOException
java.io.IOExceptionpublic void sendResponse(java.lang.String response)
throws java.io.IOException
java.io.IOExceptionpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void dispose()
Copyright 2004-2015 Wandora Team