1 4 package hero.interfaces; 5 6 public final class JOnASBnAgent_1234454663Remote_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.BnAgent, java.rmi.Remote , javax.ejb.EJBObject 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("hero.interfaces.BnAgentLightValue getBnAgentLightValue()"), 12 new java.rmi.server.Operation ("hero.interfaces.BnAgentValue getBnAgentValue()"), 13 new java.rmi.server.Operation ("java.util.Date getCreationDate()"), 14 new java.rmi.server.Operation ("java.lang.String getDescription()"), 15 new java.rmi.server.Operation ("javax.ejb.EJBHome getEJBHome()"), 16 new java.rmi.server.Operation ("javax.ejb.Handle getHandle()"), 17 new java.rmi.server.Operation ("java.lang.String getName()"), 18 new java.rmi.server.Operation ("java.lang.Object getPrimaryKey()"), 19 new java.rmi.server.Operation ("int getState()"), 20 new java.rmi.server.Operation ("boolean isIdentical(javax.ejb.EJBObject)"), 21 new java.rmi.server.Operation ("void remove()"), 22 new java.rmi.server.Operation ("void setBnAgentValue(hero.interfaces.BnAgentValue)"), 23 new java.rmi.server.Operation ("void setCreationDate(java.util.Date)"), 24 new java.rmi.server.Operation ("void setDescription(java.lang.String)"), 25 new java.rmi.server.Operation ("void setState(int)") 26 }; 27 28 private static final long interfaceHash = -8278469713996233479L; 29 30 private static final long serialVersionUID = 2; 31 32 private static boolean useNewInvoke; 33 private static java.lang.reflect.Method $method_getBnAgentLightValue_0; 34 private static java.lang.reflect.Method $method_getBnAgentValue_1; 35 private static java.lang.reflect.Method $method_getCreationDate_2; 36 private static java.lang.reflect.Method $method_getDescription_3; 37 private static java.lang.reflect.Method $method_getEJBHome_4; 38 private static java.lang.reflect.Method $method_getHandle_5; 39 private static java.lang.reflect.Method $method_getName_6; 40 private static java.lang.reflect.Method $method_getPrimaryKey_7; 41 private static java.lang.reflect.Method $method_getState_8; 42 private static java.lang.reflect.Method $method_isIdentical_9; 43 private static java.lang.reflect.Method $method_remove_10; 44 private static java.lang.reflect.Method $method_setBnAgentValue_11; 45 private static java.lang.reflect.Method $method_setCreationDate_12; 46 private static java.lang.reflect.Method $method_setDescription_13; 47 private static java.lang.reflect.Method $method_setState_14; 48 49 static { 50 try { 51 java.rmi.server.RemoteRef .class.getMethod("invoke", 52 new java.lang.Class [] { 53 java.rmi.Remote .class, 54 java.lang.reflect.Method .class, 55 java.lang.Object [].class, 56 long.class 57 }); 58 useNewInvoke = true; 59 $method_getBnAgentLightValue_0 = hero.interfaces.BnAgent.class.getMethod("getBnAgentLightValue", new java.lang.Class [] {}); 60 $method_getBnAgentValue_1 = hero.interfaces.BnAgent.class.getMethod("getBnAgentValue", new java.lang.Class [] {}); 61 $method_getCreationDate_2 = hero.interfaces.BnAgent.class.getMethod("getCreationDate", new java.lang.Class [] {}); 62 $method_getDescription_3 = hero.interfaces.BnAgent.class.getMethod("getDescription", new java.lang.Class [] {}); 63 $method_getEJBHome_4 = javax.ejb.EJBObject .class.getMethod("getEJBHome", new java.lang.Class [] {}); 64 $method_getHandle_5 = javax.ejb.EJBObject .class.getMethod("getHandle", new java.lang.Class [] {}); 65 $method_getName_6 = hero.interfaces.BnAgent.class.getMethod("getName", new java.lang.Class [] {}); 66 $method_getPrimaryKey_7 = javax.ejb.EJBObject .class.getMethod("getPrimaryKey", new java.lang.Class [] {}); 67 $method_getState_8 = hero.interfaces.BnAgent.class.getMethod("getState", new java.lang.Class [] {}); 68 $method_isIdentical_9 = javax.ejb.EJBObject .class.getMethod("isIdentical", new java.lang.Class [] {javax.ejb.EJBObject .class}); 69 $method_remove_10 = javax.ejb.EJBObject .class.getMethod("remove", new java.lang.Class [] {}); 70 $method_setBnAgentValue_11 = hero.interfaces.BnAgent.class.getMethod("setBnAgentValue", new java.lang.Class [] {hero.interfaces.BnAgentValue.class}); 71 $method_setCreationDate_12 = hero.interfaces.BnAgent.class.getMethod("setCreationDate", new java.lang.Class [] {java.util.Date .class}); 72 $method_setDescription_13 = hero.interfaces.BnAgent.class.getMethod("setDescription", new java.lang.Class [] {java.lang.String .class}); 73 $method_setState_14 = hero.interfaces.BnAgent.class.getMethod("setState", new java.lang.Class [] {int.class}); 74 } catch (java.lang.NoSuchMethodException e) { 75 useNewInvoke = false; 76 } 77 } 78 79 public JOnASBnAgent_1234454663Remote_Stub() { 81 super(); 82 } 83 public JOnASBnAgent_1234454663Remote_Stub(java.rmi.server.RemoteRef ref) { 84 super(ref); 85 } 86 87 89 public hero.interfaces.BnAgentLightValue getBnAgentLightValue() 91 throws java.rmi.RemoteException 92 { 93 try { 94 if (useNewInvoke) { 95 Object $result = ref.invoke(this, $method_getBnAgentLightValue_0, null, 2335110706040127164L); 96 return ((hero.interfaces.BnAgentLightValue) $result); 97 } else { 98 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 0, interfaceHash); 99 ref.invoke(call); 100 hero.interfaces.BnAgentLightValue $result; 101 try { 102 java.io.ObjectInput in = call.getInputStream(); 103 $result = (hero.interfaces.BnAgentLightValue) in.readObject(); 104 } catch (java.io.IOException e) { 105 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 106 } catch (java.lang.ClassNotFoundException e) { 107 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 108 } finally { 109 ref.done(call); 110 } 111 return $result; 112 } 113 } catch (java.lang.RuntimeException e) { 114 throw e; 115 } catch (java.rmi.RemoteException e) { 116 throw e; 117 } catch (java.lang.Exception e) { 118 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 119 } 120 } 121 122 public hero.interfaces.BnAgentValue getBnAgentValue() 124 throws java.rmi.RemoteException 125 { 126 try { 127 if (useNewInvoke) { 128 Object $result = ref.invoke(this, $method_getBnAgentValue_1, null, -8858088713532429442L); 129 return ((hero.interfaces.BnAgentValue) $result); 130 } else { 131 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 1, interfaceHash); 132 ref.invoke(call); 133 hero.interfaces.BnAgentValue $result; 134 try { 135 java.io.ObjectInput in = call.getInputStream(); 136 $result = (hero.interfaces.BnAgentValue) in.readObject(); 137 } catch (java.io.IOException e) { 138 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 139 } catch (java.lang.ClassNotFoundException e) { 140 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 141 } finally { 142 ref.done(call); 143 } 144 return $result; 145 } 146 } catch (java.lang.RuntimeException e) { 147 throw e; 148 } catch (java.rmi.RemoteException e) { 149 throw e; 150 } catch (java.lang.Exception e) { 151 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 152 } 153 } 154 155 public java.util.Date getCreationDate() 157 throws java.rmi.RemoteException 158 { 159 try { 160 if (useNewInvoke) { 161 Object $result = ref.invoke(this, $method_getCreationDate_2, null, -6411676599512905306L); 162 return ((java.util.Date ) $result); 163 } else { 164 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 165 ref.invoke(call); 166 java.util.Date $result; 167 try { 168 java.io.ObjectInput in = call.getInputStream(); 169 $result = (java.util.Date ) in.readObject(); 170 } catch (java.io.IOException e) { 171 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 172 } catch (java.lang.ClassNotFoundException e) { 173 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 174 } finally { 175 ref.done(call); 176 } 177 return $result; 178 } 179 } catch (java.lang.RuntimeException e) { 180 throw e; 181 } catch (java.rmi.RemoteException 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 java.lang.String getDescription() 190 throws java.rmi.RemoteException 191 { 192 try { 193 if (useNewInvoke) { 194 Object $result = ref.invoke(this, $method_getDescription_3, null, 6422245352532609268L); 195 return ((java.lang.String ) $result); 196 } else { 197 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 198 ref.invoke(call); 199 java.lang.String $result; 200 try { 201 java.io.ObjectInput in = call.getInputStream(); 202 $result = (java.lang.String ) 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.EJBHome getEJBHome() 223 throws java.rmi.RemoteException 224 { 225 try { 226 if (useNewInvoke) { 227 Object $result = ref.invoke(this, $method_getEJBHome_4, null, 3163754803894080547L); 228 return ((javax.ejb.EJBHome ) $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.EJBHome $result; 233 try { 234 java.io.ObjectInput in = call.getInputStream(); 235 $result = (javax.ejb.EJBHome ) 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 javax.ejb.Handle getHandle() 256 throws java.rmi.RemoteException 257 { 258 try { 259 if (useNewInvoke) { 260 Object $result = ref.invoke(this, $method_getHandle_5, null, -1299374689989208114L); 261 return ((javax.ejb.Handle ) $result); 262 } else { 263 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 264 ref.invoke(call); 265 javax.ejb.Handle $result; 266 try { 267 java.io.ObjectInput in = call.getInputStream(); 268 $result = (javax.ejb.Handle ) 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.lang.String getName() 289 throws java.rmi.RemoteException 290 { 291 try { 292 if (useNewInvoke) { 293 Object $result = ref.invoke(this, $method_getName_6, null, 6317137956467216454L); 294 return ((java.lang.String ) $result); 295 } else { 296 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 6, interfaceHash); 297 ref.invoke(call); 298 java.lang.String $result; 299 try { 300 java.io.ObjectInput in = call.getInputStream(); 301 $result = (java.lang.String ) in.readObject(); 302 } catch (java.io.IOException e) { 303 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 304 } catch (java.lang.ClassNotFoundException e) { 305 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 306 } finally { 307 ref.done(call); 308 } 309 return $result; 310 } 311 } catch (java.lang.RuntimeException e) { 312 throw e; 313 } catch (java.rmi.RemoteException e) { 314 throw e; 315 } catch (java.lang.Exception e) { 316 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 317 } 318 } 319 320 public java.lang.Object getPrimaryKey() 322 throws java.rmi.RemoteException 323 { 324 try { 325 if (useNewInvoke) { 326 Object $result = ref.invoke(this, $method_getPrimaryKey_7, null, 4840115071604865751L); 327 return ((java.lang.Object ) $result); 328 } else { 329 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 7, interfaceHash); 330 ref.invoke(call); 331 java.lang.Object $result; 332 try { 333 java.io.ObjectInput in = call.getInputStream(); 334 $result = (java.lang.Object ) in.readObject(); 335 } catch (java.io.IOException e) { 336 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 337 } catch (java.lang.ClassNotFoundException e) { 338 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 339 } finally { 340 ref.done(call); 341 } 342 return $result; 343 } 344 } catch (java.lang.RuntimeException e) { 345 throw e; 346 } catch (java.rmi.RemoteException e) { 347 throw e; 348 } catch (java.lang.Exception e) { 349 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 350 } 351 } 352 353 public int getState() 355 throws java.rmi.RemoteException 356 { 357 try { 358 if (useNewInvoke) { 359 Object $result = ref.invoke(this, $method_getState_8, null, 905183520575560769L); 360 return ((java.lang.Integer ) $result).intValue(); 361 } else { 362 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 8, interfaceHash); 363 ref.invoke(call); 364 int $result; 365 try { 366 java.io.ObjectInput in = call.getInputStream(); 367 $result = in.readInt(); 368 } catch (java.io.IOException e) { 369 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 370 } finally { 371 ref.done(call); 372 } 373 return $result; 374 } 375 } catch (java.lang.RuntimeException e) { 376 throw e; 377 } catch (java.rmi.RemoteException e) { 378 throw e; 379 } catch (java.lang.Exception e) { 380 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 381 } 382 } 383 384 public boolean isIdentical(javax.ejb.EJBObject $param_EJBObject_1) 386 throws java.rmi.RemoteException 387 { 388 try { 389 if (useNewInvoke) { 390 Object $result = ref.invoke(this, $method_isIdentical_9, new java.lang.Object [] {$param_EJBObject_1}, -5909123752501984271L); 391 return ((java.lang.Boolean ) $result).booleanValue(); 392 } else { 393 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 9, interfaceHash); 394 try { 395 java.io.ObjectOutput out = call.getOutputStream(); 396 out.writeObject($param_EJBObject_1); 397 } catch (java.io.IOException e) { 398 throw new java.rmi.MarshalException ("error marshalling arguments", e); 399 } 400 ref.invoke(call); 401 boolean $result; 402 try { 403 java.io.ObjectInput in = call.getInputStream(); 404 $result = in.readBoolean(); 405 } catch (java.io.IOException e) { 406 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 407 } finally { 408 ref.done(call); 409 } 410 return $result; 411 } 412 } catch (java.lang.RuntimeException e) { 413 throw e; 414 } catch (java.rmi.RemoteException e) { 415 throw e; 416 } catch (java.lang.Exception e) { 417 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 418 } 419 } 420 421 public void remove() 423 throws java.rmi.RemoteException , javax.ejb.RemoveException 424 { 425 try { 426 if (useNewInvoke) { 427 ref.invoke(this, $method_remove_10, null, -5013858639939630501L); 428 } else { 429 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 10, interfaceHash); 430 ref.invoke(call); 431 ref.done(call); 432 } 433 } catch (java.lang.RuntimeException e) { 434 throw e; 435 } catch (java.rmi.RemoteException e) { 436 throw e; 437 } catch (javax.ejb.RemoveException e) { 438 throw e; 439 } catch (java.lang.Exception e) { 440 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 441 } 442 } 443 444 public void setBnAgentValue(hero.interfaces.BnAgentValue $param_BnAgentValue_1) 446 throws java.rmi.RemoteException 447 { 448 try { 449 if (useNewInvoke) { 450 ref.invoke(this, $method_setBnAgentValue_11, new java.lang.Object [] {$param_BnAgentValue_1}, -4031495375938490924L); 451 } else { 452 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 11, interfaceHash); 453 try { 454 java.io.ObjectOutput out = call.getOutputStream(); 455 out.writeObject($param_BnAgentValue_1); 456 } catch (java.io.IOException e) { 457 throw new java.rmi.MarshalException ("error marshalling arguments", e); 458 } 459 ref.invoke(call); 460 ref.done(call); 461 } 462 } catch (java.lang.RuntimeException e) { 463 throw e; 464 } catch (java.rmi.RemoteException e) { 465 throw e; 466 } catch (java.lang.Exception e) { 467 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 468 } 469 } 470 471 public void setCreationDate(java.util.Date $param_Date_1) 473 throws java.rmi.RemoteException 474 { 475 try { 476 if (useNewInvoke) { 477 ref.invoke(this, $method_setCreationDate_12, new java.lang.Object [] {$param_Date_1}, -8110585494477293117L); 478 } else { 479 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 12, interfaceHash); 480 try { 481 java.io.ObjectOutput out = call.getOutputStream(); 482 out.writeObject($param_Date_1); 483 } catch (java.io.IOException e) { 484 throw new java.rmi.MarshalException ("error marshalling arguments", e); 485 } 486 ref.invoke(call); 487 ref.done(call); 488 } 489 } catch (java.lang.RuntimeException e) { 490 throw e; 491 } catch (java.rmi.RemoteException e) { 492 throw e; 493 } catch (java.lang.Exception e) { 494 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 495 } 496 } 497 498 public void setDescription(java.lang.String $param_String_1) 500 throws java.rmi.RemoteException 501 { 502 try { 503 if (useNewInvoke) { 504 ref.invoke(this, $method_setDescription_13, new java.lang.Object [] {$param_String_1}, 1187524813690193809L); 505 } else { 506 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 13, interfaceHash); 507 try { 508 java.io.ObjectOutput out = call.getOutputStream(); 509 out.writeObject($param_String_1); 510 } catch (java.io.IOException e) { 511 throw new java.rmi.MarshalException ("error marshalling arguments", e); 512 } 513 ref.invoke(call); 514 ref.done(call); 515 } 516 } catch (java.lang.RuntimeException e) { 517 throw e; 518 } catch (java.rmi.RemoteException e) { 519 throw e; 520 } catch (java.lang.Exception e) { 521 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 522 } 523 } 524 525 public void setState(int $param_int_1) 527 throws java.rmi.RemoteException 528 { 529 try { 530 if (useNewInvoke) { 531 ref.invoke(this, $method_setState_14, new java.lang.Object [] {new java.lang.Integer ($param_int_1)}, -2106430383632207935L); 532 } else { 533 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 14, interfaceHash); 534 try { 535 java.io.ObjectOutput out = call.getOutputStream(); 536 out.writeInt($param_int_1); 537 } catch (java.io.IOException e) { 538 throw new java.rmi.MarshalException ("error marshalling arguments", e); 539 } 540 ref.invoke(call); 541 ref.done(call); 542 } 543 } catch (java.lang.RuntimeException e) { 544 throw e; 545 } catch (java.rmi.RemoteException e) { 546 throw e; 547 } catch (java.lang.Exception e) { 548 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 549 } 550 } 551 } 552 | Popular Tags |