Package com.mckoi.database.jdbc
Class TCPStreamDatabaseInterface
- java.lang.Object
-
- com.mckoi.database.jdbc.RemoteDatabaseInterface
-
- com.mckoi.database.jdbc.StreamDatabaseInterface
-
- com.mckoi.database.jdbc.TCPStreamDatabaseInterface
-
- All Implemented Interfaces:
DatabaseInterface,ProtocolConstants
class TCPStreamDatabaseInterface extends StreamDatabaseInterface
Connection to the database via the TCP protocol.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mckoi.database.jdbc.RemoteDatabaseInterface
RemoteDatabaseInterface.MByteArrayOutputStream, RemoteDatabaseInterface.ServerCommand
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringhostThe name of the host we are connected to.private intportThe port we are connected to.private java.net.SocketsocketThe Socket connection.-
Fields inherited from class com.mckoi.database.jdbc.StreamDatabaseInterface
in, out
-
Fields inherited from interface com.mckoi.database.jdbc.ProtocolConstants
ACKNOWLEDGEMENT, AUTHENTICATION_ERROR, CLOSE, DATABASE_EVENT, DISPOSE_RESULT, DISPOSE_STREAMABLE_OBJECT, EXCEPTION, FAILED, PING, PUSH_STREAMABLE_OBJECT_PART, QUERY, RESULT_SECTION, SERVER_REQUEST, STREAMABLE_OBJECT_SECTION, SUCCESS, USER_AUTHENTICATION_FAILED, USER_AUTHENTICATION_PASSED
-
-
Constructor Summary
Constructors Constructor Description TCPStreamDatabaseInterface(java.lang.String host, int port)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidconnectToDatabase()Connects to the database.-
Methods inherited from class com.mckoi.database.jdbc.StreamDatabaseInterface
closeConnection, nextCommandFromServer, setup, writeCommandToServer
-
Methods inherited from class com.mckoi.database.jdbc.RemoteDatabaseInterface
dispose, disposeResult, disposeStreamableObject, execQuery, getResultPart, getStreamableObjectPart, login, pushStreamableObjectPart
-
-