|
|
@ -60,6 +60,12 @@ public class SearchConnectionAction implements SearchAction { |
|
|
|
setConnectionInfos(connectionInfos); |
|
|
|
setConnectionInfos(connectionInfos); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 数据连接是否可用 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param data 数据库 |
|
|
|
|
|
|
|
* @return 可用返回true |
|
|
|
|
|
|
|
*/ |
|
|
|
public boolean isNameDataBaseConnectionValid(TableData data) { |
|
|
|
public boolean isNameDataBaseConnectionValid(TableData data) { |
|
|
|
return data instanceof TableDataConnection && ((TableDataConnection) data).getDatabase() instanceof NameDatabaseConnection; |
|
|
|
return data instanceof TableDataConnection && ((TableDataConnection) data).getDatabase() instanceof NameDatabaseConnection; |
|
|
|
} |
|
|
|
} |
|
|
|