public abstract class AbstractDataSourceProvider extends Object implements DataSourceProvider, Initialize
| Modifier and Type | Field and Description |
|---|---|
protected static io.seata.config.Configuration |
CONFIG
The constant CONFIG.
|
| Constructor and Description |
|---|
AbstractDataSourceProvider() |
| Modifier and Type | Method and Description |
|---|---|
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
|
protected static final io.seata.config.Configuration CONFIG
public void init()
init in interface Initializepublic DataSource provide()
DataSourceProviderprovide in interface 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 © 2023 Seata. All rights reserved.