/** * PUBLIC: * The data source name is required if connecting through ODBC (JDBC-ODBC, etc.). * This is the ODBC name given in the ODBC Data Source Administrator. * This is just the database part of the URL. */ public String getDataSourceName() throws ValidationException { return getDatabaseURL(); }
/** * PUBLIC: * The data source name is required if connecting through ODBC (JDBC-ODBC, etc.). * This is the ODBC name given in the ODBC Data Source Administrator. * This is just the database part of the URL. */ public String getDataSourceName() throws ValidationException { return getDatabaseURL(); }
/** * PUBLIC: * The data source name is required if connecting through ODBC (JDBC-ODBC, etc.). * This is the ODBC name given in the ODBC Data Source Administrator. * This is just the database part of the URL. */ public String getDataSourceName() throws ValidationException { return getDatabaseURL(); }
/** * INTERNAL: * Return whether the specified Oracle JDBC driver is being used. */ protected boolean oracleDriverIs(String urlPrefix) { try { if (getDriverURLHeader().length() != 0) { return getDriverURLHeader().indexOf(urlPrefix) != -1; } else { return getDatabaseURL().indexOf(urlPrefix) != -1; } } catch (ValidationException e) { // this exception will be thrown if we are using something other than a DefaultConnector return false; } }
/** * INTERNAL: * Return whether the specified Oracle JDBC driver is being used. */ protected boolean oracleDriverIs(String urlPrefix) { try { if (getDriverURLHeader().length() != 0) { return getDriverURLHeader().indexOf(urlPrefix) != -1; } else { return getDatabaseURL().indexOf(urlPrefix) != -1; } } catch (ValidationException e) { // this exception will be thrown if we are using something other than a DefaultConnector return false; } }
/** * INTERNAL: * Return whether the specified Oracle JDBC driver is being used. */ protected boolean oracleDriverIs(String urlPrefix) { try { if (getDriverURLHeader().length() != 0) { return getDriverURLHeader().indexOf(urlPrefix) != -1; } else { return getDatabaseURL().indexOf(urlPrefix) != -1; } } catch (ValidationException e) { // this exception will be thrown if we are using something other than a DefaultConnector return false; } }
String jdbcUrl = databaseLogin.getDatabaseURL(); String username = databaseLogin.getUserName();