Class DbUtils.DriverProxy

  • All Implemented Interfaces:
    java.sql.Driver
    Enclosing class:
    DbUtils

    static final class DbUtils.DriverProxy
    extends java.lang.Object
    implements java.sql.Driver
    Simple Driver proxy class that proxies a JDBC Driver loaded dynamically.
    Since:
    1.6
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.sql.Driver adapted
      The adapted JDBC Driver loaded dynamically.
      private boolean parentLoggerSupported  
    • Constructor Summary

      Constructors 
      Constructor Description
      DriverProxy​(java.sql.Driver adapted)
      Creates a new JDBC Driver that adapts a JDBC Driver loaded dynamically.
    • Field Detail

      • parentLoggerSupported

        private boolean parentLoggerSupported
      • adapted

        private final java.sql.Driver adapted
        The adapted JDBC Driver loaded dynamically.
    • Constructor Detail

      • DriverProxy

        public DriverProxy​(java.sql.Driver adapted)
        Creates a new JDBC Driver that adapts a JDBC Driver loaded dynamically.
        Parameters:
        adapted - the adapted JDBC Driver loaded dynamically.
    • Method Detail

      • acceptsURL

        public boolean acceptsURL​(java.lang.String url)
                           throws java.sql.SQLException
        Specified by:
        acceptsURL in interface java.sql.Driver
        Throws:
        java.sql.SQLException
      • connect

        public java.sql.Connection connect​(java.lang.String url,
                                           java.util.Properties info)
                                    throws java.sql.SQLException
        Specified by:
        connect in interface java.sql.Driver
        Throws:
        java.sql.SQLException
      • getMajorVersion

        public int getMajorVersion()
        Specified by:
        getMajorVersion in interface java.sql.Driver
      • getMinorVersion

        public int getMinorVersion()
        Specified by:
        getMinorVersion in interface java.sql.Driver
      • getPropertyInfo

        public java.sql.DriverPropertyInfo[] getPropertyInfo​(java.lang.String url,
                                                             java.util.Properties info)
                                                      throws java.sql.SQLException
        Specified by:
        getPropertyInfo in interface java.sql.Driver
        Throws:
        java.sql.SQLException
      • jdbcCompliant

        public boolean jdbcCompliant()
        Specified by:
        jdbcCompliant in interface java.sql.Driver
      • getParentLogger

        public java.util.logging.Logger getParentLogger()
                                                 throws java.sql.SQLFeatureNotSupportedException
        Java 1.7 method.
        Specified by:
        getParentLogger in interface java.sql.Driver
        Throws:
        java.sql.SQLFeatureNotSupportedException