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>
    • 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
      • 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
    • Field Detail

      • module

        public static final java.lang.String module
    • 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()
      • close

        public void close()
                   throws java.sql.SQLException,
                          java.lang.RuntimeException
        Specified by:
        close in interface java.lang.AutoCloseable
        Overrides:
        close in class org.apache.commons.dbcp2.PoolingDataSource<C extends java.sql.Connection>
        Throws:
        java.sql.SQLException
        java.lang.RuntimeException