|
|
@ -187,6 +187,7 @@ public class ProcedureDataPane extends AbstractTableDataPane<StoreProcedure> imp |
|
|
|
} |
|
|
|
} |
|
|
|
populateWorker = new SwingWorker<Void, Void>() { |
|
|
|
populateWorker = new SwingWorker<Void, Void>() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
protected Void doInBackground() throws Exception { |
|
|
|
protected Void doInBackground() throws Exception { |
|
|
|
try { |
|
|
|
try { |
|
|
|
storeProcedureContext.setText(StringUtils.EMPTY); |
|
|
|
storeProcedureContext.setText(StringUtils.EMPTY); |
|
|
@ -204,6 +205,7 @@ public class ProcedureDataPane extends AbstractTableDataPane<StoreProcedure> imp |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void done() { |
|
|
|
public void done() { |
|
|
|
editorPane.populate(storeprocedure.getParameters()); |
|
|
|
editorPane.populate(storeprocedure.getParameters()); |
|
|
|
} |
|
|
|
} |
|
|
@ -218,6 +220,7 @@ public class ProcedureDataPane extends AbstractTableDataPane<StoreProcedure> imp |
|
|
|
* |
|
|
|
* |
|
|
|
* @param listener 监听器 |
|
|
|
* @param listener 监听器 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
public void addStoreProcedureWorkerListener(StoreProcedureWorkerListener listener) { |
|
|
|
public void addStoreProcedureWorkerListener(StoreProcedureWorkerListener listener) { |
|
|
|
|
|
|
|
|
|
|
|
this.storeProcedureWorkerListener = listener; |
|
|
|
this.storeProcedureWorkerListener = listener; |
|
|
@ -227,6 +230,7 @@ public class ProcedureDataPane extends AbstractTableDataPane<StoreProcedure> imp |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 去除存储过程监听器 |
|
|
|
* 去除存储过程监听器 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
public void removeStoreProcedureWorkerListener() { |
|
|
|
public void removeStoreProcedureWorkerListener() { |
|
|
|
this.storeProcedureWorkerListener = null; |
|
|
|
this.storeProcedureWorkerListener = null; |
|
|
|
|
|
|
|
|
|
|
@ -264,6 +268,7 @@ public class ProcedureDataPane extends AbstractTableDataPane<StoreProcedure> imp |
|
|
|
} |
|
|
|
} |
|
|
|
updateWorker = new SwingWorker<Void, Void>() { |
|
|
|
updateWorker = new SwingWorker<Void, Void>() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
protected Void doInBackground() throws Exception { |
|
|
|
protected Void doInBackground() throws Exception { |
|
|
|
DesignTableDataManager.setThreadLocal(DesignTableDataManager.NO_PARAMETER); |
|
|
|
DesignTableDataManager.setThreadLocal(DesignTableDataManager.NO_PARAMETER); |
|
|
|
sp.setCalculating(true); |
|
|
|
sp.setCalculating(true); |
|
|
@ -271,6 +276,7 @@ public class ProcedureDataPane extends AbstractTableDataPane<StoreProcedure> imp |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void done() { |
|
|
|
public void done() { |
|
|
|
DesignTableDataManager.setThreadLocal(DesignTableDataManager.NO_PARAMETER); |
|
|
|
DesignTableDataManager.setThreadLocal(DesignTableDataManager.NO_PARAMETER); |
|
|
|
sp.setCalculating(false); |
|
|
|
sp.setCalculating(false); |
|
|
@ -328,6 +334,7 @@ public class ProcedureDataPane extends AbstractTableDataPane<StoreProcedure> imp |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 响应数据集改变 |
|
|
|
* 响应数据集改变 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
public void fireDSChanged() { |
|
|
|
public void fireDSChanged() { |
|
|
|
fireDSChanged(new HashMap<String, String>()); |
|
|
|
fireDSChanged(new HashMap<String, String>()); |
|
|
|
} |
|
|
|
} |
|
|
@ -337,6 +344,7 @@ public class ProcedureDataPane extends AbstractTableDataPane<StoreProcedure> imp |
|
|
|
* |
|
|
|
* |
|
|
|
* @param map 改变的map |
|
|
|
* @param map 改变的map |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
public void fireDSChanged(Map<String, String> map) { |
|
|
|
public void fireDSChanged(Map<String, String> map) { |
|
|
|
DesignTableDataManager.fireDSChanged(map); |
|
|
|
DesignTableDataManager.fireDSChanged(map); |
|
|
|
} |
|
|
|
} |
|
|
@ -348,6 +356,7 @@ public class ProcedureDataPane extends AbstractTableDataPane<StoreProcedure> imp |
|
|
|
this.setSmallIcon(BaseUtils.readIcon("/com/fr/design/images/m_file/preview.png")); |
|
|
|
this.setSmallIcon(BaseUtils.readIcon("/com/fr/design/images/m_file/preview.png")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void actionPerformed(ActionEvent evt) { |
|
|
|
public void actionPerformed(ActionEvent evt) { |
|
|
|
StoreProcedure sp = updateBeanWithOutExecute(); |
|
|
|
StoreProcedure sp = updateBeanWithOutExecute(); |
|
|
|
StoreProcedureDataWrapper storeProcedureDataWrappe = new StoreProcedureDataWrapper(sp, StringUtils.EMPTY, queryText.getText()); |
|
|
|
StoreProcedureDataWrapper storeProcedureDataWrappe = new StoreProcedureDataWrapper(sp, StringUtils.EMPTY, queryText.getText()); |
|
|
@ -361,12 +370,14 @@ public class ProcedureDataPane extends AbstractTableDataPane<StoreProcedure> imp |
|
|
|
this.setSmallIcon(BaseUtils.readIcon("/com/fr/design/images/control/refresh.png")); |
|
|
|
this.setSmallIcon(BaseUtils.readIcon("/com/fr/design/images/control/refresh.png")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
refresh(); |
|
|
|
refresh(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void checkEnabled() { |
|
|
|
public void checkEnabled() { |
|
|
|
|
|
|
|
//do nothing
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|