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: 892307 $ $Date: 2013-12-31 23:27:28 +0000 (Tue, 31 Dec 2013) $
 
- 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()
 
 
Copyright ©  The Apache Software Foundation. All Rights Reserved.