📄 accountiteratorpoa.java
字号:
package Bank;
/**
* <ul>
* <li> <b>IDL Source</b> "D:/exp/NewWork/Exp6/src/Bank.idl"
* <li> <b>IDL Name</b> ::Bank::AccountIterator
* <li> <b>Repository Id</b> IDL:Bank/AccountIterator:1.0
* </ul>
* <b>IDL definition:</b>
* <pre>
* interface AccountIterator {
...
};
* </pre>
*/
public abstract class AccountIteratorPOA extends org.omg.PortableServer.Servant implements
org.omg.CORBA.portable.InvokeHandler, Bank.AccountIteratorOperations {
public Bank.AccountIterator _this () {
return Bank.AccountIteratorHelper.narrow(super._this_object());
}
public Bank.AccountIterator _this (org.omg.CORBA.ORB orb) {
return Bank.AccountIteratorHelper.narrow(super._this_object(orb));
}
public java.lang.String[] _all_interfaces (final org.omg.PortableServer.POA poa, final byte[] objectId) {
return __ids;
}
private static java.lang.String[] __ids = {
"IDL:Bank/AccountIterator:1.0"
};
private static java.util.Dictionary _methods = new java.util.Hashtable();
static {
_methods.put("hasNext", new int[] { 0, 0 });
_methods.put("hasPre", new int[] { 0, 1 });
_methods.put("next", new int[] { 0, 2 });
_methods.put("pre", new int[] { 0, 3 });
_methods.put("getTotalPage", new int[] { 0, 4 });
_methods.put("getNowPage", new int[] { 0, 5 });
_methods.put("clean", new int[] { 0, 6 });
_methods.put("returnFirstPage", new int[] { 0, 7 });
_methods.put("returnLastPage", new int[] { 0, 8 });
_methods.put("setNowPage", new int[] { 0, 9 });
}
public org.omg.CORBA.portable.OutputStream _invoke (java.lang.String opName,
org.omg.CORBA.portable.InputStream _input,
org.omg.CORBA.portable.ResponseHandler handler) {
int[] method = (int[]) _methods.get(opName);
if (method == null) {
throw new org.omg.CORBA.BAD_OPERATION();
}
switch (method[0]) {
case 0: {
return Bank.AccountIteratorPOA._invoke(this, method[1], _input, handler);
}
}
throw new org.omg.CORBA.BAD_OPERATION();
}
public static org.omg.CORBA.portable.OutputStream _invoke (Bank.AccountIteratorOperations _self,
int _method_id,
org.omg.CORBA.portable.InputStream _input,
org.omg.CORBA.portable.ResponseHandler _handler) {
org.omg.CORBA.portable.OutputStream _output = null;
{
switch (_method_id) {
case 0: {
boolean _result = _self.hasNext();
_output = _handler.createReply();
_output.write_boolean((boolean)_result);
return _output;
}
case 1: {
boolean _result = _self.hasPre();
_output = _handler.createReply();
_output.write_boolean((boolean)_result);
return _output;
}
case 2: {
java.lang.String sql;
sql = _input.read_string();
Bank.AccountInfo[] _result = _self.next(sql);
_output = _handler.createReply();
Bank.AccountInfoSeqHelper.write(_output, _result);
return _output;
}
case 3: {
Bank.AccountInfo[] _result = _self.pre();
_output = _handler.createReply();
Bank.AccountInfoSeqHelper.write(_output, _result);
return _output;
}
case 4: {
int _result = _self.getTotalPage();
_output = _handler.createReply();
_output.write_long((int)_result);
return _output;
}
case 5: {
int _result = _self.getNowPage();
_output = _handler.createReply();
_output.write_long((int)_result);
return _output;
}
case 6: {
_self.clean();
_output = _handler.createReply();
return _output;
}
case 7: {
Bank.AccountInfo[] _result = _self.returnFirstPage();
_output = _handler.createReply();
Bank.AccountInfoSeqHelper.write(_output, _result);
return _output;
}
case 8: {
Bank.AccountInfo[] _result = _self.returnLastPage();
_output = _handler.createReply();
Bank.AccountInfoSeqHelper.write(_output, _result);
return _output;
}
case 9: {
int nowPage;
nowPage = _input.read_long();
_self.setNowPage(nowPage);
_output = _handler.createReply();
return _output;
}
}
throw new org.omg.CORBA.BAD_OPERATION();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -