org.edg.data.util
Class DriverBasedConnectionFactory

java.lang.Object
  |
  +--org.edg.data.util.ConnectionFactory
        |
        +--org.edg.data.util.DriverBasedConnectionFactory

public final class DriverBasedConnectionFactory
extends ConnectionFactory

A ConnectionFactory that uses the JDDB Driver Manager. This is not intended for production use - use the JNDIConnectionFactory instead

Version:
$ Id:$
Author:
James Casey

Field Summary
 
Fields inherited from class org.edg.data.util.ConnectionFactory
m_log
 
Constructor Summary
DriverBasedConnectionFactory(java.lang.String driverName, java.lang.String connectString, java.lang.String userName, java.lang.String password)
          Create a new connection factory, using the given Driver to connec to a JDBC resource.
 
Method Summary
 java.sql.Connection connection()
           
 
Methods inherited from class org.edg.data.util.ConnectionFactory
getMaxColumnNameSize, getVendor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverBasedConnectionFactory

public DriverBasedConnectionFactory(java.lang.String driverName,
                                    java.lang.String connectString,
                                    java.lang.String userName,
                                    java.lang.String password)
                             throws java.lang.ClassNotFoundException
Create a new connection factory, using the given Driver to connec to a JDBC resource.

Parameters:
driverName - The classname of the driver to use
connectString - the JDBC connect string
userName - username for the JDBC connection
password - and it's password
Throws:
java.lang.ClassNotFoundException - If the driver cannot be found on the c classpath
Method Detail

connection

public java.sql.Connection connection()
                               throws java.sql.SQLException
Specified by:
connection in class ConnectionFactory
java.sql.SQLException