Class DebugManagedDataSource<C extends java.sql.Connection>

  • 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>
    • 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
      java.sql.Connection getConnection()  
      java.util.Map<java.lang.String,​java.lang.Object> getInfo()
      Gets info.
      • 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 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 interface javax.sql.DataSource
        Overrides:
        getConnection in class org.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()
        Gets info.
        Returns:
        the info