package com.vci.corba.omd.btm; /** * Generated from IDL interface "BTMService". * * @author JacORB IDL compiler V 3.9 * @version generated at 2022-12-23 15:42:24 */ public abstract class BTMServicePOA extends org.omg.PortableServer.Servant implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.omd.btm.BTMServiceOperations { static private final java.util.HashMap m_opsHash = new java.util.HashMap(); static { m_opsHash.put ( "deleteBtmItem", Integer.valueOf(0)); m_opsHash.put ( "getChildrenBtms", Integer.valueOf(1)); m_opsHash.put ( "xml2DB", Integer.valueOf(2)); m_opsHash.put ( "truncateTable", Integer.valueOf(3)); m_opsHash.put ( "executeRepair", Integer.valueOf(4)); m_opsHash.put ( "getBtmAndApNameArray", Integer.valueOf(5)); m_opsHash.put ( "deleteBtsAndTables", Integer.valueOf(6)); m_opsHash.put ( "deleteBtmItemNoCache", Integer.valueOf(7)); m_opsHash.put ( "getBTMNamesByLCyName", Integer.valueOf(8)); m_opsHash.put ( "getBTMNamesByAPName", Integer.valueOf(9)); m_opsHash.put ( "checkRowIsExists", Integer.valueOf(10)); m_opsHash.put ( "deleteTable", Integer.valueOf(11)); m_opsHash.put ( "addBtmItem", Integer.valueOf(12)); m_opsHash.put ( "getAllBtmItem", Integer.valueOf(13)); m_opsHash.put ( "addBtmItemNoCache", Integer.valueOf(14)); m_opsHash.put ( "checkTable", Integer.valueOf(15)); m_opsHash.put ( "getBTMData", Integer.valueOf(16)); m_opsHash.put ( "getBtmItemByName", Integer.valueOf(17)); m_opsHash.put ( "getUnRemovableFields", Integer.valueOf(18)); m_opsHash.put ( "createView", Integer.valueOf(19)); m_opsHash.put ( "getBTMNamesByVerName", Integer.valueOf(20)); m_opsHash.put ( "deleteBtmItems", Integer.valueOf(21)); m_opsHash.put ( "createTable", Integer.valueOf(22)); m_opsHash.put ( "getImagePaths", Integer.valueOf(23)); m_opsHash.put ( "getChildrenNames", Integer.valueOf(24)); m_opsHash.put ( "getAttributes", Integer.valueOf(25)); m_opsHash.put ( "getBtmApNameArray", Integer.valueOf(26)); m_opsHash.put ( "updateBtmItem", Integer.valueOf(27)); m_opsHash.put ( "btmConsistencyCheck", Integer.valueOf(28)); m_opsHash.put ( "hasData", Integer.valueOf(29)); } private String[] ids = {"IDL:com/vci/corba/omd/btm/BTMService:1.0"}; public com.vci.corba.omd.btm.BTMService _this() { org.omg.CORBA.Object __o = _this_object() ; com.vci.corba.omd.btm.BTMService __r = com.vci.corba.omd.btm.BTMServiceHelper.narrow(__o); return __r; } public com.vci.corba.omd.btm.BTMService _this(org.omg.CORBA.ORB orb) { org.omg.CORBA.Object __o = _this_object(orb) ; com.vci.corba.omd.btm.BTMService __r = com.vci.corba.omd.btm.BTMServiceHelper.narrow(__o); return __r; } public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) throws org.omg.CORBA.SystemException { org.omg.CORBA.portable.OutputStream _out = null; // do something // quick lookup of operation java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); if ( null == opsIndex ) throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) { case 0: // deleteBtmItem { try { com.vci.corba.omd.btm.BtmItem _arg0=com.vci.corba.omd.btm.BtmItemHelper.read(_input); _out = handler.createReply(); _out.write_boolean(deleteBtmItem(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 1: // getChildrenBtms { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.omd.btm.BtmItemArrayHelper.write(_out,getChildrenBtms(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 2: // xml2DB { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); _out.write_boolean(xml2DB(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 3: // truncateTable { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); _out.write_boolean(truncateTable(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 4: // executeRepair { try { java.lang.String[] _arg0=com.vci.corba.common.data.WStringArrayHelper.read(_input); _out = handler.createReply(); com.vci.corba.common.data.WStringArrayHelper.write(_out,executeRepair(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 5: // getBtmAndApNameArray { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.omd.btm.BtmAndApNameArrayHelper.write(_out,getBtmAndApNameArray(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 6: // deleteBtsAndTables { try { com.vci.corba.omd.btm.BtmItem[] _arg0=com.vci.corba.omd.btm.BtmItemArrayHelper.read(_input); _out = handler.createReply(); _out.write_boolean(deleteBtsAndTables(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 7: // deleteBtmItemNoCache { try { com.vci.corba.omd.btm.BtmItem _arg0=com.vci.corba.omd.btm.BtmItemHelper.read(_input); _out = handler.createReply(); _out.write_boolean(deleteBtmItemNoCache(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 8: // getBTMNamesByLCyName { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.common.data.WStringArrayHelper.write(_out,getBTMNamesByLCyName(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 9: // getBTMNamesByAPName { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.common.data.WStringArrayHelper.write(_out,getBTMNamesByAPName(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 10: // checkRowIsExists { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); _out.write_boolean(checkRowIsExists(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 11: // deleteTable { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); _out.write_boolean(deleteTable(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 12: // addBtmItem { try { com.vci.corba.omd.btm.BtmItem _arg0=com.vci.corba.omd.btm.BtmItemHelper.read(_input); _out = handler.createReply(); _out.write_boolean(addBtmItem(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 13: // getAllBtmItem { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.omd.btm.BtmItemArrayHelper.write(_out,getAllBtmItem(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 14: // addBtmItemNoCache { try { com.vci.corba.omd.btm.BtmItem _arg0=com.vci.corba.omd.btm.BtmItemHelper.read(_input); _out = handler.createReply(); _out.write_boolean(addBtmItemNoCache(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 15: // checkTable { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); _out = handler.createReply(); _out.write_boolean(checkTable(_arg0,_arg1)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 16: // getBTMData { try { _out = handler.createReply(); java.lang.String tmpResult981 = getBTMData(); _out.write_wstring( tmpResult981 ); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 17: // getBtmItemByName { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.omd.btm.BtmItemHelper.write(_out,getBtmItemByName(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 18: // getUnRemovableFields { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String[] _arg1=com.vci.corba.common.data.WStringArrayHelper.read(_input); _out = handler.createReply(); com.vci.corba.common.data.WStringArrayHelper.write(_out,getUnRemovableFields(_arg0,_arg1)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 19: // createView { try { _out = handler.createReply(); _out.write_boolean(createView()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 20: // getBTMNamesByVerName { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.common.data.WStringArrayHelper.write(_out,getBTMNamesByVerName(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 21: // deleteBtmItems { try { com.vci.corba.omd.btm.BtmItem[] _arg0=com.vci.corba.omd.btm.BtmItemArrayHelper.read(_input); _out = handler.createReply(); _out.write_boolean(deleteBtmItems(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 22: // createTable { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); _out.write_boolean(createTable(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 23: // getImagePaths { try { _out = handler.createReply(); com.vci.corba.common.data.WStringArrayHelper.write(_out,getImagePaths()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 24: // getChildrenNames { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.common.data.WStringArrayHelper.write(_out,getChildrenNames(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 25: // getAttributes { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.omd.attribpool.AttribItemArrayHelper.write(_out,getAttributes(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 26: // getBtmApNameArray { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.common.data.WStringArrayHelper.write(_out,getBtmApNameArray(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 27: // updateBtmItem { try { com.vci.corba.omd.btm.BtmItem _arg0=com.vci.corba.omd.btm.BtmItemHelper.read(_input); _out = handler.createReply(); _out.write_boolean(updateBtmItem(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 28: // btmConsistencyCheck { try { _out = handler.createReply(); com.vci.corba.common.data.WStringArrayHelper.write(_out,btmConsistencyCheck()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 29: // hasData { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); _out.write_boolean(hasData(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } } return _out; } public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) { return ids; } }