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 class _VersionRuleServiceStub extends org.omg.CORBA.portable.ObjectImpl implements com.vci.corba.omd.versionRuleManager.VersionRuleService { /** Serial version UID. */ private static final long serialVersionUID = 1L; private String[] ids = {"IDL:com/vci/corba/omd/versionRuleManager/VersionRuleService:1.0"}; public String[] _ids() { return ids; } public final static java.lang.Class _opsClass = com.vci.corba.omd.versionRuleManager.VersionRuleServiceOperations.class; public com.vci.corba.omd.versionRuleManager.VersionRule getVersionRule(java.lang.String name) throws com.vci.corba.common.VCIError { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; org.omg.CORBA.portable.OutputStream _os = null; try { _os = _request( "getVersionRule", true); java.lang.String tmpResult943 = name; _os.write_wstring( tmpResult943 ); _is = _invoke(_os); com.vci.corba.omd.versionRuleManager.VersionRule _result = com.vci.corba.omd.versionRuleManager.VersionRuleHelper.read(_is); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ) { continue; } catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); try { if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0")) { throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream()); } else { throw new RuntimeException("Unexpected exception " + _id ); } } finally { try { _ax.getInputStream().close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } } finally { if (_os != null) { try { _os.close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getVersionRule", _opsClass ); if( _so == null ) continue; VersionRuleServiceOperations _localServant = (VersionRuleServiceOperations)_so.servant; com.vci.corba.omd.versionRuleManager.VersionRule _result; try { _result = _localServant.getVersionRule(name); if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); return _result; } catch (com.vci.corba.common.VCIError ex) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex); throw ex; } catch (RuntimeException re) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); throw re; } catch (java.lang.Error err) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); throw err; } finally { _servant_postinvoke(_so); } } } } public boolean deleteVersionRule(com.vci.corba.omd.versionRuleManager.VersionRule vr) throws com.vci.corba.common.VCIError { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; org.omg.CORBA.portable.OutputStream _os = null; try { _os = _request( "deleteVersionRule", true); com.vci.corba.omd.versionRuleManager.VersionRuleHelper.write(_os,vr); _is = _invoke(_os); boolean _result = _is.read_boolean(); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ) { continue; } catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); try { if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0")) { throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream()); } else { throw new RuntimeException("Unexpected exception " + _id ); } } finally { try { _ax.getInputStream().close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } } finally { if (_os != null) { try { _os.close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "deleteVersionRule", _opsClass ); if( _so == null ) continue; VersionRuleServiceOperations _localServant = (VersionRuleServiceOperations)_so.servant; boolean _result; try { _result = _localServant.deleteVersionRule(vr); if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); return _result; } catch (com.vci.corba.common.VCIError ex) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex); throw ex; } catch (RuntimeException re) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); throw re; } catch (java.lang.Error err) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); throw err; } finally { _servant_postinvoke(_so); } } } } public boolean addVersionRule(com.vci.corba.omd.versionRuleManager.VersionRule vr) throws com.vci.corba.common.VCIError { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; org.omg.CORBA.portable.OutputStream _os = null; try { _os = _request( "addVersionRule", true); com.vci.corba.omd.versionRuleManager.VersionRuleHelper.write(_os,vr); _is = _invoke(_os); boolean _result = _is.read_boolean(); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ) { continue; } catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); try { if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0")) { throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream()); } else { throw new RuntimeException("Unexpected exception " + _id ); } } finally { try { _ax.getInputStream().close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } } finally { if (_os != null) { try { _os.close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "addVersionRule", _opsClass ); if( _so == null ) continue; VersionRuleServiceOperations _localServant = (VersionRuleServiceOperations)_so.servant; boolean _result; try { _result = _localServant.addVersionRule(vr); if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); return _result; } catch (com.vci.corba.common.VCIError ex) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex); throw ex; } catch (RuntimeException re) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); throw re; } catch (java.lang.Error err) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); throw err; } finally { _servant_postinvoke(_so); } } } } public boolean xml2DB(java.lang.String userName) throws com.vci.corba.common.VCIError { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; org.omg.CORBA.portable.OutputStream _os = null; try { _os = _request( "xml2DB", true); java.lang.String tmpResult944 = userName; _os.write_wstring( tmpResult944 ); _is = _invoke(_os); boolean _result = _is.read_boolean(); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ) { continue; } catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); try { if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0")) { throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream()); } else { throw new RuntimeException("Unexpected exception " + _id ); } } finally { try { _ax.getInputStream().close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } } finally { if (_os != null) { try { _os.close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "xml2DB", _opsClass ); if( _so == null ) continue; VersionRuleServiceOperations _localServant = (VersionRuleServiceOperations)_so.servant; boolean _result; try { _result = _localServant.xml2DB(userName); if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); return _result; } catch (com.vci.corba.common.VCIError ex) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex); throw ex; } catch (RuntimeException re) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); throw re; } catch (java.lang.Error err) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); throw err; } finally { _servant_postinvoke(_so); } } } } public com.vci.corba.omd.versionRuleManager.VersionRule[] getVersionRules() throws com.vci.corba.common.VCIError { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; org.omg.CORBA.portable.OutputStream _os = null; try { _os = _request( "getVersionRules", true); _is = _invoke(_os); com.vci.corba.omd.versionRuleManager.VersionRule[] _result = com.vci.corba.omd.versionRuleManager.VersionRuleArrayHelper.read(_is); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ) { continue; } catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); try { if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0")) { throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream()); } else { throw new RuntimeException("Unexpected exception " + _id ); } } finally { try { _ax.getInputStream().close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } } finally { if (_os != null) { try { _os.close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getVersionRules", _opsClass ); if( _so == null ) continue; VersionRuleServiceOperations _localServant = (VersionRuleServiceOperations)_so.servant; com.vci.corba.omd.versionRuleManager.VersionRule[] _result; try { _result = _localServant.getVersionRules(); if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); return _result; } catch (com.vci.corba.common.VCIError ex) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex); throw ex; } catch (RuntimeException re) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); throw re; } catch (java.lang.Error err) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); throw err; } finally { _servant_postinvoke(_so); } } } } public boolean modifyVersionRule(com.vci.corba.omd.versionRuleManager.VersionRule vr) throws com.vci.corba.common.VCIError { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; org.omg.CORBA.portable.OutputStream _os = null; try { _os = _request( "modifyVersionRule", true); com.vci.corba.omd.versionRuleManager.VersionRuleHelper.write(_os,vr); _is = _invoke(_os); boolean _result = _is.read_boolean(); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ) { continue; } catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); try { if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0")) { throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream()); } else { throw new RuntimeException("Unexpected exception " + _id ); } } finally { try { _ax.getInputStream().close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } } finally { if (_os != null) { try { _os.close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "modifyVersionRule", _opsClass ); if( _so == null ) continue; VersionRuleServiceOperations _localServant = (VersionRuleServiceOperations)_so.servant; boolean _result; try { _result = _localServant.modifyVersionRule(vr); if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); return _result; } catch (com.vci.corba.common.VCIError ex) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex); throw ex; } catch (RuntimeException re) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); throw re; } catch (java.lang.Error err) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); throw err; } finally { _servant_postinvoke(_so); } } } } public boolean deleteVersionRules(com.vci.corba.omd.versionRuleManager.VersionRule[] vrs) throws com.vci.corba.common.VCIError { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; org.omg.CORBA.portable.OutputStream _os = null; try { _os = _request( "deleteVersionRules", true); com.vci.corba.omd.versionRuleManager.VersionRuleArrayHelper.write(_os,vrs); _is = _invoke(_os); boolean _result = _is.read_boolean(); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ) { continue; } catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); try { if( _id.equals("IDL:com/vci/corba/common/VCIError:1.0")) { throw com.vci.corba.common.VCIErrorHelper.read(_ax.getInputStream()); } else { throw new RuntimeException("Unexpected exception " + _id ); } } finally { try { _ax.getInputStream().close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } } finally { if (_os != null) { try { _os.close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "deleteVersionRules", _opsClass ); if( _so == null ) continue; VersionRuleServiceOperations _localServant = (VersionRuleServiceOperations)_so.servant; boolean _result; try { _result = _localServant.deleteVersionRules(vrs); if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); return _result; } catch (com.vci.corba.common.VCIError ex) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(ex); throw ex; } catch (RuntimeException re) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); throw re; } catch (java.lang.Error err) { if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); throw err; } finally { _servant_postinvoke(_so); } } } } }