package com.vci.server.bof.delegate; import java.util.Map; import com.vci.common.objects.UserEntity; import com.vci.corba.common.VCIError; import com.vci.server.bof.service.CustomSqlService; public class CustomSqlServerDelegate extends FactoryBaseDelegate { private static CustomSqlServerDelegate instance = null; public static UserEntity userEntity = null; private CustomSqlServerDelegate() { userEntity = new UserEntity(); } public static synchronized CustomSqlServerDelegate getInstance() { if (instance == null) { instance = new CustomSqlServerDelegate(); } return instance; } public boolean executeUpdateSql(String sql) throws VCIError{ boolean rs = false; try { rs = CustomSqlService.getInstance().executeUpdateSql(sql); } catch (Throwable t) { t.printStackTrace(); throw this.getLocalString("P001OSOF-90001", t); } return rs; } public boolean executeUpdateSql(String sql,Map params) throws VCIError{ boolean rs = false; try { rs = CustomSqlService.getInstance().executeUpdateSql(sql,params); } catch (Throwable t) { t.printStackTrace(); throw this.getLocalString("P001OSOF-90001", t); } return rs; } }