package com.vci.server.bof.server.create; import com.vci.common.log.ServerWithLog4j; import com.vci.corba.common.VCIError; import com.vci.server.bof.server.ServiceFacadeExecuteHelper; import com.vci.server.bof.service.LOFactoryService; public class BatchCreateLO extends ServiceFacadeExecuteHelper{ private static ServiceFacadeExecuteHelper instance = null; public static ServiceFacadeExecuteHelper getInstance() { if(instance == null) { instance = new BatchCreateLO(); } return instance; } @Override protected Object doAction() throws Throwable { try { LOFactoryService services = LOFactoryService.getInstance(); return services.batchCreateLinkObject(params.getLos()); } catch (VCIError e) { throw this.getLocalString(e.code, e); } catch (Exception e) { //e.printStackTrace(); ServerWithLog4j.logger.error(e); throw this.getLocalString("P0010LOL-00001", e); } catch (Throwable t) { //t.printStackTrace(); ServerWithLog4j.logger.error(t); throw this.getLocalString("P0010LOL-00001", t); } } }