package com.vci.server.bof.delegate;
|
|
import com.vci.corba.common.VCIError;
|
import com.vci.server.bof.service.BatchSqlService;
|
|
public class BatchSqlServerDelegate extends FactoryBaseDelegate {
|
|
private static BatchSqlServerDelegate instance = null;
|
|
public static synchronized BatchSqlServerDelegate getInstance() {
|
if (instance == null) {
|
instance = new BatchSqlServerDelegate();
|
}
|
|
return instance;
|
}
|
|
public boolean executeUpdateSqls(String[] sqls) throws VCIError {
|
boolean rs = false;
|
try {
|
rs = BatchSqlService.getInstance().executeUpdateSqls(sqls);
|
} catch (Throwable t) {
|
t.printStackTrace();
|
throw this.getLocalString("P001OSOF-90001", t);
|
}
|
|
return rs;
|
}
|
}
|