|
|
@ -109,10 +109,9 @@ public class TableViewList extends UIList { |
|
|
|
String[] schemas = DataCoreUtils.getDatabaseSchema(datasource); |
|
|
|
String[] schemas = DataCoreUtils.getDatabaseSchema(datasource); |
|
|
|
schemas = (schemas == null || schemas.length == 0) ? new String[]{null} : schemas; |
|
|
|
schemas = (schemas == null || schemas.length == 0) ? new String[]{null} : schemas; |
|
|
|
for (String schema : schemas) { |
|
|
|
for (String schema : schemas) { |
|
|
|
DataCoreUtils.refreshTables(datasource, TableProcedure.TABLE, schema); |
|
|
|
clearCache(datasource, schema); |
|
|
|
DataCoreUtils.refreshTables(datasource, TableProcedure.VIEW, schema); |
|
|
|
|
|
|
|
DataCoreUtils.refreshTables(datasource, TableProcedure.PROCEDURE, schema); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
clearCache(datasource, null); |
|
|
|
return processDataInAnotherThread(databaseName, searchFilter, typesFilter); |
|
|
|
return processDataInAnotherThread(databaseName, searchFilter, typesFilter); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -133,6 +132,12 @@ public class TableViewList extends UIList { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void clearCache(Connection datasource, String schema) { |
|
|
|
|
|
|
|
DataCoreUtils.refreshTables(datasource, TableProcedure.TABLE, schema); |
|
|
|
|
|
|
|
DataCoreUtils.refreshTables(datasource, TableProcedure.VIEW, schema); |
|
|
|
|
|
|
|
DataCoreUtils.refreshTables(datasource, TableProcedure.PROCEDURE, schema); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* august:databaseName是数据库名字,searchFilter是输入的过滤条件,typesFilter是视图、表、 |
|
|
|
* august:databaseName是数据库名字,searchFilter是输入的过滤条件,typesFilter是视图、表、 |
|
|
|
* 存储过程中的一者或者几者 |
|
|
|
* 存储过程中的一者或者几者 |
|
|
|