@Override public boolean jdbcCompliant() { return driver.jdbcCompliant(); }
@Override public boolean jdbcCompliant() { return driver.jdbcCompliant(); }
/** * Returns whether or not the wrapped driver is jdbcCompliant. * * @return true if the wrapped driver is JDBC compliant; otherwise false * @see java.sql.Driver#jdbcCompliant() */ @Override public boolean jdbcCompliant() { return this.driver.jdbcCompliant(); }
@Override public boolean jdbcCompliant() { return delegate.jdbcCompliant(); }
@Override public boolean jdbcCompliant() { return this.driver.jdbcCompliant(); }
@Override public boolean jdbcCompliant() { return this.driver.jdbcCompliant(); }
@Override public boolean jdbcCompliant() { return proxyDriver.jdbcCompliant(); }
public static void startDriverServices(final ServiceTarget target, final ModuleIdentifier moduleId, Driver driver, final String driverName, final Integer majorVersion, final Integer minorVersion, final String dataSourceClassName, final String xaDataSourceClassName) throws IllegalStateException { final int majorVer = driver.getMajorVersion(); final int minorVer = driver.getMinorVersion(); if ((majorVersion != null && majorVersion != majorVer) || (minorVersion != null && minorVersion != minorVer)) { throw ConnectorLogger.ROOT_LOGGER.driverVersionMismatch(); } final boolean compliant = driver.jdbcCompliant(); if (compliant) { SUBSYSTEM_DATASOURCES_LOGGER.deployingCompliantJdbcDriver(driver.getClass(), majorVer, minorVer); } else { SUBSYSTEM_DATASOURCES_LOGGER.deployingNonCompliantJdbcDriver(driver.getClass(), majorVer, minorVer); } InstalledDriver driverMetadata = new InstalledDriver(driverName, moduleId, driver.getClass().getName(), dataSourceClassName, xaDataSourceClassName, majorVer, minorVer, compliant); DriverService driverService = new DriverService(driverMetadata, driver); final ServiceBuilder<Driver> builder = target.addService(ServiceName.JBOSS.append("jdbc-driver", driverName.replaceAll("\\.", "_")), driverService) .addDependency(ConnectorServices.JDBC_DRIVER_REGISTRY_SERVICE, DriverRegistry.class, driverService.getDriverRegistryServiceInjector()) .setInitialMode(ServiceController.Mode.ACTIVE); builder.install(); }
final int majorVersion = driver.getMajorVersion(); final int minorVersion = driver.getMinorVersion(); final boolean compliant = driver.jdbcCompliant(); if (compliant) { DEPLOYER_JDBC_LOGGER.deployingCompliantJdbcDriver(driverClass, Integer.valueOf(majorVersion),
Driver driver = (Driver) Class.forName(name).newInstance(); ColorBuffer msg = beeLine.getColorBuffer() .pad(driver.jdbcCompliant() ? "yes" : "no", 10) .pad(driver.getMajorVersion() + "." + driver.getMinorVersion(), 8) .append(name); if (driver.jdbcCompliant()) { beeLine.output(msg); } else {
@Override public boolean jdbcCompliant() { return this.driver.jdbcCompliant(); }
@Override public boolean jdbcCompliant() { return this.driver.jdbcCompliant(); }
proxyDriver.jdbcCompliant(); proxyDriver.getParentLogger(); proxyDriver.getPropertyInfo( "jdbc:proxy::jdbc:drill:zk=local", new Properties() );
return driver.jdbcCompliant();
/** * Provides information on the JDBC driver. * * @throws SQLException * On a SQL exception */ void retrieveJdbcDriverInfo() { final MutableJdbcDriverInfo driverInfo = catalog.getJdbcDriverInfo(); if (driverInfo == null) { return; } try { final DatabaseMetaData dbMetaData = getMetaData(); final String url = dbMetaData.getURL(); driverInfo.setDriverName(dbMetaData.getDriverName()); driverInfo.setDriverVersion(dbMetaData.getDriverVersion()); driverInfo.setConnectionUrl(url); final Driver jdbcDriver = DriverManager.getDriver(url); driverInfo.setJdbcDriverClassName(jdbcDriver.getClass().getName()); driverInfo.setJdbcCompliant(jdbcDriver.jdbcCompliant()); } catch (final SQLException e) { LOGGER.log(Level.WARNING, "Could not obtain JDBC driver information", e); } }
/** * Provides information on the JDBC driver. * * @throws SQLException * On a SQL exception */ void retrieveJdbcDriverInfo() { final MutableJdbcDriverInfo driverInfo = catalog.getJdbcDriverInfo(); if (driverInfo == null) { return; } try { final DatabaseMetaData dbMetaData = getMetaData(); final String url = dbMetaData.getURL(); driverInfo.setDriverName(dbMetaData.getDriverName()); driverInfo.setDriverVersion(dbMetaData.getDriverVersion()); driverInfo.setConnectionUrl(url); final Driver jdbcDriver = DriverManager.getDriver(url); driverInfo.setJdbcDriverClassName(jdbcDriver.getClass().getName()); driverInfo.setJdbcCompliant(jdbcDriver.jdbcCompliant()); } catch (final SQLException e) { LOGGER.log(Level.WARNING, "Could not obtain JDBC driver information", e); } }
public boolean jdbcCompliant() { return delegate.jdbcCompliant(); } }
/** * {@inheritDoc} */ @Override public boolean jdbcCompliant() { return adapted.jdbcCompliant(); }
/** * Returns whether or not the wrapped driver is jdbcCompliant. * * @return true if the wrapped driver is JDBC compliant; otherwise false * @see java.sql.Driver#jdbcCompliant() */ @Override public boolean jdbcCompliant() { return this.driver.jdbcCompliant(); }
@Override public boolean jdbcCompliant() { boolean result = _driver.jdbcCompliant(); log.fine(_id + ":jdbcCompliant() -> " + result); return result; }