Class DebugManagedDataSource<C extends java.sql.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:
java.lang.AutoCloseable
,java.sql.Wrapper
,javax.sql.CommonDataSource
,javax.sql.DataSource
public class DebugManagedDataSource<C extends java.sql.Connection> extends org.apache.commons.dbcp2.managed.ManagedDataSource<C>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description DebugManagedDataSource(org.apache.commons.pool2.ObjectPool<C> pool, org.apache.commons.dbcp2.managed.TransactionRegistry transactionRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.sql.Connection
getConnection()
java.util.Map<java.lang.String,java.lang.Object>
getInfo()
-
Methods inherited from class org.apache.commons.dbcp2.managed.ManagedDataSource
setTransactionRegistry
-
Methods inherited from class org.apache.commons.dbcp2.PoolingDataSource
getConnection, getLoginTimeout, getLogWriter, getParentLogger, getPool, isAccessToUnderlyingConnectionAllowed, isWrapperFor, setAccessToUnderlyingConnectionAllowed, setLoginTimeout, setLogWriter, unwrap
-
-
-
-
Constructor Detail
-
DebugManagedDataSource
public DebugManagedDataSource(org.apache.commons.pool2.ObjectPool<C> pool, org.apache.commons.dbcp2.managed.TransactionRegistry transactionRegistry)
-
-
Method Detail
-
getConnection
public java.sql.Connection getConnection() throws java.sql.SQLException
- Specified by:
getConnection
in interfacejavax.sql.DataSource
- Overrides:
getConnection
in classorg.apache.commons.dbcp2.managed.ManagedDataSource<C extends java.sql.Connection>
- Throws:
java.sql.SQLException
-
getInfo
public java.util.Map<java.lang.String,java.lang.Object> getInfo()
-
close
public void close() throws java.sql.SQLException, java.lang.RuntimeException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Overrides:
close
in classorg.apache.commons.dbcp2.PoolingDataSource<C extends java.sql.Connection>
- Throws:
java.sql.SQLException
java.lang.RuntimeException
-
-