// Dump catalogs.
try
{
File tempFile = File.createTempFile(PREFIX, SUFFIX);
IDataSetViewer dest = new DataSetViewerTextFileDestination(tempFile);
dest.show(new ObjectArrayDataSet(md.getCatalogs()));
files.add(tempFile);
titles.add("Catalogs");
}
catch (Throwable th)
{
final String msg = "Error dumping catalogs";
showErrorMessage(msg);
showErrorMessage(th);
s_log.error(msg, th);
}
// Dump schemas.
try
{
File tempFile = File.createTempFile(PREFIX, SUFFIX);
IDataSetViewer dest = new DataSetViewerTextFileDestination(tempFile);
dest.show(new ObjectArrayDataSet(_session.getSchemaInfo().getSchemas()));
files.add(tempFile);
titles.add("Schemas");
}
catch (Throwable th)
{
final String msg = "Error dumping schemas";
showErrorMessage(msg);
showErrorMessage(th);
s_log.error(msg, th);
}
// Dump data types.
try
{
File tempFile = File.createTempFile(PREFIX, SUFFIX);
IDataSetViewer dest = new DataSetViewerTextFileDestination(tempFile);
dest.show(conn.getSQLMetaData().getTypesDataSet());
files.add(tempFile);
titles.add("Data Types");
}
catch (Throwable th)
{
final String msg = "Error dumping data types";
showErrorMessage(msg);
showErrorMessage(th);
s_log.error(msg, th);
}
// Dump table types.
try
{
File tempFile = File.createTempFile(PREFIX, SUFFIX);
IDataSetViewer dest = new DataSetViewerTextFileDestination(tempFile);
dest.show(new ObjectArrayDataSet(md.getTableTypes()));
files.add(tempFile);
titles.add("Table Types");
}
catch (Throwable th)
{