code: public boolean isDriverCompatible(String driverName, DriverVersion minVersion, DriverVersion maxVersion) throws SQLException {
          readMetaDataIfNeeded();
          if (!this.driverName.equals(driverName)) {
              return false;
          }
          
          return new VersionRange(minVersion, maxVersion).isWithinRange(this.driverVersion);
      }
docs: Compares JDBC driver name and version information to that reported
  by the driver.
  
  @param driverName the expected driver name.
  @param minVersion the expected minimum version, if any.
  @param maxVersion the expected maximum version, if any.
  @return whether the actual JDBC driver name and version match the
  provided arguments. The min and max version comparisons are
  inclusive.
  
  @throws SQLException if an error occurs fetching metadata containing the
  JDBC driver name and version from the database.