Class DBCPConnectionFactory
java.lang.Object
org.apache.ofbiz.entity.connection.DBCPConnectionFactory
- All Implemented Interfaces:
ConnectionFactory
Apache Commons DBCP connection factory.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final ConcurrentHashMap<String,
DebugManagedDataSource<? extends Connection>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
closeAll()
getConnection
(GenericHelperInfo helperInfo, JdbcElement abstractJdbc) getDataSourceInfo
(String helperName)
-
Field Details
-
DS_CACHE
protected static final ConcurrentHashMap<String,DebugManagedDataSource<? extends Connection>> DS_CACHE
-
-
Constructor Details
-
DBCPConnectionFactory
public DBCPConnectionFactory()
-
-
Method Details
-
getConnection
public Connection getConnection(GenericHelperInfo helperInfo, JdbcElement abstractJdbc) throws SQLException, GenericEntityException - Specified by:
getConnection
in interfaceConnectionFactory
- Throws:
SQLException
GenericEntityException
-
closeAll
public void closeAll()- Specified by:
closeAll
in interfaceConnectionFactory
-
getDataSourceInfo
-