/** * Cancels the incremental saving process and tries to drop the table if the * write mode is CANCEL. */ @Override public void cancel() { if (getWriteMode() == CANCEL) { try { m_DataBaseConnection.update("DROP TABLE " + m_resolvedTableName); if (m_DataBaseConnection.tableExists(m_resolvedTableName)) { System.err.println("Table cannot be dropped."); } } catch (Exception ex) { printException(ex); } resetOptions(); } }
/** * Cancels the incremental saving process and tries to drop the table if the * write mode is CANCEL. */ @Override public void cancel() { if (getWriteMode() == CANCEL) { try { m_DataBaseConnection.update("DROP TABLE " + m_resolvedTableName); if (m_DataBaseConnection.tableExists(m_resolvedTableName)) { System.err.println("Table cannot be dropped."); } } catch (Exception ex) { printException(ex); } resetOptions(); } }
if (m_DataBaseConnection.tableExists(m_resolvedTableName)) { if (!m_truncate) { System.err.println("[DatabaseSaver] Table '" + m_resolvedTableName if (!m_DataBaseConnection.tableExists(m_resolvedTableName)) { throw new IOException("Table cannot be built.");
if (m_DataBaseConnection.tableExists(m_resolvedTableName)) { if (!m_truncate) { System.err.println("[DatabaseSaver] Table '" + m_resolvedTableName if (!m_DataBaseConnection.tableExists(m_resolvedTableName)) { throw new IOException("Table cannot be built.");
if (!m_DataBaseConnection.tableExists(endOfQuery(true))) { throw new IOException( "Table does not exist according to metadata from JDBC driver. "
if (!m_DataBaseConnection.tableExists(endOfQuery(true))) { throw new IOException( "Table does not exist according to metadata from JDBC driver. "