ColumnMetadata cm = new ColumnMetadata(columnName, dataSize,
type, digits, isNull);
results.add(cm);
}
} catch (SQLException e) {
throw new CouldNotRetrieveMetadataException(
"Couldn't get metadata for table '" + tableName + "': "
+ e.toString());
}
if (results.size() == 0) {
throw new CouldNotRetrieveMetadataException(
"Couldn't get metadata for table '" + tableName + "'");
}
return results;
}