public abstract class AbstractDataSourceProvider extends Object implements DataSourceProvider, Initialize
| 限定符和类型 | 字段和说明 |
|---|---|
protected static io.seata.config.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 |
getPublicKey()
Get public key.
|
protected String |
getUrl()
Get url string.
|
protected String |
getUser()
Get user string.
|
protected String |
getValidationQuery(DBType dbType)
Get validation query string.
|
void |
init() |
DataSource |
provide()
provide the datasource
|
public void init()
init 在接口中 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()
protected String getValidationQuery(DBType dbType)
dbType - the db typeprotected String getPublicKey()
Copyright © 2021 Seata. All rights reserved.