/** * Set the environment variables to use. * * @param env the environment variables to use */ @Override public void setEnvironment(Environment env) { m_env = env; try { // force a new connection and setting of all parameters // with environment variables resolved m_DataBaseConnection = newDatabaseConnection(); setUrl(m_URL); setUser(m_User); setPassword(m_Password); } catch (Exception ex) { // we won't complain about it here... } }
/** * Set the environment variables to use. * * @param env the environment variables to use */ @Override public void setEnvironment(Environment env) { m_env = env; try { // force a new connection and setting of all parameters // with environment variables resolved m_DataBaseConnection = newDatabaseConnection(); setUrl(m_URL); setUser(m_User); setPassword(m_Password); } catch (Exception ex) { // we won't complain about it here... } }
/** * Sets the database url * * @param url the database url */ public void setSource(String url) { try { m_DataBaseConnection = newDatabaseConnection(); setUrl(url); m_User = m_DataBaseConnection.getUsername(); m_Password = m_DataBaseConnection.getPassword(); } catch (Exception ex) { printException(ex); } }
/** * Sets the database url * * @param url the database url */ public void setSource(String url) { try { m_DataBaseConnection = newDatabaseConnection(); setUrl(url); m_User = m_DataBaseConnection.getUsername(); m_Password = m_DataBaseConnection.getPassword(); } catch (Exception ex) { printException(ex); } }
/** * Sets the database url, user and pw * * @param url the database url * @param userName the user name * @param password the password */ public void setSource(String url, String userName, String password) { try { m_DataBaseConnection = newDatabaseConnection(); setUrl(url); setUser(userName); setPassword(password); } catch (Exception ex) { printException(ex); } }
/** * Sets the database url, user and pw * * @param url the database url * @param userName the user name * @param password the password */ public void setSource(String url, String userName, String password) { try { m_DataBaseConnection = newDatabaseConnection(); setUrl(url); setUser(userName); setPassword(password); } catch (Exception ex) { printException(ex); } }
dbl.setUrl(m_dbaseURLText.getText()); dbl.setUser(m_userNameText.getText()); dbl.setPassword(new String(m_passwordText.getPassword()));
setUrl(tmpStr);
dbl.setUrl(m_dbaseURLText.getText()); dbl.setUser(m_userNameText.getText()); dbl.setPassword(new String(m_passwordText.getPassword()));
setUrl(m_URL);
dbl.setUser(user); dbl.setPassword(password); dbl.setUrl(uRL); dbl.setQuery(query);
dbl.setUser(user); dbl.setPassword(password); dbl.setUrl(uRL); dbl.setQuery(query);
dbl.setUser(user); dbl.setPassword(password); dbl.setUrl(uRL); dbl.setQuery(query);
dbl.setUser(user); dbl.setPassword(password); dbl.setUrl(uRL); dbl.setQuery(query);