1 4 package hero.interfaces; 5 6 public final class JOnASUserService1658020123Remote_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.UserService, java.rmi.Remote , javax.ejb.EJBObject 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("hero.interfaces.BnUserLocal findUser(java.lang.String)"), 12 new java.rmi.server.Operation ("hero.interfaces.BnUserLocal findUserLocal(java.lang.String)"), 13 new java.rmi.server.Operation ("java.util.Collection findUsers()"), 14 new java.rmi.server.Operation ("javax.ejb.EJBHome getEJBHome()"), 15 new java.rmi.server.Operation ("javax.ejb.Handle getHandle()"), 16 new java.rmi.server.Operation ("java.lang.Object getPrimaryKey()"), 17 new java.rmi.server.Operation ("java.util.Map getUserInfos(java.lang.String)"), 18 new java.rmi.server.Operation ("boolean isIdentical(javax.ejb.EJBObject)"), 19 new java.rmi.server.Operation ("void remove()") 20 }; 21 22 private static final long interfaceHash = 906295115444324314L; 23 24 private static final long serialVersionUID = 2; 25 26 private static boolean useNewInvoke; 27 private static java.lang.reflect.Method $method_findUser_0; 28 private static java.lang.reflect.Method $method_findUserLocal_1; 29 private static java.lang.reflect.Method $method_findUsers_2; 30 private static java.lang.reflect.Method $method_getEJBHome_3; 31 private static java.lang.reflect.Method $method_getHandle_4; 32 private static java.lang.reflect.Method $method_getPrimaryKey_5; 33 private static java.lang.reflect.Method $method_getUserInfos_6; 34 private static java.lang.reflect.Method $method_isIdentical_7; 35 private static java.lang.reflect.Method $method_remove_8; 36 37 static { 38 try { 39 java.rmi.server.RemoteRef .class.getMethod("invoke", 40 new java.lang.Class [] { 41 java.rmi.Remote .class, 42 java.lang.reflect.Method .class, 43 java.lang.Object [].class, 44 long.class 45 }); 46 useNewInvoke = true; 47 $method_findUser_0 = hero.interfaces.UserService.class.getMethod("findUser", new java.lang.Class [] {java.lang.String .class}); 48 $method_findUserLocal_1 = hero.interfaces.UserService.class.getMethod("findUserLocal", new java.lang.Class [] {java.lang.String .class}); 49 $method_findUsers_2 = hero.interfaces.UserService.class.getMethod("findUsers", new java.lang.Class [] {}); 50 $method_getEJBHome_3 = javax.ejb.EJBObject .class.getMethod("getEJBHome", new java.lang.Class [] {}); 51 $method_getHandle_4 = javax.ejb.EJBObject .class.getMethod("getHandle", new java.lang.Class [] {}); 52 $method_getPrimaryKey_5 = javax.ejb.EJBObject .class.getMethod("getPrimaryKey", new java.lang.Class [] {}); 53 $method_getUserInfos_6 = hero.interfaces.UserService.class.getMethod("getUserInfos", new java.lang.Class [] {java.lang.String .class}); 54 $method_isIdentical_7 = javax.ejb.EJBObject .class.getMethod("isIdentical", new java.lang.Class [] {javax.ejb.EJBObject .class}); 55 $method_remove_8 = javax.ejb.EJBObject .class.getMethod("remove", new java.lang.Class [] {}); 56 } catch (java.lang.NoSuchMethodException e) { 57 useNewInvoke = false; 58 } 59 } 60 61 public JOnASUserService1658020123Remote_Stub() { 63 super(); 64 } 65 public JOnASUserService1658020123Remote_Stub(java.rmi.server.RemoteRef ref) { 66 super(ref); 67 } 68 69 71 public hero.interfaces.BnUserLocal findUser(java.lang.String $param_String_1) 73 throws hero.util.HeroException, java.rmi.RemoteException 74 { 75 try { 76 if (useNewInvoke) { 77 Object $result = ref.invoke(this, $method_findUser_0, new java.lang.Object [] {$param_String_1}, 2861884526190364653L); 78 return ((hero.interfaces.BnUserLocal) $result); 79 } else { 80 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 0, interfaceHash); 81 try { 82 java.io.ObjectOutput out = call.getOutputStream(); 83 out.writeObject($param_String_1); 84 } catch (java.io.IOException e) { 85 throw new java.rmi.MarshalException ("error marshalling arguments", e); 86 } 87 ref.invoke(call); 88 hero.interfaces.BnUserLocal $result; 89 try { 90 java.io.ObjectInput in = call.getInputStream(); 91 $result = (hero.interfaces.BnUserLocal) in.readObject(); 92 } catch (java.io.IOException e) { 93 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 94 } catch (java.lang.ClassNotFoundException e) { 95 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 96 } finally { 97 ref.done(call); 98 } 99 return $result; 100 } 101 } catch (java.lang.RuntimeException e) { 102 throw e; 103 } catch (java.rmi.RemoteException e) { 104 throw e; 105 } catch (hero.util.HeroException e) { 106 throw e; 107 } catch (java.lang.Exception e) { 108 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 109 } 110 } 111 112 public hero.interfaces.BnUserLocal findUserLocal(java.lang.String $param_String_1) 114 throws hero.util.HeroException, java.rmi.RemoteException 115 { 116 try { 117 if (useNewInvoke) { 118 Object $result = ref.invoke(this, $method_findUserLocal_1, new java.lang.Object [] {$param_String_1}, -5773048371744554314L); 119 return ((hero.interfaces.BnUserLocal) $result); 120 } else { 121 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 1, interfaceHash); 122 try { 123 java.io.ObjectOutput out = call.getOutputStream(); 124 out.writeObject($param_String_1); 125 } catch (java.io.IOException e) { 126 throw new java.rmi.MarshalException ("error marshalling arguments", e); 127 } 128 ref.invoke(call); 129 hero.interfaces.BnUserLocal $result; 130 try { 131 java.io.ObjectInput in = call.getInputStream(); 132 $result = (hero.interfaces.BnUserLocal) in.readObject(); 133 } catch (java.io.IOException e) { 134 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 135 } catch (java.lang.ClassNotFoundException e) { 136 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 137 } finally { 138 ref.done(call); 139 } 140 return $result; 141 } 142 } catch (java.lang.RuntimeException e) { 143 throw e; 144 } catch (java.rmi.RemoteException e) { 145 throw e; 146 } catch (hero.util.HeroException e) { 147 throw e; 148 } catch (java.lang.Exception e) { 149 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 150 } 151 } 152 153 public java.util.Collection findUsers() 155 throws hero.util.HeroException, java.rmi.RemoteException 156 { 157 try { 158 if (useNewInvoke) { 159 Object $result = ref.invoke(this, $method_findUsers_2, null, 1346795347855444037L); 160 return ((java.util.Collection ) $result); 161 } else { 162 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 163 ref.invoke(call); 164 java.util.Collection $result; 165 try { 166 java.io.ObjectInput in = call.getInputStream(); 167 $result = (java.util.Collection ) in.readObject(); 168 } catch (java.io.IOException e) { 169 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 170 } catch (java.lang.ClassNotFoundException e) { 171 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 172 } finally { 173 ref.done(call); 174 } 175 return $result; 176 } 177 } catch (java.lang.RuntimeException e) { 178 throw e; 179 } catch (java.rmi.RemoteException e) { 180 throw e; 181 } catch (hero.util.HeroException e) { 182 throw e; 183 } catch (java.lang.Exception e) { 184 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 185 } 186 } 187 188 public javax.ejb.EJBHome getEJBHome() 190 throws java.rmi.RemoteException 191 { 192 try { 193 if (useNewInvoke) { 194 Object $result = ref.invoke(this, $method_getEJBHome_3, null, 3163754803894080547L); 195 return ((javax.ejb.EJBHome ) $result); 196 } else { 197 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 198 ref.invoke(call); 199 javax.ejb.EJBHome $result; 200 try { 201 java.io.ObjectInput in = call.getInputStream(); 202 $result = (javax.ejb.EJBHome ) in.readObject(); 203 } catch (java.io.IOException e) { 204 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 205 } catch (java.lang.ClassNotFoundException e) { 206 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 207 } finally { 208 ref.done(call); 209 } 210 return $result; 211 } 212 } catch (java.lang.RuntimeException e) { 213 throw e; 214 } catch (java.rmi.RemoteException e) { 215 throw e; 216 } catch (java.lang.Exception e) { 217 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 218 } 219 } 220 221 public javax.ejb.Handle getHandle() 223 throws java.rmi.RemoteException 224 { 225 try { 226 if (useNewInvoke) { 227 Object $result = ref.invoke(this, $method_getHandle_4, null, -1299374689989208114L); 228 return ((javax.ejb.Handle ) $result); 229 } else { 230 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 231 ref.invoke(call); 232 javax.ejb.Handle $result; 233 try { 234 java.io.ObjectInput in = call.getInputStream(); 235 $result = (javax.ejb.Handle ) in.readObject(); 236 } catch (java.io.IOException e) { 237 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 238 } catch (java.lang.ClassNotFoundException e) { 239 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 240 } finally { 241 ref.done(call); 242 } 243 return $result; 244 } 245 } catch (java.lang.RuntimeException e) { 246 throw e; 247 } catch (java.rmi.RemoteException e) { 248 throw e; 249 } catch (java.lang.Exception e) { 250 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 251 } 252 } 253 254 public java.lang.Object getPrimaryKey() 256 throws java.rmi.RemoteException 257 { 258 try { 259 if (useNewInvoke) { 260 Object $result = ref.invoke(this, $method_getPrimaryKey_5, null, 4840115071604865751L); 261 return ((java.lang.Object ) $result); 262 } else { 263 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 264 ref.invoke(call); 265 java.lang.Object $result; 266 try { 267 java.io.ObjectInput in = call.getInputStream(); 268 $result = (java.lang.Object ) in.readObject(); 269 } catch (java.io.IOException e) { 270 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 271 } catch (java.lang.ClassNotFoundException e) { 272 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 273 } finally { 274 ref.done(call); 275 } 276 return $result; 277 } 278 } catch (java.lang.RuntimeException e) { 279 throw e; 280 } catch (java.rmi.RemoteException e) { 281 throw e; 282 } catch (java.lang.Exception e) { 283 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 284 } 285 } 286 287 public java.util.Map getUserInfos(java.lang.String $param_String_1) 289 throws hero.util.HeroException, java.rmi.RemoteException 290 { 291 try { 292 if (useNewInvoke) { 293 Object $result = ref.invoke(this, $method_getUserInfos_6, new java.lang.Object [] {$param_String_1}, 5902834266857789542L); 294 return ((java.util.Map ) $result); 295 } else { 296 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 6, interfaceHash); 297 try { 298 java.io.ObjectOutput out = call.getOutputStream(); 299 out.writeObject($param_String_1); 300 } catch (java.io.IOException e) { 301 throw new java.rmi.MarshalException ("error marshalling arguments", e); 302 } 303 ref.invoke(call); 304 java.util.Map $result; 305 try { 306 java.io.ObjectInput in = call.getInputStream(); 307 $result = (java.util.Map ) in.readObject(); 308 } catch (java.io.IOException e) { 309 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 310 } catch (java.lang.ClassNotFoundException e) { 311 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 312 } finally { 313 ref.done(call); 314 } 315 return $result; 316 } 317 } catch (java.lang.RuntimeException e) { 318 throw e; 319 } catch (java.rmi.RemoteException e) { 320 throw e; 321 } catch (hero.util.HeroException e) { 322 throw e; 323 } catch (java.lang.Exception e) { 324 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 325 } 326 } 327 328 public boolean isIdentical(javax.ejb.EJBObject $param_EJBObject_1) 330 throws java.rmi.RemoteException 331 { 332 try { 333 if (useNewInvoke) { 334 Object $result = ref.invoke(this, $method_isIdentical_7, new java.lang.Object [] {$param_EJBObject_1}, -5909123752501984271L); 335 return ((java.lang.Boolean ) $result).booleanValue(); 336 } else { 337 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 7, interfaceHash); 338 try { 339 java.io.ObjectOutput out = call.getOutputStream(); 340 out.writeObject($param_EJBObject_1); 341 } catch (java.io.IOException e) { 342 throw new java.rmi.MarshalException ("error marshalling arguments", e); 343 } 344 ref.invoke(call); 345 boolean $result; 346 try { 347 java.io.ObjectInput in = call.getInputStream(); 348 $result = in.readBoolean(); 349 } catch (java.io.IOException e) { 350 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 351 } finally { 352 ref.done(call); 353 } 354 return $result; 355 } 356 } catch (java.lang.RuntimeException e) { 357 throw e; 358 } catch (java.rmi.RemoteException e) { 359 throw e; 360 } catch (java.lang.Exception e) { 361 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 362 } 363 } 364 365 public void remove() 367 throws java.rmi.RemoteException , javax.ejb.RemoveException 368 { 369 try { 370 if (useNewInvoke) { 371 ref.invoke(this, $method_remove_8, null, -5013858639939630501L); 372 } else { 373 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 8, interfaceHash); 374 ref.invoke(call); 375 ref.done(call); 376 } 377 } catch (java.lang.RuntimeException e) { 378 throw e; 379 } catch (java.rmi.RemoteException e) { 380 throw e; 381 } catch (javax.ejb.RemoveException e) { 382 throw e; 383 } catch (java.lang.Exception e) { 384 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 385 } 386 } 387 } 388 | Popular Tags |