package com.vci.corba.omd.versionRuleManager; /** * Generated from IDL interface "VersionRuleService". * * @author JacORB IDL compiler V 3.9 * @version generated at 2022-12-23 15:42:24 */ public abstract class VersionRuleServicePOA extends org.omg.PortableServer.Servant implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.omd.versionRuleManager.VersionRuleServiceOperations { static private final java.util.HashMap m_opsHash = new java.util.HashMap(); static { m_opsHash.put ( "getVersionRule", Integer.valueOf(0)); m_opsHash.put ( "deleteVersionRule", Integer.valueOf(1)); m_opsHash.put ( "addVersionRule", Integer.valueOf(2)); m_opsHash.put ( "xml2DB", Integer.valueOf(3)); m_opsHash.put ( "getVersionRules", Integer.valueOf(4)); m_opsHash.put ( "modifyVersionRule", Integer.valueOf(5)); m_opsHash.put ( "deleteVersionRules", Integer.valueOf(6)); } private String[] ids = {"IDL:com/vci/corba/omd/versionRuleManager/VersionRuleService:1.0"}; public com.vci.corba.omd.versionRuleManager.VersionRuleService _this() { org.omg.CORBA.Object __o = _this_object() ; com.vci.corba.omd.versionRuleManager.VersionRuleService __r = com.vci.corba.omd.versionRuleManager.VersionRuleServiceHelper.narrow(__o); return __r; } public com.vci.corba.omd.versionRuleManager.VersionRuleService _this(org.omg.CORBA.ORB orb) { org.omg.CORBA.Object __o = _this_object(orb) ; com.vci.corba.omd.versionRuleManager.VersionRuleService __r = com.vci.corba.omd.versionRuleManager.VersionRuleServiceHelper.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: // getVersionRule { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.omd.versionRuleManager.VersionRuleHelper.write(_out,getVersionRule(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 1: // deleteVersionRule { try { com.vci.corba.omd.versionRuleManager.VersionRule _arg0=com.vci.corba.omd.versionRuleManager.VersionRuleHelper.read(_input); _out = handler.createReply(); _out.write_boolean(deleteVersionRule(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 2: // addVersionRule { try { com.vci.corba.omd.versionRuleManager.VersionRule _arg0=com.vci.corba.omd.versionRuleManager.VersionRuleHelper.read(_input); _out = handler.createReply(); _out.write_boolean(addVersionRule(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 3: // 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 4: // getVersionRules { try { _out = handler.createReply(); com.vci.corba.omd.versionRuleManager.VersionRuleArrayHelper.write(_out,getVersionRules()); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 5: // modifyVersionRule { try { com.vci.corba.omd.versionRuleManager.VersionRule _arg0=com.vci.corba.omd.versionRuleManager.VersionRuleHelper.read(_input); _out = handler.createReply(); _out.write_boolean(modifyVersionRule(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 6: // deleteVersionRules { try { com.vci.corba.omd.versionRuleManager.VersionRule[] _arg0=com.vci.corba.omd.versionRuleManager.VersionRuleArrayHelper.read(_input); _out = handler.createReply(); _out.write_boolean(deleteVersionRules(_arg0)); } 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; } }