Deprecated
Use com. instead.
| Modifier and Type | Method and Description |
|---|---|
| public Socket | Returns: the socket to use after the handshakeCalled by the driver after issuing the MySQL protocol handshake and reading the results of the handshake. |
| public Socket | Returns: the socket to use before the handshakeCalled by the driver before issuing the MySQL protocol handshake. |
| public Socket | Returns: a socket connected to the given hostthe hostname passed in the JDBC URL. It will be a single
hostname, as the driver parses multi-hosts (for failover) and
calls this method for each host connection attempt. host, int the port number to connect to (if required). portNumber, Properties properties passed to the driver via the URL and/or properties
instance. props)Creates a new socket using the given properties. |
| afterHandshake | back to summary |
|---|---|
| public Socket afterHandshake() throws SocketException, IOException Called by the driver after issuing the MySQL protocol handshake and reading the results of the handshake.
| |
| beforeHandshake | back to summary |
|---|---|
| public Socket beforeHandshake() throws SocketException, IOException Called by the driver before issuing the MySQL protocol handshake. Should return the socket instance that should be used during the handshake.
| |
| connect | back to summary |
|---|---|
| public Socket connect(String host, int portNumber, Properties props) throws SocketException, IOException Creates a new socket using the given properties. Properties are parsed by
the driver from the URL. All properties other than sensitive ones (user
and password) are passed to this method. The driver will instantiate the
socket factory with the class name given in the property
"socketFactory", where the standard is
| |