📄 _bookstub.java
字号:
package BookStore;
/**
* <ul>
* <li> <b>IDL Source</b> "BookStore.idl"
* <li> <b>IDL Name</b> ::BookStore::Book
* <li> <b>Repository Id</b> IDL:BookStore/Book:1.0
* </ul>
* <b>IDL definition:</b>
* <pre>
* interface Book {
...
};
* </pre>
*/
public class _BookStub extends com.inprise.vbroker.CORBA.portable.ObjectImpl implements BookStore.Book {
final public static java.lang.Class _opsClass = BookStore.BookOperations.class;
public java.lang.String[] _ids () {
return __ids;
}
private static java.lang.String[] __ids = {
"IDL:BookStore/Book:1.0"
};
/**
* <pre>
* attribute string name;
* </pre>
*/
public java.lang.String name () {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
java.lang.String _result;
try {
_output = this._request("_get_name", true);
_input = this._invoke(_output);
_result = _input.read_string();
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("_get_name", _opsClass);
if (_so == null) {
continue;
}
final BookStore.BookOperations _self = (BookStore.BookOperations)_so.servant;
try {
return _self.name();
}
finally {
_servant_postinvoke(_so);
}
}
}
}
/**
* <pre>
* attribute string name;
* </pre>
*/
public void name (java.lang.String name) {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
try {
_output = this._request("_set_name", true);
_output.write_string((java.lang.String)name);
_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("_set_name", _opsClass);
if (_so == null) {
continue;
}
final BookStore.BookOperations _self = (BookStore.BookOperations)_so.servant;
try {
_self.name(name);
}
finally {
_servant_postinvoke(_so);
}
}
break;
}
}
/**
* <pre>
* attribute string author;
* </pre>
*/
public java.lang.String author () {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
java.lang.String _result;
try {
_output = this._request("_get_author", true);
_input = this._invoke(_output);
_result = _input.read_string();
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("_get_author", _opsClass);
if (_so == null) {
continue;
}
final BookStore.BookOperations _self = (BookStore.BookOperations)_so.servant;
try {
return _self.author();
}
finally {
_servant_postinvoke(_so);
}
}
}
}
/**
* <pre>
* attribute string author;
* </pre>
*/
public void author (java.lang.String author) {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
try {
_output = this._request("_set_author", true);
_output.write_string((java.lang.String)author);
_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("_set_author", _opsClass);
if (_so == null) {
continue;
}
final BookStore.BookOperations _self = (BookStore.BookOperations)_so.servant;
try {
_self.author(author);
}
finally {
_servant_postinvoke(_so);
}
}
break;
}
}
/**
* <pre>
* attribute string isbn;
* </pre>
*/
public java.lang.String isbn () {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
java.lang.String _result;
try {
_output = this._request("_get_isbn", true);
_input = this._invoke(_output);
_result = _input.read_string();
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("_get_isbn", _opsClass);
if (_so == null) {
continue;
}
final BookStore.BookOperations _self = (BookStore.BookOperations)_so.servant;
try {
return _self.isbn();
}
finally {
_servant_postinvoke(_so);
}
}
}
}
/**
* <pre>
* attribute string isbn;
* </pre>
*/
public void isbn (java.lang.String isbn) {
while (true) {
if (!_is_local()) {
org.omg.CORBA.portable.OutputStream _output = null;
org.omg.CORBA.portable.InputStream _input = null;
try {
_output = this._request("_set_isbn", true);
_output.write_string((java.lang.String)isbn);
_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("_set_isbn", _opsClass);
if (_so == null) {
continue;
}
final BookStore.BookOperations _self = (BookStore.BookOperations)_so.servant;
try {
_self.isbn(isbn);
}
finally {
_servant_postinvoke(_so);
}
}
break;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -