package com.vci.corba.qt; /** * Generated from IDL interface "QTDService". * * @author JacORB IDL compiler V 3.9 * @version generated at 2022-12-23 15:42:24 */ public abstract class QTDServicePOA extends org.omg.PortableServer.Servant implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.qt.QTDServiceOperations { static private final java.util.HashMap m_opsHash = new java.util.HashMap(); static { m_opsHash.put ( "isExists", Integer.valueOf(0)); m_opsHash.put ( "deleteQTD", Integer.valueOf(1)); m_opsHash.put ( "modifyQTD", Integer.valueOf(2)); m_opsHash.put ( "getQTDSByBtmName", Integer.valueOf(3)); m_opsHash.put ( "getAllQTDS", Integer.valueOf(4)); m_opsHash.put ( "getAllBTMQTDS", Integer.valueOf(5)); m_opsHash.put ( "getQTDSByLinkTypeName", Integer.valueOf(6)); m_opsHash.put ( "getAllLinkQTDS", Integer.valueOf(7)); m_opsHash.put ( "addQTD", Integer.valueOf(8)); m_opsHash.put ( "getQTDByName", Integer.valueOf(9)); } private String[] ids = {"IDL:com/vci/corba/qt/QTDService:1.0"}; public com.vci.corba.qt.QTDService _this() { org.omg.CORBA.Object __o = _this_object() ; com.vci.corba.qt.QTDService __r = com.vci.corba.qt.QTDServiceHelper.narrow(__o); return __r; } public com.vci.corba.qt.QTDService _this(org.omg.CORBA.ORB orb) { org.omg.CORBA.Object __o = _this_object(orb) ; com.vci.corba.qt.QTDService __r = com.vci.corba.qt.QTDServiceHelper.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: // isExists { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); _out.write_boolean(isExists(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 1: // deleteQTD { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); _out.write_boolean(deleteQTD(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 2: // modifyQTD { try { com.vci.corba.qt.data.QTD _arg0=com.vci.corba.qt.data.QTDHelper.read(_input); _out = handler.createReply(); _out.write_boolean(modifyQTD(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 3: // getQTDSByBtmName { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.qt.data.QTDArrayHelper.write(_out,getQTDSByBtmName(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 4: // getAllQTDS { try { _out = handler.createReply(); com.vci.corba.qt.data.QTDArrayHelper.write(_out,getAllQTDS()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 5: // getAllBTMQTDS { try { _out = handler.createReply(); com.vci.corba.qt.data.QTDArrayHelper.write(_out,getAllBTMQTDS()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 6: // getQTDSByLinkTypeName { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.qt.data.QTDArrayHelper.write(_out,getQTDSByLinkTypeName(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 7: // getAllLinkQTDS { try { _out = handler.createReply(); com.vci.corba.qt.data.QTDArrayHelper.write(_out,getAllLinkQTDS()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 8: // addQTD { try { com.vci.corba.qt.data.QTD _arg0=com.vci.corba.qt.data.QTDHelper.read(_input); _out = handler.createReply(); _out.write_boolean(addQTD(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 9: // getQTDByName { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.qt.data.QTDHelper.write(_out,getQTDByName(_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; } }