summaryrefslogtreecommitdiff
path: root/connectivity/qa/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-08-28 16:05:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-28 16:15:44 +0200
commit9dc3b1bf6120e958e1a943a9c3c8432302bd25e3 (patch)
tree1b92362c42783436b1f75358300192aac7989968 /connectivity/qa/connectivity
parent05f7bb2e3eba3cdf0098b63e9431c76001738794 (diff)
Simplify/remove some methods named "dropTable"
Change-Id: Icbebe81fec6ce0b39946dec00f57471b2cafd5e1
Diffstat (limited to 'connectivity/qa/connectivity')
-rw-r--r--connectivity/qa/connectivity/tools/FlatFileDatabase.java11
-rw-r--r--connectivity/qa/connectivity/tools/HsqlDatabase.java11
2 files changed, 3 insertions, 19 deletions
diff --git a/connectivity/qa/connectivity/tools/FlatFileDatabase.java b/connectivity/qa/connectivity/tools/FlatFileDatabase.java
index 5af55c6cec66..e45f4718d666 100644
--- a/connectivity/qa/connectivity/tools/FlatFileDatabase.java
+++ b/connectivity/qa/connectivity/tools/FlatFileDatabase.java
@@ -89,17 +89,6 @@ class FlatFileDatabase extends AbstractDatabase
storable.storeAsURL( m_databaseDocumentFile, new PropertyValue[] { } );
}
- /** drops the table with a given name
-
- @param _name
- the name of the table to drop
- */
- public void dropTable(final String _name) throws SQLException
- {
- String dropStatement = "DROP TABLE \"" + _name;
- executeSQL(dropStatement);
- }
-
final String m_urlSubScheme;
File m_tableFileLocation = null;
}
diff --git a/connectivity/qa/connectivity/tools/HsqlDatabase.java b/connectivity/qa/connectivity/tools/HsqlDatabase.java
index 4a733efc64b2..851d0e38ac8c 100644
--- a/connectivity/qa/connectivity/tools/HsqlDatabase.java
+++ b/connectivity/qa/connectivity/tools/HsqlDatabase.java
@@ -81,17 +81,12 @@ public class HsqlDatabase extends AbstractDatabase
@param _name
the name of the table to drop
- @param _ifExists
- TRUE if it should be dropped only when it exists.
*/
- public void dropTable(final String _name, final boolean _ifExists) throws SQLException
+ private void dropTable(final String _name) throws SQLException
{
final StringBuffer dropStatement = new StringBuffer("DROP TABLE \"");
dropStatement.append(_name);
- if (_ifExists)
- {
- dropStatement.append("\" IF EXISTS");
- }
+ dropStatement.append("\" IF EXISTS");
executeSQL(dropStatement.toString());
}
@@ -99,7 +94,7 @@ public class HsqlDatabase extends AbstractDatabase
{
if (_dropIfExists)
{
- dropTable(_tableDesc.getName(), true);
+ dropTable(_tableDesc.getName());
}
createTable(_tableDesc);
}