Class TCPStreamDatabaseInterface

    • Field Detail

      • host

        private java.lang.String host
        The name of the host we are connected to.
      • port

        private int port
        The port we are connected to.
      • socket

        private java.net.Socket socket
        The Socket connection.
    • Constructor Detail

      • TCPStreamDatabaseInterface

        TCPStreamDatabaseInterface​(java.lang.String host,
                                   int port)
        Constructor.
    • Method Detail

      • connectToDatabase

        void connectToDatabase()
                        throws java.sql.SQLException
        Connects to the database.
        Throws:
        java.sql.SQLException