org.apache.commons.dbcp
Class DriverConnectionFactory
java.lang.Object
|
+--org.apache.commons.dbcp.DriverConnectionFactory
- All Implemented Interfaces:
- ConnectionFactory
- public class DriverConnectionFactory
- extends java.lang.Object
- implements ConnectionFactory
A Driver
-based implementation of ConnectionFactory
.
- Version:
- $Id: DriverConnectionFactory.java,v 1.5 2003/10/09 21:04:44 rdonkin Exp $
- Author:
- Rodney Waldhoff
Constructor Summary |
DriverConnectionFactory(java.sql.Driver driver,
java.lang.String connectUri,
java.util.Properties props)
|
Method Summary |
java.sql.Connection |
createConnection()
Create a new Connection in an
implementation specific fashion. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DriverConnectionFactory
public DriverConnectionFactory(java.sql.Driver driver,
java.lang.String connectUri,
java.util.Properties props)
createConnection
public java.sql.Connection createConnection()
throws java.sql.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
java.sql.SQLException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2001-2003 Apache Software Foundation. Documenation generated October 27 2003.