/** * 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>(); }
m_DataBaseConnection.disconnectFromDatabase(); } catch (Exception ex) { ex.printStackTrace();
m_DataBaseConnection.disconnectFromDatabase(); } catch (Exception ex) { ex.printStackTrace();
return current; } else { m_DataBaseConnection.disconnectFromDatabase(); resetStructure(); return null;
writeInstance(instances.instance(i)); m_DataBaseConnection.disconnectFromDatabase(); setWriteMode(WAIT); resetStructure();
writeInstance(instances.instance(i)); m_DataBaseConnection.disconnectFromDatabase(); setWriteMode(WAIT); resetStructure();
return current; } else { m_DataBaseConnection.disconnectFromDatabase(); resetStructure(); return null;
try { if (m_DataBaseConnection != null && m_DataBaseConnection.isConnected()) { m_DataBaseConnection.disconnectFromDatabase();
try { if (m_DataBaseConnection != null && m_DataBaseConnection.isConnected()) { m_DataBaseConnection.disconnectFromDatabase();
} else { m_DataBaseConnection.disconnectFromDatabase(); resetStructure(); m_count = 1;
} else { m_DataBaseConnection.disconnectFromDatabase(); resetStructure(); m_count = 1;
m_DataBaseConnection.disconnectFromDatabase();
m_DataBaseConnection.disconnectFromDatabase();