public class DBCPConnectionFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,org.apache.commons.dbcp.BasicDataSource> |
dsCache |
protected static Map<String,ConnectionTracker> |
trackerCache |
| 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 Connection getConnection(String helperName, JdbcDatasourceInfo jdbcDatasource) throws SQLException, GenericEntityException
SQLExceptionGenericEntityExceptionpublic static void removeDatasource(String helperName)
helperName - The name of the datasource to removeCopyright © 2015 Atlassian. All rights reserved.