/** * 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_Username); setPassword(m_Password); } catch (Exception ex) { ex.printStackTrace(); } }
/** * 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_Username); setPassword(m_Password); } catch (Exception ex) { ex.printStackTrace(); } }
/** Sets the database url using the DatabaseUtils file. */ public void setDestination() { try { checkEnv(); m_DataBaseConnection = newDatabaseConnection(); setUser(m_Username); setPassword(m_Password); // m_DataBaseConnection.setUsername(m_Username); // m_DataBaseConnection.setPassword(m_Password); } catch (Exception ex) { printException(ex); } }
/** Sets the database url using the DatabaseUtils file. */ public void setDestination() { try { checkEnv(); m_DataBaseConnection = newDatabaseConnection(); setUser(m_Username); setPassword(m_Password); // m_DataBaseConnection.setUsername(m_Username); // m_DataBaseConnection.setPassword(m_Password); } catch (Exception ex) { printException(ex); } }
/** * Sets the database url. * * @param url the database url */ public void setDestination(String url) { try { checkEnv(); m_DataBaseConnection = newDatabaseConnection(); // m_DataBaseConnection.setDatabaseURL(url); setUrl(url); setUser(m_Username); setPassword(m_Password); // m_DataBaseConnection.setUsername(m_Username); // m_DataBaseConnection.setPassword(m_Password); } catch (Exception ex) { printException(ex); } }
/** * Sets the database url. * * @param url the database url */ public void setDestination(String url) { try { checkEnv(); m_DataBaseConnection = newDatabaseConnection(); // m_DataBaseConnection.setDatabaseURL(url); setUrl(url); setUser(m_Username); setPassword(m_Password); // m_DataBaseConnection.setUsername(m_Username); // m_DataBaseConnection.setPassword(m_Password); } catch (Exception ex) { printException(ex); } }
/** * Sets the database url. * * @param url the database url * @param userName the user name * @param password the password */ public void setDestination(String url, String userName, String password) { try { checkEnv(); m_DataBaseConnection = newDatabaseConnection(); setUrl(url); setUser(userName); setPassword(password); // m_DataBaseConnection.setDatabaseURL(url); // m_DataBaseConnection.setUsername(userName); // m_DataBaseConnection.setPassword(password); } catch (Exception ex) { printException(ex); } }
/** * Sets the database url. * * @param url the database url * @param userName the user name * @param password the password */ public void setDestination(String url, String userName, String password) { try { checkEnv(); m_DataBaseConnection = newDatabaseConnection(); setUrl(url); setUser(userName); setPassword(password); // m_DataBaseConnection.setDatabaseURL(url); // m_DataBaseConnection.setUsername(userName); // m_DataBaseConnection.setPassword(password); } catch (Exception ex) { printException(ex); } }
m_DataBaseConnection.disconnectFromDatabase(); m_DataBaseConnection = newDatabaseConnection(); } catch (Exception ex) { printException(ex);
m_DataBaseConnection.disconnectFromDatabase(); m_DataBaseConnection = newDatabaseConnection(); } catch (Exception ex) { printException(ex);