81,091
社区成员
发帖
与我相关
我的任务
分享
public class ExecuteBatchSummarySPC extends StoredProcedure {
private static final String SPC_NAME = "ExecuteBatchSummary";
public ExecuteBatchSummarySPC(DataSource dataSource) {
super(dataSource, SPC_NAME);
declareParameter(new SqlParameter("ITRANSINSTKEY", Types.CHAR));
compile();
}
public Map execute(String transInstKey) {
Map<String, Object> inParams = new HashMap<String, Object>(4);
inParams.put("ITRANSINSTKEY", transInstKey);
Map outParams = execute(inParams);
if (outParams.size() > 0)
return outParams;
else
throw new NoOutputParameterException(SPC_NAME);
}
}
Thread t = new Thread(new Runnable() {
public void run() {
ExecuteBatchSummarySPC spc = new ExecuteBatchSummarySPC(ds);
spc.execute(transInstKey);
}
});
t.start();