/** * Opens a connection to the database */ public void connectToDatabase() { try { if (!m_DataBaseConnection.isConnected()) { m_DataBaseConnection.connectToDatabase(); } } catch (Exception ex) { printException(ex); } }
/** * Opens a connection to the database */ public void connectToDatabase() { try { if (!m_DataBaseConnection.isConnected()) { m_DataBaseConnection.connectToDatabase(); } } 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 * * @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); } }
/** * Resets the Loader to the settings in either the default DatabaseUtils.props * or any property file that the user has specified via setCustomPropsFile(). */ public void resetOptions() { resetStructure(); try { if (m_DataBaseConnection != null && m_DataBaseConnection.isConnected()) { m_DataBaseConnection.disconnectFromDatabase(); } m_DataBaseConnection = newDatabaseConnection(); } catch (Exception ex) { printException(ex); } m_URL = m_DataBaseConnection.getDatabaseURL(); if (m_URL == null) { m_URL = "none set!"; } m_User = m_DataBaseConnection.getUsername(); if (m_User == null) { m_User = ""; } m_Password = m_DataBaseConnection.getPassword(); if (m_Password == null) { m_Password = ""; } m_orderBy = new ArrayList<String>(); }
/** * Resets the Loader to the settings in either the default DatabaseUtils.props * or any property file that the user has specified via setCustomPropsFile(). */ public void resetOptions() { resetStructure(); try { if (m_DataBaseConnection != null && m_DataBaseConnection.isConnected()) { m_DataBaseConnection.disconnectFromDatabase(); } m_DataBaseConnection = newDatabaseConnection(); } catch (Exception ex) { printException(ex); } m_URL = m_DataBaseConnection.getDatabaseURL(); if (m_URL == null) { m_URL = "none set!"; } m_User = m_DataBaseConnection.getUsername(); if (m_User == null) { m_User = ""; } m_Password = m_DataBaseConnection.getPassword(); if (m_Password == null) { m_Password = ""; } m_orderBy = new ArrayList<String>(); }
} catch (Exception ex) { ex.printStackTrace(); printException(ex);
} catch (Exception ex) { ex.printStackTrace(); printException(ex);
printException(ex); StringBuffer text = new StringBuffer(); if (m_query.equals("Select * from Results0")) {
printException(ex); StringBuffer text = new StringBuffer(); if (m_query.equals("Select * from Results0")) {