/** * INTERNAL: * Return whether the specified driver is being used. */ protected boolean driverIs(String driverName) { try { return getDriverClassName().equals(driverName); } catch (ValidationException e) { // this exception will be thrown if we are using something other than a DefaultConnector return false; } }
/** * INTERNAL: * Return whether the specified driver is being used. */ protected boolean driverIs(String driverName) { try { return getDriverClassName().equals(driverName); } catch (ValidationException e) { // this exception will be thrown if we are using something other than a DefaultConnector return false; } }
/** * INTERNAL: * Return whether the specified driver is being used. */ protected boolean driverIs(String driverName) { try { return getDriverClassName().equals(driverName); } catch (ValidationException e) { // this exception will be thrown if we are using something other than a DefaultConnector return false; } }
/** * Return db driver class name. This only applies to DefaultConnector. Return "N/A" otherwise. */ public synchronized String getDriver() { if (getSession().getLogin().getConnector() instanceof DefaultConnector) { return getSession().getLogin().getDriverClassName(); } return "N/A"; }
/** * Return db driver class name. This only applies to DefaultConnector. Return "N/A" otherwise. */ public synchronized String getDriver() { if (getSession().getLogin().getConnector() instanceof DefaultConnector) { return getSession().getLogin().getDriverClassName(); } return "N/A"; }
/** * Return db driver class name. This only applies to DefaultConnector. Return "N/A" otherwise. */ public synchronized String getDriver() { if (getSession().getLogin().getConnector() instanceof DefaultConnector) { return getSession().getLogin().getDriverClassName(); } return "N/A"; }
DatabaseLogin databaseLogin = session.getLogin(); String jdbcDriver = databaseLogin.getDriverClassName(); String jdbcUrl = databaseLogin.getDatabaseURL(); String username = databaseLogin.getUserName();
method.addLine("login.usePlatform(new " + login.getPlatformClassName() + "());"); method.addLine("login.setDriverClassName(\"" + login.getDriverClassName() + "\");"); method.addLine("login.setConnectionString(\"" + login.getConnectionString() + "\");");
method.addLine("login.usePlatform(new " + login.getPlatformClassName() + "());"); method.addLine("login.setDriverClassName(\"" + login.getDriverClassName() + "\");"); method.addLine("login.setConnectionString(\"" + login.getConnectionString() + "\");");
method.addLine("login.usePlatform(new " + login.getPlatformClassName() + "());"); method.addLine("login.setDriverClassName(\"" + login.getDriverClassName() + "\");"); method.addLine("login.setConnectionString(\"" + login.getConnectionString() + "\");");
method.addLine("login.setDriverClass(" + login.getDriverClassName() + ".class);"); method.addLine("login.setConnectionString(\"" + login.getConnectionString() + "\");");
method.addLine("login.setDriverClass(" + login.getDriverClassName() + ".class);"); method.addLine("login.setConnectionString(\"" + login.getConnectionString() + "\");");
method.addLine("login.setDriverClass(" + login.getDriverClassName() + ".class);"); method.addLine("login.setConnectionString(\"" + login.getConnectionString() + "\");");