Class DebugManagedDataSource<C extends Connection>
java.lang.Object
org.apache.commons.dbcp2.PoolingDataSource<C>
org.apache.commons.dbcp2.managed.ManagedDataSource<C>
org.apache.ofbiz.entity.connection.DebugManagedDataSource<C>
- All Implemented Interfaces:
AutoCloseable
,Wrapper
,CommonDataSource
,DataSource
public class DebugManagedDataSource<C extends Connection>
extends org.apache.commons.dbcp2.managed.ManagedDataSource<C>
-
Constructor Summary
ConstructorsConstructorDescriptionDebugManagedDataSource
(org.apache.commons.pool2.ObjectPool<C> pool, org.apache.commons.dbcp2.managed.TransactionRegistry transactionRegistry) -
Method Summary
Methods inherited from class org.apache.commons.dbcp2.managed.ManagedDataSource
getTransactionRegistry, setTransactionRegistry
Methods inherited from class org.apache.commons.dbcp2.PoolingDataSource
close, getConnection, getLoginTimeout, getLogWriter, getParentLogger, getPool, isAccessToUnderlyingConnectionAllowed, isWrapperFor, setAccessToUnderlyingConnectionAllowed, setLoginTimeout, setLogWriter, unwrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
DebugManagedDataSource
public DebugManagedDataSource(org.apache.commons.pool2.ObjectPool<C> pool, org.apache.commons.dbcp2.managed.TransactionRegistry transactionRegistry)
-
-
Method Details
-
getConnection
- Specified by:
getConnection
in interfaceDataSource
- Overrides:
getConnection
in classorg.apache.commons.dbcp2.managed.ManagedDataSource<C extends Connection>
- Throws:
SQLException
-
getInfo
Gets info.- Returns:
- the info
-