public static void dropTable(String table,Connection connection){
  table=table.replace(";","");
  StringBuilder dropTableQuery=new StringBuilder();
  dropTableQuery.append("DROP TABLE ");
  dropTableQuery.append(table);
  LOG.info("Drop Table: ");
  LOG.info(dropTableQuery);
  executeStatementIfExists(dropTableQuery.toString(),connection);
}

public static void dropTable ( String table , Connection connection ) { table = table . replace ( ";" , "" ) ; StringBuilder dropTableQuery = new StringBuilder ( ) ; dropTableQuery . append ( "DROP TABLE " ) ; dropTableQuery . append ( table ) ; LOG . info ( "Drop Table: " ) ; LOG . info ( dropTableQuery ) ; executeStatementIfExists ( dropTableQuery . toString ( ) , connection ) ; }
drops a table from a database underneath the connection object .
