|
|
@ -36,7 +36,8 @@ public class TableInfoFactory {
|
|
|
|
private TableInfo getTable(String tableName, DatabaseMetaData metadata) throws Exception {
|
|
|
|
private TableInfo getTable(String tableName, DatabaseMetaData metadata) throws Exception {
|
|
|
|
try (ResultSet resultSet = metadata.getTables(null, null, tableName, null);) {
|
|
|
|
try (ResultSet resultSet = metadata.getTables(null, null, tableName, null);) {
|
|
|
|
while (resultSet.next()) {
|
|
|
|
while (resultSet.next()) {
|
|
|
|
TableInfo table = new TableInfo().setName(tableName);
|
|
|
|
TableInfo table = new TableInfo()
|
|
|
|
|
|
|
|
.setName(tableName);
|
|
|
|
table.setComment(resultSet.getString("REMARKS"));
|
|
|
|
table.setComment(resultSet.getString("REMARKS"));
|
|
|
|
return table;
|
|
|
|
return table;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -94,7 +95,7 @@ public class TableInfoFactory {
|
|
|
|
String className = metadata.getColumnClassName(i);
|
|
|
|
String className = metadata.getColumnClassName(i);
|
|
|
|
table.getColumns().get(columnName).setClassName(className);
|
|
|
|
table.getColumns().get(columnName).setClassName(className);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
table.removeClassNotFound();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|