org.newsclub.net.mysql
Class AFUNIXDatabaseSocketFactory

java.lang.Object
  extended by org.newsclub.net.mysql.AFUNIXDatabaseSocketFactory
All Implemented Interfaces:
com.mysql.jdbc.SocketFactory

public class AFUNIXDatabaseSocketFactory
extends java.lang.Object
implements com.mysql.jdbc.SocketFactory

Connect to mysql databases (and compatibles) using UNIX domain sockets.

Author:
Christian Kohlsch??tter

Constructor Summary
AFUNIXDatabaseSocketFactory()
           
 
Method Summary
 java.net.Socket afterHandshake()
           
 java.net.Socket beforeHandshake()
           
 java.net.Socket connect(java.lang.String host, int portNumber, java.util.Properties props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AFUNIXDatabaseSocketFactory

public AFUNIXDatabaseSocketFactory()
Method Detail

afterHandshake

public java.net.Socket afterHandshake()
                               throws java.net.SocketException,
                                      java.io.IOException
Specified by:
afterHandshake in interface com.mysql.jdbc.SocketFactory
Throws:
java.net.SocketException
java.io.IOException

beforeHandshake

public java.net.Socket beforeHandshake()
                                throws java.net.SocketException,
                                       java.io.IOException
Specified by:
beforeHandshake in interface com.mysql.jdbc.SocketFactory
Throws:
java.net.SocketException
java.io.IOException

connect

public java.net.Socket connect(java.lang.String host,
                               int portNumber,
                               java.util.Properties props)
                        throws java.net.SocketException,
                               java.io.IOException
Specified by:
connect in interface com.mysql.jdbc.SocketFactory
Throws:
java.net.SocketException
java.io.IOException