wangting
2025-01-16 18c43123b51a1688ab4ae01fe3d171c7d92e619b
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
package com.vci.corba.omd.lifecycleManager;
 
 
/**
 * Generated from IDL interface "LifeCycleService".
 *
 * @author JacORB IDL compiler V 3.9
 * @version generated at 2022-12-23 15:42:24
 */
 
public abstract class LifeCycleServicePOA
    extends org.omg.PortableServer.Servant
    implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.omd.lifecycleManager.LifeCycleServiceOperations
{
    static private final java.util.HashMap<String,Integer> m_opsHash = new java.util.HashMap<String,Integer>();
    static
    {
        m_opsHash.put ( "deleteLifeCycles", Integer.valueOf(0));
        m_opsHash.put ( "modifyLifeCycle", Integer.valueOf(1));
        m_opsHash.put ( "recordTransitionHistory", Integer.valueOf(2));
        m_opsHash.put ( "getLifeCycleEventViewSavePath", Integer.valueOf(3));
        m_opsHash.put ( "deleteLifeCycle", Integer.valueOf(4));
        m_opsHash.put ( "xml2DB", Integer.valueOf(5));
        m_opsHash.put ( "getLCEventValueByKey", Integer.valueOf(6));
        m_opsHash.put ( "getLifeCycle", Integer.valueOf(7));
        m_opsHash.put ( "getLifeCycleEventPath", Integer.valueOf(8));
        m_opsHash.put ( "getLifeCycles", Integer.valueOf(9));
        m_opsHash.put ( "getLifeCycleEventViewPath", Integer.valueOf(10));
        m_opsHash.put ( "get_lifecycle_event_path", Integer.valueOf(11));
        m_opsHash.put ( "addLifeCycle", Integer.valueOf(12));
        m_opsHash.put ( "getLCEventKeys", Integer.valueOf(13));
    }
    private String[] ids = {"IDL:com/vci/corba/omd/lifecycleManager/LifeCycleService:1.0"};
    public com.vci.corba.omd.lifecycleManager.LifeCycleService _this()
    {
        org.omg.CORBA.Object __o = _this_object() ;
        com.vci.corba.omd.lifecycleManager.LifeCycleService __r = com.vci.corba.omd.lifecycleManager.LifeCycleServiceHelper.narrow(__o);
        return __r;
    }
    public com.vci.corba.omd.lifecycleManager.LifeCycleService _this(org.omg.CORBA.ORB orb)
    {
        org.omg.CORBA.Object __o = _this_object(orb) ;
        com.vci.corba.omd.lifecycleManager.LifeCycleService __r = com.vci.corba.omd.lifecycleManager.LifeCycleServiceHelper.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: // deleteLifeCycles
            {
            try
            {
                com.vci.corba.omd.lifecycleManager.LifeCycle[] _arg0=com.vci.corba.omd.lifecycleManager.LifeCycleArrayHelper.read(_input);
                _out = handler.createReply();
                _out.write_boolean(deleteLifeCycles(_arg0));
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 1: // modifyLifeCycle
            {
            try
            {
                com.vci.corba.omd.lifecycleManager.LifeCycle _arg0=com.vci.corba.omd.lifecycleManager.LifeCycleHelper.read(_input);
                _out = handler.createReply();
                _out.write_boolean(modifyLifeCycle(_arg0));
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 2: // recordTransitionHistory
            {
            try
            {
                com.vci.corba.omd.lifecycleManager.TransationHistoryRecord _arg0=com.vci.corba.omd.lifecycleManager.TransationHistoryRecordHelper.read(_input);
                _out = handler.createReply();
                _out.write_boolean(recordTransitionHistory(_arg0));
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 3: // getLifeCycleEventViewSavePath
            {
            try
            {
                _out = handler.createReply();
                java.lang.String tmpResult922 = getLifeCycleEventViewSavePath();
_out.write_wstring( tmpResult922 );
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 4: // deleteLifeCycle
            {
            try
            {
                com.vci.corba.omd.lifecycleManager.LifeCycle _arg0=com.vci.corba.omd.lifecycleManager.LifeCycleHelper.read(_input);
                _out = handler.createReply();
                _out.write_boolean(deleteLifeCycle(_arg0));
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 5: // 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 6: // getLCEventValueByKey
            {
            try
            {
                java.lang.String _arg0=_input.read_wstring();
                _out = handler.createReply();
                java.lang.String tmpResult923 = getLCEventValueByKey(_arg0);
_out.write_wstring( tmpResult923 );
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 7: // getLifeCycle
            {
            try
            {
                java.lang.String _arg0=_input.read_wstring();
                _out = handler.createReply();
                com.vci.corba.omd.lifecycleManager.LifeCycleHelper.write(_out,getLifeCycle(_arg0));
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 8: // getLifeCycleEventPath
            {
            try
            {
                _out = handler.createReply();
                java.lang.String tmpResult924 = getLifeCycleEventPath();
_out.write_wstring( tmpResult924 );
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 9: // getLifeCycles
            {
            try
            {
                _out = handler.createReply();
                com.vci.corba.omd.lifecycleManager.LifeCycleArrayHelper.write(_out,getLifeCycles());
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 10: // getLifeCycleEventViewPath
            {
            try
            {
                _out = handler.createReply();
                java.lang.String tmpResult925 = getLifeCycleEventViewPath();
_out.write_wstring( tmpResult925 );
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 11: // get_lifecycle_event_path
            {
            try
            {
                _out = handler.createReply();
                java.lang.String tmpResult926 = get_lifecycle_event_path();
_out.write_wstring( tmpResult926 );
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 12: // addLifeCycle
            {
            try
            {
                com.vci.corba.omd.lifecycleManager.LifeCycle _arg0=com.vci.corba.omd.lifecycleManager.LifeCycleHelper.read(_input);
                _out = handler.createReply();
                _out.write_boolean(addLifeCycle(_arg0));
            }
            catch(com.vci.corba.common.VCIError _ex0)
            {
                _out = handler.createExceptionReply();
                com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
            }
                break;
            }
            case 13: // getLCEventKeys
            {
            try
            {
                _out = handler.createReply();
                com.vci.corba.common.data.WStringArrayHelper.write(_out,getLCEventKeys());
            }
            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;
    }
}