yuxc
2025-01-15 63ff693fcccf647d758fc4f300a573f6c644596e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
package com.vci.corba.refquery;
 
 
/**
 * Generated from IDL interface "RefQueryService".
 *
 * @author JacORB IDL compiler V 3.9
 * @version generated at 2022-12-23 15:42:24
 */
 
public abstract class RefQueryServicePOA
    extends org.omg.PortableServer.Servant
    implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.refquery.RefQueryServiceOperations
{
    static private final java.util.HashMap<String,Integer> m_opsHash = new java.util.HashMap<String,Integer>();
    static
    {
        m_opsHash.put ( "getRefQueryResults", Integer.valueOf(0));
        m_opsHash.put ( "getRefTypesResults", Integer.valueOf(1));
        m_opsHash.put ( "getRefResults", Integer.valueOf(2));
    }
    private String[] ids = {"IDL:com/vci/corba/refquery/RefQueryService:1.0"};
    public com.vci.corba.refquery.RefQueryService _this()
    {
        org.omg.CORBA.Object __o = _this_object() ;
        com.vci.corba.refquery.RefQueryService __r = com.vci.corba.refquery.RefQueryServiceHelper.narrow(__o);
        return __r;
    }
    public com.vci.corba.refquery.RefQueryService _this(org.omg.CORBA.ORB orb)
    {
        org.omg.CORBA.Object __o = _this_object(orb) ;
        com.vci.corba.refquery.RefQueryService __r = com.vci.corba.refquery.RefQueryServiceHelper.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: // getRefQueryResults
            {
            try
            {
                com.vci.corba.refquery.RefPath[] _arg0=com.vci.corba.refquery.PathArrayHelper.read(_input);
                _out = handler.createReply();
                com.vci.corba.refquery.PathArrayHelper.write(_out,getRefQueryResults(_arg0));
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 1: // getRefTypesResults
            {
            try
            {
                com.vci.corba.refquery.RefPath[] _arg0=com.vci.corba.refquery.PathArrayHelper.read(_input);
                java.lang.String[] _arg1=com.vci.corba.common.data.WStringArrayHelper.read(_input);
                _out = handler.createReply();
                com.vci.corba.refquery.PathArrayHelper.write(_out,getRefTypesResults(_arg0,_arg1));
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 2: // getRefResults
            {
            try
            {
                com.vci.corba.refquery.RefPath[] _arg0=com.vci.corba.refquery.PathArrayHelper.read(_input);
                java.lang.String _arg1=_input.read_wstring();
                _out = handler.createReply();
                com.vci.corba.refquery.PathArrayHelper.write(_out,getRefResults(_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;
    }
}