Class DBCPConnectionFactory
java.lang.Object
org.ofbiz.core.entity.transaction.DBCPConnectionFactory
DBCP ConnectionFactory - central source for JDBC connections from DBCP
This is currently non transactional as DBCP doesn't seem to support transactional datasources yet (DBCP 1.0).
- Version:
- 1.0 Created on Dec 18, 2001, 5:03 PM
- Author:
- Mike Cannon-Brookes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Map<String,ConnectionTracker> static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectiongetConnection(String helperName, JdbcDatasourceInfo jdbcDatasource) static voidremoveDatasource(String helperName) Shuts down and removes a datasource, if it exists
-
Field Details
-
dsCache
-
trackerCache
-
VALIDATION_QUERY
- See Also:
-
-
Constructor Details
-
DBCPConnectionFactory
public DBCPConnectionFactory()
-
-
Method Details
-
getConnection
public static Connection getConnection(String helperName, JdbcDatasourceInfo jdbcDatasource) throws SQLException, GenericEntityException - Throws:
SQLExceptionGenericEntityException
-
removeDatasource
Shuts down and removes a datasource, if it exists- Parameters:
helperName- The name of the datasource to remove
-