org.apache.commons.dbcp
Class DriverConnectionFactory
java.lang.Object
org.apache.commons.dbcp.DriverConnectionFactory
- All Implemented Interfaces:
- ConnectionFactory
public class DriverConnectionFactory
- extends Object
- implements ConnectionFactory
A Driver
-based implementation of ConnectionFactory
.
- Version:
- $Revision: 479137 $ $Date: 2006-11-25 10:51:48 -0500 (Sat, 25 Nov 2006) $
- Author:
- Rodney Waldhoff
_driver
protected Driver _driver
_connectUri
protected String _connectUri
_props
protected Properties _props
DriverConnectionFactory
public DriverConnectionFactory(Driver driver,
String connectUri,
Properties props)
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
- if a database error occurs creating the connection
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.