public abstract class ABaseConn extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
abstract com.alibaba.druid.pool.DruidDataSource |
getDataSource()
获取数据源连接
|
protected com.alibaba.druid.pool.DruidDataSource |
getDataSource(Integer queryTimeout,
Integer maxActive)
根据指定配置获取数据源连接
|
String |
getName() |
protected void |
setSourceAttributes(com.alibaba.druid.pool.DruidDataSource dataSource)
设置数据源连接属性
|
protected ABaseConn(@NonNull
String name)
public String getName()
public abstract com.alibaba.druid.pool.DruidDataSource getDataSource()
protected com.alibaba.druid.pool.DruidDataSource getDataSource(Integer queryTimeout, Integer maxActive)
queryTimeout - 查询超时时间maxActive - 最大连接数protected void setSourceAttributes(com.alibaba.druid.pool.DruidDataSource dataSource)
dataSource - 数据源Copyright © 2022. All rights reserved.