|
|
|
@ -134,14 +134,9 @@ public abstract class DatabaseConnectionPane<E extends com.fr.data.impl.Connecti
|
|
|
|
|
final SwingWorker<Boolean, Void> connectionThread = new SwingWorker<>() { |
|
|
|
|
@Override |
|
|
|
|
protected Boolean doInBackground() throws Exception { |
|
|
|
|
try { |
|
|
|
|
Connection database = DatabaseConnectionPane.this.updateBean(); |
|
|
|
|
// 返回连接结果
|
|
|
|
|
return DataOperator.getInstance().testConnection(database); |
|
|
|
|
} catch (Exception exp) { |
|
|
|
|
FineLoggerFactory.getLogger().error(exp.getMessage(), exp); |
|
|
|
|
} |
|
|
|
|
return null; |
|
|
|
|
Connection database = DatabaseConnectionPane.this.updateBean(); |
|
|
|
|
// 返回连接结果
|
|
|
|
|
return DataOperator.getInstance().testConnection(database); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|