public abstract class AbstractDataSourceProvider extends Object implements DataSourceProvider, Initialize
| 限定符和类型 | 字段和说明 |
|---|---|
protected static Configuration |
CONFIG
The constant CONFIG.
|
| 构造器和说明 |
|---|
AbstractDataSourceProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract DataSource |
generate()
generate the datasource
|
protected DBType |
getDBType()
Get db type db type.
|
protected ClassLoader |
getDriverClassLoader() |
protected String |
getDriverClassName()
get db driver class name
|
protected int |
getMaxConn()
Get max conn int.
|
protected Long |
getMaxWait()
get db max wait
|
protected int |
getMinConn()
Get min conn int.
|
protected String |
getPassword()
Get password string.
|
protected String |
getUrl()
Get url string.
|
protected String |
getUser()
Get user string.
|
protected String |
getValidationQuery(DBType dbType)
Get validation query string.
|
void |
init()
init method
|
DataSource |
provide()
provide the datasource
|
protected static final Configuration CONFIG
public void init()
Initializeinit 在接口中 Initializepublic DataSource provide()
DataSourceProviderprovide 在接口中 DataSourceProviderpublic abstract DataSource generate()
protected DBType getDBType()
protected String getDriverClassName()
protected Long getMaxWait()
protected ClassLoader getDriverClassLoader()
protected String getUrl()
protected String getUser()
protected String getPassword()
protected int getMinConn()
protected int getMaxConn()
Copyright © 2020 Seata. All rights reserved.