📄 carthomepoa.java
字号:
package ejb;
public abstract class CartHomePOA extends org.omg.PortableServer.Servant implements
org.omg.CORBA.portable.InvokeHandler, ejb.CartHomeOperations {
public ejb.CartHome _this () {
return ejb.CartHomeHelper.narrow(super._this_object());
}
public ejb.CartHome _this (org.omg.CORBA.ORB orb) {
return ejb.CartHomeHelper.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.CartHome:0000000000000000",
"RMI:javax.ejb.EJBHome:0000000000000000"
};
private static java.util.Dictionary _methods = new java.util.Hashtable();
static {
_methods.put("create", new int[] { 0, 0 });
_methods.put("_get_EJBMetaData", new int[] { 1, 0 });
_methods.put("_get_homeHandle", new int[] { 1, 1 });
_methods.put("remove__javax_ejb_Handle", new int[] { 1, 2 });
_methods.put("remove__java_lang_Object", new int[] { 1, 3 });
}
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.CartHomePOA._invoke(this, method[1], _input, handler);
}
case 1: {
return com.inprise.ejb.javax.ejb.EJBHomePOA._invoke(this, method[1], _input, handler);
}
}
throw new org.omg.CORBA.BAD_OPERATION();
}
public static org.omg.CORBA.portable.OutputStream _invoke (ejb.CartHomeOperations _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: {
try {
java.lang.String arg0;
arg0 = org.omg.CORBA.WStringValueHelper.read(_input);
java.lang.String arg1;
arg1 = org.omg.CORBA.WStringValueHelper.read(_input);
java.util.Date arg2;
arg2 = (java.util.Date)((org.omg.CORBA_2_3.portable.InputStream)_input).read_value(java.util.Date.class);
ejb.Cart _result = _self.create(arg0, arg1, arg2);
_output = _handler.createReply();
//FIX: Cannot use helper class because of potential stub downloading
_output.write_Object((org.omg.CORBA.Object)_result);
}
catch (java.rmi.RemoteException e) {
throw e;
}
catch (javax.ejb.CreateException _exception) {
_output = _handler.createExceptionReply();
_output.write_string("IDL:javax/ejb/CreateEx:1.0");
((org.omg.CORBA_2_3.portable.OutputStream)_output).write_value(_exception);
}
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 + -