org.apache.commons.dbcp
Class DriverManagerConnectionFactory
java.lang.Object
|
+--org.apache.commons.dbcp.DriverManagerConnectionFactory
- All Implemented Interfaces:
- ConnectionFactory
- public class DriverManagerConnectionFactory
- extends Object
- implements ConnectionFactory
A DriverManager
-based implementation of ConnectionFactory
.
- Version:
- $Id: DriverManagerConnectionFactory.java,v 1.6 2003/10/09 21:04:44 rdonkin Exp $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_connectUri
protected String _connectUri
_uname
protected String _uname
_passwd
protected String _passwd
_props
protected Properties _props
DriverManagerConnectionFactory
public DriverManagerConnectionFactory(String connectUri,
Properties props)
DriverManagerConnectionFactory
public DriverManagerConnectionFactory(String connectUri,
String uname,
String passwd)
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
SQLException
Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.