public class PooledDSFactory extends Object implements DSFactory
Constructor and Description |
---|
PooledDSFactory() |
Modifier and Type | Method and Description |
---|---|
DataSource |
createDataSource(ConnectionConfig<?> config)
创建数据源
|
String |
getDataSourceName()
获取自定义的数据源名称,用于识别连接池
|
public String getDataSourceName()
DSFactory
getDataSourceName
in interface DSFactory
public DataSource createDataSource(ConnectionConfig<?> config)
DSFactory
createDataSource
in interface DSFactory
config
- 数据库配置DataSource
Copyright © 2025. All rights reserved.