📄 cartpoa.java
字号:
package ejb;
public abstract class CartPOA extends org.omg.PortableServer.Servant implements
org.omg.CORBA.portable.InvokeHandler, ejb.CartOperations {
public ejb.Cart _this () {
return ejb.CartHelper.narrow(super._this_object());
}
public ejb.Cart _this (org.omg.CORBA.ORB orb) {
return ejb.CartHelper.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 = {
"RMI:ejb.Cart:0000000000000000",
"RMI:javax.ejb.EJBObject:0000000000000000"
};
private static java.util.Dictionary _methods = new java.util.Hashtable();
static {
_methods.put("_get_totalPrice", new int[] { 0, 0 });
_methods.put("_get_contents", new int[] { 0, 1 });
_methods.put("purchase", new int[] { 0, 2 });
_methods.put("add", new int[] { 0, 3 });
_methods.put("removeItem", new int[] { 0, 4 });
_methods.put("_get_primaryKey", new int[] { 1, 0 });
_methods.put("_get_handle", new int[] { 1, 1 });
_methods.put("_get_EJBHome", new int[] { 1, 2 });
_methods.put("remove", new int[] { 1, 3 });
_methods.put("isIdentical", new int[] { 1, 4 });
}
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 ejb.CartPOA._invoke(this, method[1], _input, handler);
}
case 1: {
return com.inprise.ejb.javax.ejb.EJBObjectPOA._invoke(this, method[1], _input, handler);
}
}
throw new org.omg.CORBA.BAD_OPERATION();
}
public static org.omg.CORBA.portable.OutputStream _invoke (ejb.CartOperations _self,
int _method_id,
org.omg.CORBA.portable.InputStream _input,
org.omg.CORBA.portable.ResponseHandler _handler) {
org.omg.CORBA.portable.OutputStream _output = null;
try {
switch (_method_id) {
case 0: {
float _result = _self.getTotalPrice();
_output = _handler.createReply();
_output.write_float((float)_result);
return _output;
}
case 1: {
java.util.List _result = _self.getContents();
_output = _handler.createReply();
((org.omg.CORBA_2_3.portable.OutputStream)_output).write_value((java.io.Serializable)_result);
return _output;
}
case 2: {
_self.purchase();
_output = _handler.createReply();
return _output;
}
case 3: {
ejb.Item arg0;
arg0 = (ejb.Item)((org.omg.CORBA_2_3.portable.InputStream)_input).read_value(ejb.Item.class);
_self.add(arg0);
_output = _handler.createReply();
return _output;
}
case 4: {
ejb.Item arg0;
arg0 = (ejb.Item)((org.omg.CORBA_2_3.portable.InputStream)_input).read_value(ejb.Item.class);
_self.removeItem(arg0);
_output = _handler.createReply();
return _output;
}
}
throw new org.omg.CORBA.BAD_OPERATION();
}
catch (org.omg.CORBA.SystemException ex) {
throw ex;
}
catch (Throwable ex) {
throw new org.omg.CORBA.portable.UnknownException(ex);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -