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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
package com.vci.corba.cache;
 
 
/**
 * Generated from IDL interface "CacheService".
 *
 * @author JacORB IDL compiler V 3.9
 * @version generated at 2022-12-23 15:42:24
 */
 
public abstract class CacheServicePOA
    extends org.omg.PortableServer.Servant
    implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.cache.CacheServiceOperations
{
    static private final java.util.HashMap<String,Integer> m_opsHash = new java.util.HashMap<String,Integer>();
    static
    {
        m_opsHash.put ( "recordModifyInfo", Integer.valueOf(0));
        m_opsHash.put ( "getRecordByType", Integer.valueOf(1));
        m_opsHash.put ( "resetObjType", Integer.valueOf(2));
        m_opsHash.put ( "getDBCurrentTime", Integer.valueOf(3));
        m_opsHash.put ( "clearModifyRecordByType", Integer.valueOf(4));
        m_opsHash.put ( "clearModifyRecord", Integer.valueOf(5));
        m_opsHash.put ( "getAllRecordByType", Integer.valueOf(6));
        m_opsHash.put ( "reloadCache", Integer.valueOf(7));
    }
    private String[] ids = {"IDL:com/vci/corba/cache/CacheService:1.0"};
    public com.vci.corba.cache.CacheService _this()
    {
        org.omg.CORBA.Object __o = _this_object() ;
        com.vci.corba.cache.CacheService __r = com.vci.corba.cache.CacheServiceHelper.narrow(__o);
        return __r;
    }
    public com.vci.corba.cache.CacheService _this(org.omg.CORBA.ORB orb)
    {
        org.omg.CORBA.Object __o = _this_object(orb) ;
        com.vci.corba.cache.CacheService __r = com.vci.corba.cache.CacheServiceHelper.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: // recordModifyInfo
            {
            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();
                java.lang.String tmpResult1119 = recordModifyInfo(_arg0,_arg1,_arg2);
_out.write_wstring( tmpResult1119 );
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 1: // getRecordByType
            {
            try
            {
                java.lang.String _arg0=_input.read_wstring();
                long _arg1=_input.read_longlong();
                _out = handler.createReply();
                com.vci.corba.cache.PLCacheRecordArrayHelper.write(_out,getRecordByType(_arg0,_arg1));
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 2: // resetObjType
            {
            try
            {
                java.lang.String _arg0=_input.read_wstring();
                _out = handler.createReply();
                resetObjType(_arg0);
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 3: // getDBCurrentTime
            {
            try
            {
                _out = handler.createReply();
                _out.write_longlong(getDBCurrentTime());
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 4: // clearModifyRecordByType
            {
            try
            {
                java.lang.String _arg0=_input.read_wstring();
                _out = handler.createReply();
                _out.write_boolean(clearModifyRecordByType(_arg0));
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 5: // clearModifyRecord
            {
            try
            {
                _out = handler.createReply();
                _out.write_boolean(clearModifyRecord());
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 6: // getAllRecordByType
            {
            try
            {
                java.lang.String _arg0=_input.read_wstring();
                _out = handler.createReply();
                com.vci.corba.cache.PLCacheRecordArrayHelper.write(_out,getAllRecordByType(_arg0));
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 7: // reloadCache
            {
            try
            {
                _out = handler.createReply();
                _out.write_boolean(reloadCache());
            }
            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;
    }
}