Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mtpgsql.server
Class Connection  view Connection download Connection.java

java.lang.Object
  extended byorg.mtpgsql.server.Connection
All Implemented Interfaces:
java.lang.Runnable

public class Connection
extends java.lang.Object
implements java.lang.Runnable


Field Summary
(package private)  boolean connected
           
(package private)  java.io.DataInputStream datainput
           
(package private)  java.io.DataOutputStream dataoutput
           
(package private)  boolean done
           
(package private)  int err
           
(package private)  java.lang.String errorText
           
 LinkID id
           
(package private)  java.net.Socket netsocket
           
(package private)  SimpleServer server
           
(package private)  java.lang.String state
           
 
Constructor Summary
Connection(SimpleServer simple, java.net.Socket sock)
           
 
Method Summary
 boolean buildConnection()
           
 void closeConnection()
           
 int getResults()
           
 void grabConnection(java.lang.String name, java.lang.String password, java.lang.String connect)
           
protected  int pipeIn(byte[] data)
           
protected  void pipeOut(byte[] data)
           
 boolean processCommand()
           
 java.lang.String readCommand(java.io.DataInputStream dos)
           
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 void streamExec(java.lang.String statement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public LinkID id

err

int err

errorText

java.lang.String errorText

state

java.lang.String state

connected

boolean connected

done

boolean done

datainput

java.io.DataInputStream datainput

dataoutput

java.io.DataOutputStream dataoutput

netsocket

java.net.Socket netsocket

server

SimpleServer server
Constructor Detail

Connection

public Connection(SimpleServer simple,
                  java.net.Socket sock)
Method Detail

closeConnection

public void closeConnection()

buildConnection

public boolean buildConnection()
                        throws java.io.IOException

readCommand

public java.lang.String readCommand(java.io.DataInputStream dos)
                             throws java.io.IOException

processCommand

public boolean processCommand()
                       throws java.io.IOException

grabConnection

public void grabConnection(java.lang.String name,
                           java.lang.String password,
                           java.lang.String connect)
                    throws java.sql.SQLException

streamExec

public void streamExec(java.lang.String statement)
                throws java.sql.SQLException

pipeOut

protected void pipeOut(byte[] data)
                throws java.io.IOException

pipeIn

protected int pipeIn(byte[] data)
              throws java.io.IOException

getResults

public int getResults()

run

public void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.

Specified by:
run in interface java.lang.Runnable