ludc
2025-01-16 986aa62ed00bee39363bab41b4eeb8259d446efd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
    }
}