/** * Gets meta data for the database connection object. * * @return the meta data. * @throws Exception if an error occurs */ public DatabaseMetaData getMetaData() throws Exception{ if (!isConnected()) throw new IllegalStateException("Not connected, please connect first!"); return m_Connection.getMetaData(); }
/** * Gets meta data for the database connection object. * * @return the meta data. * @throws Exception if an error occurs */ public DatabaseMetaData getMetaData() throws Exception{ if (!isConnected()) throw new IllegalStateException("Not connected, please connect first!"); return m_Connection.getMetaData(); }
/** * Dewtermines if the current query retrieves a result set or updates a table * * @return the update count (-1 if the query retrieves a result set). * @throws SQLException if an error occurs */ public int getUpdateCount() throws SQLException { if (!isConnected()) throw new IllegalStateException("Not connected, please connect first!"); return m_PreparedStatement.getUpdateCount(); }
/** * Dewtermines if the current query retrieves a result set or updates a table * * @return the update count (-1 if the query retrieves a result set). * @throws SQLException if an error occurs */ public int getUpdateCount() throws SQLException { if (!isConnected()) throw new IllegalStateException("Not connected, please connect first!"); return m_PreparedStatement.getUpdateCount(); }
/** * 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); } }
/** * 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); } }
if (!m_DataBaseConnection.isConnected()) { m_DataBaseConnection.connectToDatabase();
if (!m_DataBaseConnection.isConnected()) { m_DataBaseConnection.connectToDatabase();
/** * 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>(); }
if (!m_DataBaseConnection.isConnected()) { connectToDatabase();
if (!m_DataBaseConnection.isConnected()) { connectToDatabase();
if (m_DataBaseConnection != null && m_DataBaseConnection.isConnected()) { m_DataBaseConnection.disconnectFromDatabase();
if (m_DataBaseConnection != null && m_DataBaseConnection.isConnected()) { m_DataBaseConnection.disconnectFromDatabase();
if (!m_DataBaseConnection.isConnected()) { connectToDatabase();
if (!m_DataBaseConnection.isConnected()) { connectToDatabase();
if (m_DataBaseConnection != null && m_DataBaseConnection.isConnected()) { m_DataBaseConnection.disconnectFromDatabase();
if (m_DataBaseConnection != null && m_DataBaseConnection.isConnected()) { m_DataBaseConnection.disconnectFromDatabase();