public class C3p0DSFactory extends AbstractDSFactory
Modifier and Type | Field and Description |
---|---|
static String |
DS_NAME |
dataSourceName, KEY_ALIAS_DRIVER, KEY_ALIAS_PASSWORD, KEY_ALIAS_URL, KEY_ALIAS_USER, KEY_CONN_PROPS
Constructor and Description |
---|
C3p0DSFactory()
构造,使用默认配置
|
C3p0DSFactory(Setting setting)
构造
|
Modifier and Type | Method and Description |
---|---|
protected DataSource |
createDataSource(String jdbcUrl,
String driver,
String user,
String pass,
Setting poolSetting)
创建新的
DataSource |
close, destroy, equals, getDataSource, getSetting, hashCode
close, create, get, get, getDataSource, setCurrentDSFactory
public static final String DS_NAME
public C3p0DSFactory()
public C3p0DSFactory(Setting setting)
setting
- 配置protected DataSource createDataSource(String jdbcUrl, String driver, String user, String pass, Setting poolSetting)
AbstractDSFactory
DataSource
createDataSource
in class AbstractDSFactory
jdbcUrl
- JDBC连接字符串driver
- 数据库驱动类名user
- 用户名pass
- 密码poolSetting
- 分组下的连接池配置文件DataSource
Copyright © 2024. All rights reserved.