package com.vci.corba.qt; /** * Generated from IDL interface "QTService". * * @author JacORB IDL compiler V 3.9 * @version generated at 2022-12-23 15:42:24 */ public abstract class QTServicePOA extends org.omg.PortableServer.Servant implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.qt.QTServiceOperations { static private final java.util.HashMap m_opsHash = new java.util.HashMap(); static { m_opsHash.put ( "deleteQTS", Integer.valueOf(0)); m_opsHash.put ( "queryBySqlAndValuesWithoutKey", Integer.valueOf(1)); m_opsHash.put ( "getQTS", Integer.valueOf(2)); m_opsHash.put ( "getBOAndLOS", Integer.valueOf(3)); m_opsHash.put ( "queryBySql", Integer.valueOf(4)); m_opsHash.put ( "updateQT", Integer.valueOf(5)); m_opsHash.put ( "isExists", Integer.valueOf(6)); m_opsHash.put ( "getQT", Integer.valueOf(7)); m_opsHash.put ( "saveQT", Integer.valueOf(8)); m_opsHash.put ( "findBTMObjectsByTypeNameAndVersion", Integer.valueOf(9)); m_opsHash.put ( "findBTMObjectsV3", Integer.valueOf(10)); m_opsHash.put ( "findLTObjects", Integer.valueOf(11)); m_opsHash.put ( "findBTMObjectsV2", Integer.valueOf(12)); m_opsHash.put ( "findLTObjectsV2", Integer.valueOf(13)); m_opsHash.put ( "queryBySqlWithoutKey", Integer.valueOf(14)); m_opsHash.put ( "findBTMObjectsV4", Integer.valueOf(15)); m_opsHash.put ( "getAllQTS", Integer.valueOf(16)); m_opsHash.put ( "findTotalCount", Integer.valueOf(17)); m_opsHash.put ( "findBTMObjects", Integer.valueOf(18)); } private String[] ids = {"IDL:com/vci/corba/qt/QTService:1.0"}; public com.vci.corba.qt.QTService _this() { org.omg.CORBA.Object __o = _this_object() ; com.vci.corba.qt.QTService __r = com.vci.corba.qt.QTServiceHelper.narrow(__o); return __r; } public com.vci.corba.qt.QTService _this(org.omg.CORBA.ORB orb) { org.omg.CORBA.Object __o = _this_object(orb) ; com.vci.corba.qt.QTService __r = com.vci.corba.qt.QTServiceHelper.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: // deleteQTS { try { java.lang.String[] _arg0=com.vci.corba.common.data.WStringArrayHelper.read(_input); _out = handler.createReply(); _out.write_boolean(deleteQTS(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 1: // queryBySqlAndValuesWithoutKey { 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.WStringArray2DHelper.write(_out,queryBySqlAndValuesWithoutKey(_arg0,_arg1)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 2: // getQTS { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.qt.data.QTWrapperArrayHelper.write(_out,getQTS(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 3: // getBOAndLOS { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); java.lang.String _arg2=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.qt.data.BOAndLOArrayHelper.write(_out,getBOAndLOS(_arg0,_arg1,_arg2)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 4: // queryBySql { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.qt.data.KVArray2DHelper.write(_out,queryBySql(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 5: // updateQT { try { _out = handler.createReply(); _out.write_boolean(updateQT()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 6: // 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 7: // getQT { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.qt.data.QTWrapperHelper.write(_out,getQT(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 8: // saveQT { try { com.vci.corba.qt.data.QTWrapper _arg0=com.vci.corba.qt.data.QTWrapperHelper.read(_input); _out = handler.createReply(); _out.write_boolean(saveQT(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 9: // findBTMObjectsByTypeNameAndVersion { try { java.lang.String _arg0=_input.read_wstring(); int _arg1=_input.read_long(); _out = handler.createReply(); com.vci.corba.omd.data.BusinessObjectListHelper.write(_out,findBTMObjectsByTypeNameAndVersion(_arg0,_arg1)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 10: // findBTMObjectsV3 { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); org.omg.CORBA.IntHolder _arg2= new org.omg.CORBA.IntHolder(); com.vci.corba.qt.data.BtmRefQueryOption[] _arg3=com.vci.corba.qt.data.BtmRefQueryOptionArrayHelper.read(_input); _out = handler.createReply(); com.vci.corba.omd.data.BusinessObjectListHelper.write(_out,findBTMObjectsV3(_arg0,_arg1,_arg2,_arg3)); _out.write_long(_arg2.value); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 11: // findLTObjects { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.omd.data.LinkObjectListHelper.write(_out,findLTObjects(_arg0,_arg1)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 12: // findBTMObjectsV2 { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); org.omg.CORBA.IntHolder _arg2= new org.omg.CORBA.IntHolder(); _out = handler.createReply(); com.vci.corba.omd.data.BusinessObjectListHelper.write(_out,findBTMObjectsV2(_arg0,_arg1,_arg2)); _out.write_long(_arg2.value); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 13: // findLTObjectsV2 { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); org.omg.CORBA.IntHolder _arg2= new org.omg.CORBA.IntHolder(); _out = handler.createReply(); com.vci.corba.omd.data.LinkObjectListHelper.write(_out,findLTObjectsV2(_arg0,_arg1,_arg2)); _out.write_long(_arg2.value); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 14: // queryBySqlWithoutKey { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.common.data.WStringArray2DHelper.write(_out,queryBySqlWithoutKey(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 15: // findBTMObjectsV4 { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); java.lang.String _arg2=_input.read_wstring(); org.omg.CORBA.IntHolder _arg3= new org.omg.CORBA.IntHolder(); com.vci.corba.qt.data.BtmRefQueryOption[] _arg4=com.vci.corba.qt.data.BtmRefQueryOptionArrayHelper.read(_input); _out = handler.createReply(); com.vci.corba.omd.data.BusinessObjectListHelper.write(_out,findBTMObjectsV4(_arg0,_arg1,_arg2,_arg3,_arg4)); _out.write_long(_arg3.value); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 16: // getAllQTS { try { _out = handler.createReply(); com.vci.corba.qt.data.QTWrapperArrayHelper.write(_out,getAllQTS()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 17: // findTotalCount { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); _out = handler.createReply(); _out.write_long(findTotalCount(_arg0,_arg1)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 18: // findBTMObjects { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.omd.data.BusinessObjectListHelper.write(_out,findBTMObjects(_arg0,_arg1)); } 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; } }