public class DBCPConnectionFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,org.apache.commons.dbcp2.BasicDataSource> |
dsCache |
protected static Map<String,ConnectionTracker> |
trackerCache |
static String |
VALIDATION_QUERY |
| Constructor and Description |
|---|
DBCPConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Connection |
getConnection(String helperName,
JdbcDatasourceInfo jdbcDatasource) |
static void |
removeDatasource(String helperName)
Shuts down and removes a datasource, if it exists
|
protected static final Map<String,ConnectionTracker> trackerCache
public static final String VALIDATION_QUERY
public static Connection getConnection(String helperName, JdbcDatasourceInfo jdbcDatasource) throws SQLException, GenericEntityException
SQLExceptionGenericEntityExceptionpublic static void removeDatasource(String helperName)
helperName - The name of the datasource to removeCopyright © 2018 Atlassian. All rights reserved.