try {
DBTableDataSourceAdapter dbds = getDataSourceByQuery(getDataSourceFactory(), name, name);
dbds.execute("DROP VIEW " + viewName);
} catch (SQLException e) {
throw new DataSourceFinalizationException(e);
} catch (DriverException e) {
throw new DataSourceFinalizationException(e);
}
}
}