|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.apache.commons.dbcp.DriverManagerConnectionFactory
public class DriverManagerConnectionFactory
A DriverManager-based implementation of ConnectionFactory.
| Constructor Summary | |
|---|---|
DriverManagerConnectionFactory(java.lang.String connectUri,
java.util.Properties props)
Constructor for DriverManagerConnectionFactory. |
|
DriverManagerConnectionFactory(java.lang.String connectUri,
java.lang.String uname,
java.lang.String passwd)
Constructor for DriverManagerConnectionFactory. |
|
| Method Summary | |
|---|---|
java.sql.Connection |
createConnection()
Create a new Connection in an
implementation specific fashion. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DriverManagerConnectionFactory(java.lang.String connectUri,
java.util.Properties props)
connectUri - a database url of the form
jdbc:subprotocol:subnameprops - a list of arbitrary string tag/value pairs as
connection arguments; normally at least a "user" and "password"
property should be included.
public DriverManagerConnectionFactory(java.lang.String connectUri,
java.lang.String uname,
java.lang.String passwd)
connectUri - a database url of the form
jdbc:subprotocol:subnameuname - the database userpasswd - the user's password| Method Detail |
|---|
public java.sql.Connection createConnection()
throws java.sql.SQLException
ConnectionFactoryConnection in an
implementation specific fashion.
createConnection in interface ConnectionFactoryConnection
java.sql.SQLException - if a database error occurs creating the connection
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||