1 4 package hero.interfaces; 5 6 public final class JOnASUserRegistration_390198867Remote_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.UserRegistration, java.rmi.Remote , javax.ejb.EJBObject 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("void deleteUser(java.lang.String)"), 12 new java.rmi.server.Operation ("javax.ejb.EJBHome getEJBHome()"), 13 new java.rmi.server.Operation ("javax.ejb.Handle getHandle()"), 14 new java.rmi.server.Operation ("java.lang.Object getPrimaryKey()"), 15 new java.rmi.server.Operation ("boolean isIdentical(javax.ejb.EJBObject)"), 16 new java.rmi.server.Operation ("void remove()"), 17 new java.rmi.server.Operation ("void roleCreate(java.lang.String, java.lang.String)"), 18 new java.rmi.server.Operation ("void setUserProperty(java.lang.String, java.lang.String, java.lang.String)"), 19 new java.rmi.server.Operation ("void setUserRole(java.lang.String, java.lang.String)"), 20 new java.rmi.server.Operation ("hero.interfaces.BnUserLocal userCreate(java.lang.String)"), 21 new java.rmi.server.Operation ("void userCreate(java.lang.String, java.lang.String, java.lang.String)"), 22 new java.rmi.server.Operation ("void userCreate(java.lang.String, java.lang.String, java.lang.String, java.lang.String)") 23 }; 24 25 private static final long interfaceHash = 8827534278029431046L; 26 27 private static final long serialVersionUID = 2; 28 29 private static boolean useNewInvoke; 30 private static java.lang.reflect.Method $method_deleteUser_0; 31 private static java.lang.reflect.Method $method_getEJBHome_1; 32 private static java.lang.reflect.Method $method_getHandle_2; 33 private static java.lang.reflect.Method $method_getPrimaryKey_3; 34 private static java.lang.reflect.Method $method_isIdentical_4; 35 private static java.lang.reflect.Method $method_remove_5; 36 private static java.lang.reflect.Method $method_roleCreate_6; 37 private static java.lang.reflect.Method $method_setUserProperty_7; 38 private static java.lang.reflect.Method $method_setUserRole_8; 39 private static java.lang.reflect.Method $method_userCreate_9; 40 private static java.lang.reflect.Method $method_userCreate_10; 41 private static java.lang.reflect.Method $method_userCreate_11; 42 43 static { 44 try { 45 java.rmi.server.RemoteRef .class.getMethod("invoke", 46 new java.lang.Class [] { 47 java.rmi.Remote .class, 48 java.lang.reflect.Method .class, 49 java.lang.Object [].class, 50 long.class 51 }); 52 useNewInvoke = true; 53 $method_deleteUser_0 = hero.interfaces.UserRegistration.class.getMethod("deleteUser", new java.lang.Class [] {java.lang.String .class}); 54 $method_getEJBHome_1 = javax.ejb.EJBObject .class.getMethod("getEJBHome", new java.lang.Class [] {}); 55 $method_getHandle_2 = javax.ejb.EJBObject .class.getMethod("getHandle", new java.lang.Class [] {}); 56 $method_getPrimaryKey_3 = javax.ejb.EJBObject .class.getMethod("getPrimaryKey", new java.lang.Class [] {}); 57 $method_isIdentical_4 = javax.ejb.EJBObject .class.getMethod("isIdentical", new java.lang.Class [] {javax.ejb.EJBObject .class}); 58 $method_remove_5 = javax.ejb.EJBObject .class.getMethod("remove", new java.lang.Class [] {}); 59 $method_roleCreate_6 = hero.interfaces.UserRegistration.class.getMethod("roleCreate", new java.lang.Class [] {java.lang.String .class, java.lang.String .class}); 60 $method_setUserProperty_7 = hero.interfaces.UserRegistration.class.getMethod("setUserProperty", new java.lang.Class [] {java.lang.String .class, java.lang.String .class, java.lang.String .class}); 61 $method_setUserRole_8 = hero.interfaces.UserRegistration.class.getMethod("setUserRole", new java.lang.Class [] {java.lang.String .class, java.lang.String .class}); 62 $method_userCreate_9 = hero.interfaces.UserRegistration.class.getMethod("userCreate", new java.lang.Class [] {java.lang.String .class}); 63 $method_userCreate_10 = hero.interfaces.UserRegistration.class.getMethod("userCreate", new java.lang.Class [] {java.lang.String .class, java.lang.String .class, java.lang.String .class}); 64 $method_userCreate_11 = hero.interfaces.UserRegistration.class.getMethod("userCreate", new java.lang.Class [] {java.lang.String .class, java.lang.String .class, java.lang.String .class, java.lang.String .class}); 65 } catch (java.lang.NoSuchMethodException e) { 66 useNewInvoke = false; 67 } 68 } 69 70 public JOnASUserRegistration_390198867Remote_Stub() { 72 super(); 73 } 74 public JOnASUserRegistration_390198867Remote_Stub(java.rmi.server.RemoteRef ref) { 75 super(ref); 76 } 77 78 80 public void deleteUser(java.lang.String $param_String_1) 82 throws hero.util.HeroException, java.rmi.RemoteException 83 { 84 try { 85 if (useNewInvoke) { 86 ref.invoke(this, $method_deleteUser_0, new java.lang.Object [] {$param_String_1}, -5740162346944931429L); 87 } else { 88 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 0, interfaceHash); 89 try { 90 java.io.ObjectOutput out = call.getOutputStream(); 91 out.writeObject($param_String_1); 92 } catch (java.io.IOException e) { 93 throw new java.rmi.MarshalException ("error marshalling arguments", e); 94 } 95 ref.invoke(call); 96 ref.done(call); 97 } 98 } catch (java.lang.RuntimeException e) { 99 throw e; 100 } catch (java.rmi.RemoteException e) { 101 throw e; 102 } catch (hero.util.HeroException e) { 103 throw e; 104 } catch (java.lang.Exception e) { 105 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 106 } 107 } 108 109 public javax.ejb.EJBHome getEJBHome() 111 throws java.rmi.RemoteException 112 { 113 try { 114 if (useNewInvoke) { 115 Object $result = ref.invoke(this, $method_getEJBHome_1, null, 3163754803894080547L); 116 return ((javax.ejb.EJBHome ) $result); 117 } else { 118 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 1, interfaceHash); 119 ref.invoke(call); 120 javax.ejb.EJBHome $result; 121 try { 122 java.io.ObjectInput in = call.getInputStream(); 123 $result = (javax.ejb.EJBHome ) in.readObject(); 124 } catch (java.io.IOException e) { 125 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 126 } catch (java.lang.ClassNotFoundException e) { 127 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 128 } finally { 129 ref.done(call); 130 } 131 return $result; 132 } 133 } catch (java.lang.RuntimeException e) { 134 throw e; 135 } catch (java.rmi.RemoteException e) { 136 throw e; 137 } catch (java.lang.Exception e) { 138 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 139 } 140 } 141 142 public javax.ejb.Handle getHandle() 144 throws java.rmi.RemoteException 145 { 146 try { 147 if (useNewInvoke) { 148 Object $result = ref.invoke(this, $method_getHandle_2, null, -1299374689989208114L); 149 return ((javax.ejb.Handle ) $result); 150 } else { 151 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 152 ref.invoke(call); 153 javax.ejb.Handle $result; 154 try { 155 java.io.ObjectInput in = call.getInputStream(); 156 $result = (javax.ejb.Handle ) in.readObject(); 157 } catch (java.io.IOException e) { 158 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 159 } catch (java.lang.ClassNotFoundException e) { 160 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 161 } finally { 162 ref.done(call); 163 } 164 return $result; 165 } 166 } catch (java.lang.RuntimeException e) { 167 throw e; 168 } catch (java.rmi.RemoteException e) { 169 throw e; 170 } catch (java.lang.Exception e) { 171 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 172 } 173 } 174 175 public java.lang.Object getPrimaryKey() 177 throws java.rmi.RemoteException 178 { 179 try { 180 if (useNewInvoke) { 181 Object $result = ref.invoke(this, $method_getPrimaryKey_3, null, 4840115071604865751L); 182 return ((java.lang.Object ) $result); 183 } else { 184 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 185 ref.invoke(call); 186 java.lang.Object $result; 187 try { 188 java.io.ObjectInput in = call.getInputStream(); 189 $result = (java.lang.Object ) in.readObject(); 190 } catch (java.io.IOException e) { 191 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 192 } catch (java.lang.ClassNotFoundException e) { 193 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 194 } finally { 195 ref.done(call); 196 } 197 return $result; 198 } 199 } catch (java.lang.RuntimeException e) { 200 throw e; 201 } catch (java.rmi.RemoteException e) { 202 throw e; 203 } catch (java.lang.Exception e) { 204 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 205 } 206 } 207 208 public boolean isIdentical(javax.ejb.EJBObject $param_EJBObject_1) 210 throws java.rmi.RemoteException 211 { 212 try { 213 if (useNewInvoke) { 214 Object $result = ref.invoke(this, $method_isIdentical_4, new java.lang.Object [] {$param_EJBObject_1}, -5909123752501984271L); 215 return ((java.lang.Boolean ) $result).booleanValue(); 216 } else { 217 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 218 try { 219 java.io.ObjectOutput out = call.getOutputStream(); 220 out.writeObject($param_EJBObject_1); 221 } catch (java.io.IOException e) { 222 throw new java.rmi.MarshalException ("error marshalling arguments", e); 223 } 224 ref.invoke(call); 225 boolean $result; 226 try { 227 java.io.ObjectInput in = call.getInputStream(); 228 $result = in.readBoolean(); 229 } catch (java.io.IOException e) { 230 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 231 } finally { 232 ref.done(call); 233 } 234 return $result; 235 } 236 } catch (java.lang.RuntimeException e) { 237 throw e; 238 } catch (java.rmi.RemoteException e) { 239 throw e; 240 } catch (java.lang.Exception e) { 241 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 242 } 243 } 244 245 public void remove() 247 throws java.rmi.RemoteException , javax.ejb.RemoveException 248 { 249 try { 250 if (useNewInvoke) { 251 ref.invoke(this, $method_remove_5, null, -5013858639939630501L); 252 } else { 253 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 254 ref.invoke(call); 255 ref.done(call); 256 } 257 } catch (java.lang.RuntimeException e) { 258 throw e; 259 } catch (java.rmi.RemoteException e) { 260 throw e; 261 } catch (javax.ejb.RemoveException e) { 262 throw e; 263 } catch (java.lang.Exception e) { 264 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 265 } 266 } 267 268 public void roleCreate(java.lang.String $param_String_1, java.lang.String $param_String_2) 270 throws hero.util.HeroException, java.rmi.RemoteException 271 { 272 try { 273 if (useNewInvoke) { 274 ref.invoke(this, $method_roleCreate_6, new java.lang.Object [] {$param_String_1, $param_String_2}, -6612757925996645924L); 275 } else { 276 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 6, interfaceHash); 277 try { 278 java.io.ObjectOutput out = call.getOutputStream(); 279 out.writeObject($param_String_1); 280 out.writeObject($param_String_2); 281 } catch (java.io.IOException e) { 282 throw new java.rmi.MarshalException ("error marshalling arguments", e); 283 } 284 ref.invoke(call); 285 ref.done(call); 286 } 287 } catch (java.lang.RuntimeException e) { 288 throw e; 289 } catch (java.rmi.RemoteException e) { 290 throw e; 291 } catch (hero.util.HeroException e) { 292 throw e; 293 } catch (java.lang.Exception e) { 294 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 295 } 296 } 297 298 public void setUserProperty(java.lang.String $param_String_1, java.lang.String $param_String_2, java.lang.String $param_String_3) 300 throws hero.util.HeroException, java.rmi.RemoteException 301 { 302 try { 303 if (useNewInvoke) { 304 ref.invoke(this, $method_setUserProperty_7, new java.lang.Object [] {$param_String_1, $param_String_2, $param_String_3}, 8945694367595599534L); 305 } else { 306 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 7, interfaceHash); 307 try { 308 java.io.ObjectOutput out = call.getOutputStream(); 309 out.writeObject($param_String_1); 310 out.writeObject($param_String_2); 311 out.writeObject($param_String_3); 312 } catch (java.io.IOException e) { 313 throw new java.rmi.MarshalException ("error marshalling arguments", e); 314 } 315 ref.invoke(call); 316 ref.done(call); 317 } 318 } catch (java.lang.RuntimeException e) { 319 throw e; 320 } catch (java.rmi.RemoteException e) { 321 throw e; 322 } catch (hero.util.HeroException e) { 323 throw e; 324 } catch (java.lang.Exception e) { 325 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 326 } 327 } 328 329 public void setUserRole(java.lang.String $param_String_1, java.lang.String $param_String_2) 331 throws hero.util.HeroException, java.rmi.RemoteException 332 { 333 try { 334 if (useNewInvoke) { 335 ref.invoke(this, $method_setUserRole_8, new java.lang.Object [] {$param_String_1, $param_String_2}, -1002283327313042695L); 336 } else { 337 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 8, interfaceHash); 338 try { 339 java.io.ObjectOutput out = call.getOutputStream(); 340 out.writeObject($param_String_1); 341 out.writeObject($param_String_2); 342 } catch (java.io.IOException e) { 343 throw new java.rmi.MarshalException ("error marshalling arguments", e); 344 } 345 ref.invoke(call); 346 ref.done(call); 347 } 348 } catch (java.lang.RuntimeException e) { 349 throw e; 350 } catch (java.rmi.RemoteException e) { 351 throw e; 352 } catch (hero.util.HeroException e) { 353 throw e; 354 } catch (java.lang.Exception e) { 355 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 356 } 357 } 358 359 public hero.interfaces.BnUserLocal userCreate(java.lang.String $param_String_1) 361 throws hero.util.HeroException, java.rmi.RemoteException 362 { 363 try { 364 if (useNewInvoke) { 365 Object $result = ref.invoke(this, $method_userCreate_9, new java.lang.Object [] {$param_String_1}, 6403740065556070885L); 366 return ((hero.interfaces.BnUserLocal) $result); 367 } else { 368 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 9, interfaceHash); 369 try { 370 java.io.ObjectOutput out = call.getOutputStream(); 371 out.writeObject($param_String_1); 372 } catch (java.io.IOException e) { 373 throw new java.rmi.MarshalException ("error marshalling arguments", e); 374 } 375 ref.invoke(call); 376 hero.interfaces.BnUserLocal $result; 377 try { 378 java.io.ObjectInput in = call.getInputStream(); 379 $result = (hero.interfaces.BnUserLocal) in.readObject(); 380 } catch (java.io.IOException e) { 381 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 382 } catch (java.lang.ClassNotFoundException e) { 383 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 384 } finally { 385 ref.done(call); 386 } 387 return $result; 388 } 389 } catch (java.lang.RuntimeException e) { 390 throw e; 391 } catch (java.rmi.RemoteException e) { 392 throw e; 393 } catch (hero.util.HeroException e) { 394 throw e; 395 } catch (java.lang.Exception e) { 396 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 397 } 398 } 399 400 public void userCreate(java.lang.String $param_String_1, java.lang.String $param_String_2, java.lang.String $param_String_3) 402 throws hero.util.HeroException, java.rmi.RemoteException 403 { 404 try { 405 if (useNewInvoke) { 406 ref.invoke(this, $method_userCreate_10, new java.lang.Object [] {$param_String_1, $param_String_2, $param_String_3}, -2654664015012264136L); 407 } else { 408 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 10, interfaceHash); 409 try { 410 java.io.ObjectOutput out = call.getOutputStream(); 411 out.writeObject($param_String_1); 412 out.writeObject($param_String_2); 413 out.writeObject($param_String_3); 414 } catch (java.io.IOException e) { 415 throw new java.rmi.MarshalException ("error marshalling arguments", e); 416 } 417 ref.invoke(call); 418 ref.done(call); 419 } 420 } catch (java.lang.RuntimeException e) { 421 throw e; 422 } catch (java.rmi.RemoteException e) { 423 throw e; 424 } catch (hero.util.HeroException e) { 425 throw e; 426 } catch (java.lang.Exception e) { 427 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 428 } 429 } 430 431 public void userCreate(java.lang.String $param_String_1, java.lang.String $param_String_2, java.lang.String $param_String_3, java.lang.String $param_String_4) 433 throws hero.util.HeroException, java.rmi.RemoteException 434 { 435 try { 436 if (useNewInvoke) { 437 ref.invoke(this, $method_userCreate_11, new java.lang.Object [] {$param_String_1, $param_String_2, $param_String_3, $param_String_4}, -3062716394794781588L); 438 } else { 439 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 11, interfaceHash); 440 try { 441 java.io.ObjectOutput out = call.getOutputStream(); 442 out.writeObject($param_String_1); 443 out.writeObject($param_String_2); 444 out.writeObject($param_String_3); 445 out.writeObject($param_String_4); 446 } catch (java.io.IOException e) { 447 throw new java.rmi.MarshalException ("error marshalling arguments", e); 448 } 449 ref.invoke(call); 450 ref.done(call); 451 } 452 } catch (java.lang.RuntimeException e) { 453 throw e; 454 } catch (java.rmi.RemoteException e) { 455 throw e; 456 } catch (hero.util.HeroException e) { 457 throw e; 458 } catch (java.lang.Exception e) { 459 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 460 } 461 } 462 } 463 | Popular Tags |