📄 _accountmanagerstub.java
字号:
package Bank;
/**
* <ul>
* <li> <b>IDL Source</b> "Bank.idl"
* <li> <b>IDL Name</b> ::Bank::AccountManager
* <li> <b>Repository Id</b> IDL:Bank/AccountManager:1.0
* </ul>
* <b>IDL definition:</b>
* <pre>
* interface AccountManager {
...
};
* </pre>
*/
public class _AccountManagerStub extends com.inprise.vbroker.CORBA.portable.ObjectImpl implements Bank.AccountManager {
final public static java.lang.Class _opsClass = Bank.AccountManagerOperations.class;
public java.lang.String[] _ids () {
return __ids;
}
private static java.lang.String[] __ids = {
"IDL:Bank/AccountManager:1.0"
};
/**
* <pre>
* Bank.Account open (in string name);
* </pre>
*/
public Bank.Account open (java.lang.String name) {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
Bank.Account _result;
try {
_output = this._request("open", true);
_output.write_string((java.lang.String)name);
_input = this._invoke(_output);
_result = Bank.AccountHelper.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("open", _opsClass);
if (_so == null) {
continue;
}
final Bank.AccountManagerOperations _self = (Bank.AccountManagerOperations)_so.servant;
try {
return _self.open(name);
}
finally {
_servant_postinvoke(_so);
}
}
}
}
/**
* <pre>
* Bank.Account getAccountById (in string id)
raises (Bank.RecordIsNullException);
* </pre>
*/
public Bank.Account getAccountById (java.lang.String id) throws Bank.RecordIsNullException {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
Bank.Account _result;
try {
_output = this._request("getAccountById", true);
_output.write_string((java.lang.String)id);
_input = this._invoke(_output);
_result = Bank.AccountHelper.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();
if (_exception_id.equals(Bank.RecordIsNullExceptionHelper.id())) {
throw Bank.RecordIsNullExceptionHelper.read(_exception.getInputStream());
}
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("getAccountById", _opsClass);
if (_so == null) {
continue;
}
final Bank.AccountManagerOperations _self = (Bank.AccountManagerOperations)_so.servant;
try {
return _self.getAccountById(id);
}
finally {
_servant_postinvoke(_so);
}
}
}
}
/**
* <pre>
* Bank.Account getAccountByIdNotpooling (in string id)
raises (Bank.RecordIsNullException);
* </pre>
*/
public Bank.Account getAccountByIdNotpooling (java.lang.String id) throws Bank.RecordIsNullException {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
Bank.Account _result;
try {
_output = this._request("getAccountByIdNotpooling", true);
_output.write_string((java.lang.String)id);
_input = this._invoke(_output);
_result = Bank.AccountHelper.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();
if (_exception_id.equals(Bank.RecordIsNullExceptionHelper.id())) {
throw Bank.RecordIsNullExceptionHelper.read(_exception.getInputStream());
}
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("getAccountByIdNotpooling", _opsClass);
if (_so == null) {
continue;
}
final Bank.AccountManagerOperations _self = (Bank.AccountManagerOperations)_so.servant;
try {
return _self.getAccountByIdNotpooling(id);
}
finally {
_servant_postinvoke(_so);
}
}
}
}
/**
* <pre>
* void close (in string id);
* </pre>
*/
public void close (java.lang.String id) {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
try {
_output = this._request("close", true);
_output.write_string((java.lang.String)id);
_input = this._invoke(_output);
}
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("close", _opsClass);
if (_so == null) {
continue;
}
final Bank.AccountManagerOperations _self = (Bank.AccountManagerOperations)_so.servant;
try {
_self.close(id);
}
finally {
_servant_postinvoke(_so);
}
}
break;
}
}
/**
* <pre>
* void update (in string id, in string name, in float balance);
* </pre>
*/
public void update (java.lang.String id,
java.lang.String name,
float balance) {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
try {
_output = this._request("update", true);
_output.write_string((java.lang.String)id);
_output.write_string((java.lang.String)name);
_output.write_float((float)balance);
_input = this._invoke(_output);
}
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("update", _opsClass);
if (_so == null) {
continue;
}
final Bank.AccountManagerOperations _self = (Bank.AccountManagerOperations)_so.servant;
try {
_self.update(id, name, balance);
}
finally {
_servant_postinvoke(_so);
}
}
break;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -