public interface DataSourceProvider
Modifier and Type | Method and Description |
---|---|
void |
close(DataSource dataSource) |
static DataSourceProvider |
create(JsonObject config) |
DataSource |
getDataSource(JsonObject config) |
default JsonObject |
getInitialConfig()
Get the SQL initial configuration
|
default DataSourceProvider |
init(JsonObject sqlConfig)
Init provider with specific configuration
|
int |
maximumPoolSize(DataSource dataSource,
JsonObject config) |
default DataSourceProvider init(JsonObject sqlConfig)
sqlConfig
- SQL connection configurationdefault JsonObject getInitialConfig()
int maximumPoolSize(DataSource dataSource, JsonObject config) throws SQLException
SQLException
DataSource getDataSource(JsonObject config) throws SQLException
SQLException
void close(DataSource dataSource) throws SQLException
SQLException
static DataSourceProvider create(JsonObject config)
Copyright © 2021 Eclipse. All rights reserved.