org.apache.commons.dbcp
Class DriverManagerConnectionFactory

java.lang.Object
  extended by org.apache.commons.dbcp.DriverManagerConnectionFactory
All Implemented Interfaces:
ConnectionFactory

public class DriverManagerConnectionFactory
extends Object
implements ConnectionFactory

A DriverManager-based implementation of ConnectionFactory.

Version:
$Revision: 1.8 $ $Date: 2004/02/28 12:18:17 $
Author:
Rodney Waldhoff, Ignacio J. Ortega

Constructor Summary
DriverManagerConnectionFactory(String connectUri, Properties props)
           
DriverManagerConnectionFactory(String connectUri, String uname, String passwd)
           
 
Method Summary
 Connection createConnection()
          Create a new Connection in an implementation specific fashion.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverManagerConnectionFactory

public DriverManagerConnectionFactory(String connectUri,
                                      Properties props)

DriverManagerConnectionFactory

public DriverManagerConnectionFactory(String connectUri,
                                      String uname,
                                      String passwd)
Method Detail

createConnection

public Connection createConnection()
                            throws SQLException
Description copied from interface: ConnectionFactory
Create a new Connection in an implementation specific fashion.

Specified by:
createConnection in interface ConnectionFactory
Returns:
a new Connection
Throws:
SQLException


Copyright © 2001-2003 Apache Software Foundation. Documenation generated November 17 2010.