org.apache.commons.dbcp
Class DriverConnectionFactory

java.lang.Object
  extended byorg.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

Field Summary
protected  String _connectUri
           
protected  Driver _driver
           
protected  Properties _props
           
 
Constructor Summary
DriverConnectionFactory(Driver driver, String connectUri, Properties props)
           
 
Method Summary
 Connection createConnection()
          Create a new Connection in an implementation specific fashion.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_driver

protected Driver _driver

_connectUri

protected String _connectUri

_props

protected Properties _props
Constructor Detail

DriverConnectionFactory

public DriverConnectionFactory(Driver driver,
                               String connectUri,
                               Properties props)
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 - if a database error occurs creating the connection

toString

public String toString()


Copyright © The Apache Software Foundation. All Rights Reserved.