Class DBCPConnectionFactory
- java.lang.Object
-
- org.apache.ofbiz.entity.connection.DBCPConnectionFactory
-
- All Implemented Interfaces:
ConnectionFactory
public class DBCPConnectionFactory extends java.lang.Object implements ConnectionFactory
Apache Commons DBCP connection factory.- See Also:
- Apache Commons DBCP
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.concurrent.ConcurrentHashMap<java.lang.String,DebugManagedDataSource<? extends java.sql.Connection>>
dsCache
static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description DBCPConnectionFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeAll()
java.sql.Connection
getConnection(GenericHelperInfo helperInfo, JdbcElement abstractJdbc)
static java.util.Map<java.lang.String,java.lang.Object>
getDataSourceInfo(java.lang.String helperName)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
dsCache
protected static final java.util.concurrent.ConcurrentHashMap<java.lang.String,DebugManagedDataSource<? extends java.sql.Connection>> dsCache
-
-
Method Detail
-
getConnection
public java.sql.Connection getConnection(GenericHelperInfo helperInfo, JdbcElement abstractJdbc) throws java.sql.SQLException, GenericEntityException
- Specified by:
getConnection
in interfaceConnectionFactory
- Throws:
java.sql.SQLException
GenericEntityException
-
closeAll
public void closeAll()
- Specified by:
closeAll
in interfaceConnectionFactory
-
getDataSourceInfo
public static java.util.Map<java.lang.String,java.lang.Object> getDataSourceInfo(java.lang.String helperName)
-
-