public class DataSourceConnectionFactory extends Object implements ConnectionFactory
DataSource
-based implementation of ConnectionFactory
.Constructor and Description |
---|
DataSourceConnectionFactory(DataSource source) |
DataSourceConnectionFactory(DataSource source,
String uname,
String passwd) |
Modifier and Type | Method and Description |
---|---|
Connection |
createConnection()
Create a new
Connection in an
implementation specific fashion. |
public DataSourceConnectionFactory(DataSource source)
public DataSourceConnectionFactory(DataSource source, String uname, String passwd)
public Connection createConnection() throws SQLException
ConnectionFactory
Connection
in an
implementation specific fashion.createConnection
in interface ConnectionFactory
Connection
SQLException
- if a database error occurs creating the connectionCopyright © 2001–2014 The Apache Software Foundation. All rights reserved.