⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _atmserverstub.java

📁 java初学者适用的源码一共分成15章每章都有配套源码,简单易用
💻 JAVA
字号:
package atmclient.ATMDemo;

/**
 * <ul>
 * <li> <b>IDL Source</b>    "E:/su/18/ATMClient/src/atmclient/ATMDemo.idl"
 * <li> <b>IDL Name</b>      ::ATMDemo::ATMServer
 * <li> <b>Repository Id</b> IDL:ATMDemo/ATMServer:1.0
 * </ul>
 * <b>IDL definition:</b>
 * <pre>
 * interface ATMServer {
  ...
};
 * </pre>
 */
public class _ATMServerStub extends com.inprise.vbroker.CORBA.portable.ObjectImpl implements atmclient.ATMDemo.ATMServer {
  final public static java.lang.Class _opsClass = atmclient.ATMDemo.ATMServerOperations.class;

  public java.lang.String[] _ids () {
    return __ids;
  }

  private static java.lang.String[] __ids = {
    "IDL:ATMDemo/ATMServer:1.0"
  };

  /**
   * <pre>
   *   boolean openAccount (in atmclient.ATMDemo.info personalInfo);
   * </pre>
   */
  public boolean openAccount (atmclient.ATMDemo.registerInfo personalInfo) {

    while (true) {
      if (!_is_local()) {
        org.omg.CORBA.portable.OutputStream _output = null;
        org.omg.CORBA.portable.InputStream  _input  = null;
        boolean _result;
        try {
          _output = this._request("openAccount", true);
          atmclient.ATMDemo.registerInfoHelper.write(_output, personalInfo);
          _input = this._invoke(_output);
          _result = _input.read_boolean();
          return _result;
        }
        catch (org.omg.CORBA.portable.ApplicationException _exception) {
          final org.omg.CORBA.portable.InputStream in = _exception.getInputStream();
          java.lang.String _exception_id = _exception.getId();
          throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _exception_id);
        }
        catch (org.omg.CORBA.portable.RemarshalException _exception) {
          continue;
        }
        finally {
          this._releaseReply(_input);
        }
      } else {
        final org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("openAccount", _opsClass);
        if (_so == null) {
          continue;
        }
        final atmclient.ATMDemo.ATMServerOperations _self = (atmclient.ATMDemo.ATMServerOperations)_so.servant;
        try {
          return _self.openAccount(personalInfo);
        }
        finally {
          _servant_postinvoke(_so);
        }
      }
    }
  }

  /**
   * <pre>
   *   atmclient.ATMDemo.ATMClient getClient (in string name);
   * </pre>
   */
  public atmclient.ATMDemo.ATMClient getClient (java.lang.String name) {

    while (true) {
      if (!_is_local()) {
        org.omg.CORBA.portable.OutputStream _output = null;
        org.omg.CORBA.portable.InputStream  _input  = null;
        atmclient.ATMDemo.ATMClient _result;
        try {
          _output = this._request("getClient", true);
          _output.write_string((java.lang.String)name);
          _input = this._invoke(_output);
          _result = atmclient.ATMDemo.ATMClientHelper.read(_input);
          return _result;
        }
        catch (org.omg.CORBA.portable.ApplicationException _exception) {
          final org.omg.CORBA.portable.InputStream in = _exception.getInputStream();
          java.lang.String _exception_id = _exception.getId();
          throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _exception_id);
        }
        catch (org.omg.CORBA.portable.RemarshalException _exception) {
          continue;
        }
        finally {
          this._releaseReply(_input);
        }
      } else {
        final org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("getClient", _opsClass);
        if (_so == null) {
          continue;
        }
        final atmclient.ATMDemo.ATMServerOperations _self = (atmclient.ATMDemo.ATMServerOperations)_so.servant;
        try {
          return _self.getClient(name);
        }
        finally {
          _servant_postinvoke(_so);
        }
      }
    }
  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -