static class JdbcUtils.DataSourcePool extends Object
This in turn makes it easier to cache
SqlDialect objects. Otherwise, each time we
see a new data source, we have to open a connection to find out what
database product and version it is.
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.cache.LoadingCache<List<String>,org.apache.commons.dbcp.BasicDataSource> |
cache |
static JdbcUtils.DataSourcePool |
INSTANCE |
| Constructor and Description |
|---|
DataSourcePool() |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
get(String url,
String driverClassName,
String username,
String password) |
public static final JdbcUtils.DataSourcePool INSTANCE
public DataSource get(String url, String driverClassName, String username, String password)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.