📄 _atmclientstub.java
字号:
package atmserver.ATMDemo;
/**
* <ul>
* <li> <b>IDL Source</b> "E:/su/18/ATMServer/src/atmserver/ATMDemo.idl"
* <li> <b>IDL Name</b> ::ATMDemo::ATMClient
* <li> <b>Repository Id</b> IDL:ATMDemo/ATMClient:1.0
* </ul>
* <b>IDL definition:</b>
* <pre>
* interface ATMClient {
...
};
* </pre>
*/
public class _ATMClientStub extends com.inprise.vbroker.CORBA.portable.ObjectImpl implements atmserver.ATMDemo.ATMClient {
final public static java.lang.Class _opsClass = atmserver.ATMDemo.ATMClientOperations.class;
public java.lang.String[] _ids () {
return __ids;
}
private static java.lang.String[] __ids = {
"IDL:ATMDemo/ATMClient:1.0"
};
/**
* <pre>
* boolean deposit (in float number);
* </pre>
*/
public boolean deposit (float number) {
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("deposit", true);
_output.write_float((float)number);
_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("deposit", _opsClass);
if (_so == null) {
continue;
}
final atmserver.ATMDemo.ATMClientOperations _self = (atmserver.ATMDemo.ATMClientOperations)_so.servant;
try {
return _self.deposit(number);
}
finally {
_servant_postinvoke(_so);
}
}
}
}
/**
* <pre>
* boolean retrive (in float number);
* </pre>
*/
public boolean retrive (float number) {
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("retrive", true);
_output.write_float((float)number);
_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("retrive", _opsClass);
if (_so == null) {
continue;
}
final atmserver.ATMDemo.ATMClientOperations _self = (atmserver.ATMDemo.ATMClientOperations)_so.servant;
try {
return _self.retrive(number);
}
finally {
_servant_postinvoke(_so);
}
}
}
}
/**
* <pre>
* float getBalance (in string name);
* </pre>
*/
public float getBalance (java.lang.String name) {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
float _result;
try {
_output = this._request("getBalance", true);
_output.write_string((java.lang.String)name);
_input = this._invoke(_output);
_result = _input.read_float();
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("getBalance", _opsClass);
if (_so == null) {
continue;
}
final atmserver.ATMDemo.ATMClientOperations _self = (atmserver.ATMDemo.ATMClientOperations)_so.servant;
try {
return _self.getBalance(name);
}
finally {
_servant_postinvoke(_so);
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -