1 4 package hero.interfaces; 5 6 public final class JOnASUserService1658020123Home_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.UserServiceHome, java.rmi.Remote , javax.ejb.EJBHome 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("hero.interfaces.UserService create()"), 12 new java.rmi.server.Operation ("javax.ejb.EJBMetaData getEJBMetaData()"), 13 new java.rmi.server.Operation ("javax.ejb.HomeHandle getHomeHandle()"), 14 new java.rmi.server.Operation ("void remove(java.lang.Object)"), 15 new java.rmi.server.Operation ("void remove(javax.ejb.Handle)") 16 }; 17 18 private static final long interfaceHash = 2917023255967409391L; 19 20 private static final long serialVersionUID = 2; 21 22 private static boolean useNewInvoke; 23 private static java.lang.reflect.Method $method_create_0; 24 private static java.lang.reflect.Method $method_getEJBMetaData_1; 25 private static java.lang.reflect.Method $method_getHomeHandle_2; 26 private static java.lang.reflect.Method $method_remove_3; 27 private static java.lang.reflect.Method $method_remove_4; 28 29 static { 30 try { 31 java.rmi.server.RemoteRef .class.getMethod("invoke", 32 new java.lang.Class [] { 33 java.rmi.Remote .class, 34 java.lang.reflect.Method .class, 35 java.lang.Object [].class, 36 long.class 37 }); 38 useNewInvoke = true; 39 $method_create_0 = hero.interfaces.UserServiceHome.class.getMethod("create", new java.lang.Class [] {}); 40 $method_getEJBMetaData_1 = javax.ejb.EJBHome .class.getMethod("getEJBMetaData", new java.lang.Class [] {}); 41 $method_getHomeHandle_2 = javax.ejb.EJBHome .class.getMethod("getHomeHandle", new java.lang.Class [] {}); 42 $method_remove_3 = javax.ejb.EJBHome .class.getMethod("remove", new java.lang.Class [] {java.lang.Object .class}); 43 $method_remove_4 = javax.ejb.EJBHome .class.getMethod("remove", new java.lang.Class [] {javax.ejb.Handle .class}); 44 } catch (java.lang.NoSuchMethodException e) { 45 useNewInvoke = false; 46 } 47 } 48 49 public JOnASUserService1658020123Home_Stub() { 51 super(); 52 } 53 public JOnASUserService1658020123Home_Stub(java.rmi.server.RemoteRef ref) { 54 super(ref); 55 } 56 57 59 public hero.interfaces.UserService create() 61 throws java.rmi.RemoteException , javax.ejb.CreateException 62 { 63 try { 64 if (useNewInvoke) { 65 Object $result = ref.invoke(this, $method_create_0, null, -856188910294697090L); 66 return ((hero.interfaces.UserService) $result); 67 } else { 68 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 0, interfaceHash); 69 ref.invoke(call); 70 hero.interfaces.UserService $result; 71 try { 72 java.io.ObjectInput in = call.getInputStream(); 73 $result = (hero.interfaces.UserService) in.readObject(); 74 } catch (java.io.IOException e) { 75 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 76 } catch (java.lang.ClassNotFoundException e) { 77 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 78 } finally { 79 ref.done(call); 80 } 81 return $result; 82 } 83 } catch (java.lang.RuntimeException e) { 84 throw e; 85 } catch (java.rmi.RemoteException e) { 86 throw e; 87 } catch (javax.ejb.CreateException e) { 88 throw e; 89 } catch (java.lang.Exception e) { 90 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 91 } 92 } 93 94 public javax.ejb.EJBMetaData getEJBMetaData() 96 throws java.rmi.RemoteException 97 { 98 try { 99 if (useNewInvoke) { 100 Object $result = ref.invoke(this, $method_getEJBMetaData_1, null, 6217030353865232067L); 101 return ((javax.ejb.EJBMetaData ) $result); 102 } else { 103 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 1, interfaceHash); 104 ref.invoke(call); 105 javax.ejb.EJBMetaData $result; 106 try { 107 java.io.ObjectInput in = call.getInputStream(); 108 $result = (javax.ejb.EJBMetaData ) in.readObject(); 109 } catch (java.io.IOException e) { 110 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 111 } catch (java.lang.ClassNotFoundException e) { 112 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 113 } finally { 114 ref.done(call); 115 } 116 return $result; 117 } 118 } catch (java.lang.RuntimeException e) { 119 throw e; 120 } catch (java.rmi.RemoteException e) { 121 throw e; 122 } catch (java.lang.Exception e) { 123 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 124 } 125 } 126 127 public javax.ejb.HomeHandle getHomeHandle() 129 throws java.rmi.RemoteException 130 { 131 try { 132 if (useNewInvoke) { 133 Object $result = ref.invoke(this, $method_getHomeHandle_2, null, -8748260460775500658L); 134 return ((javax.ejb.HomeHandle ) $result); 135 } else { 136 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 137 ref.invoke(call); 138 javax.ejb.HomeHandle $result; 139 try { 140 java.io.ObjectInput in = call.getInputStream(); 141 $result = (javax.ejb.HomeHandle ) in.readObject(); 142 } catch (java.io.IOException e) { 143 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 144 } catch (java.lang.ClassNotFoundException e) { 145 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 146 } finally { 147 ref.done(call); 148 } 149 return $result; 150 } 151 } catch (java.lang.RuntimeException e) { 152 throw e; 153 } catch (java.rmi.RemoteException e) { 154 throw e; 155 } catch (java.lang.Exception e) { 156 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 157 } 158 } 159 160 public void remove(java.lang.Object $param_Object_1) 162 throws java.rmi.RemoteException , javax.ejb.RemoveException 163 { 164 try { 165 if (useNewInvoke) { 166 ref.invoke(this, $method_remove_3, new java.lang.Object [] {$param_Object_1}, 4460578865329725433L); 167 } else { 168 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 169 try { 170 java.io.ObjectOutput out = call.getOutputStream(); 171 out.writeObject($param_Object_1); 172 } catch (java.io.IOException e) { 173 throw new java.rmi.MarshalException ("error marshalling arguments", e); 174 } 175 ref.invoke(call); 176 ref.done(call); 177 } 178 } catch (java.lang.RuntimeException e) { 179 throw e; 180 } catch (java.rmi.RemoteException e) { 181 throw e; 182 } catch (javax.ejb.RemoveException e) { 183 throw e; 184 } catch (java.lang.Exception e) { 185 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 186 } 187 } 188 189 public void remove(javax.ejb.Handle $param_Handle_1) 191 throws java.rmi.RemoteException , javax.ejb.RemoveException 192 { 193 try { 194 if (useNewInvoke) { 195 ref.invoke(this, $method_remove_4, new java.lang.Object [] {$param_Handle_1}, 1121126102706750000L); 196 } else { 197 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 198 try { 199 java.io.ObjectOutput out = call.getOutputStream(); 200 out.writeObject($param_Handle_1); 201 } catch (java.io.IOException e) { 202 throw new java.rmi.MarshalException ("error marshalling arguments", e); 203 } 204 ref.invoke(call); 205 ref.done(call); 206 } 207 } catch (java.lang.RuntimeException e) { 208 throw e; 209 } catch (java.rmi.RemoteException e) { 210 throw e; 211 } catch (javax.ejb.RemoveException e) { 212 throw e; 213 } catch (java.lang.Exception e) { 214 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 215 } 216 } 217 } 218 | Popular Tags |