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 m_opsHash = new java.util.HashMap(); 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; } }