1 4 package hero.interfaces; 5 6 public final class JOnASBnRole1507592493Remote_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.BnRole, java.rmi.Remote , javax.ejb.EJBObject 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("hero.interfaces.BnRoleMapperLocal getBnRoleMapper()"), 12 new java.rmi.server.Operation ("hero.interfaces.BnRoleValue getBnRoleValue()"), 13 new java.rmi.server.Operation ("java.lang.String getDescription()"), 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.String getId()"), 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 ("boolean isIdentical(javax.ejb.EJBObject)"), 20 new java.rmi.server.Operation ("void remove()"), 21 new java.rmi.server.Operation ("void setBnRoleValue(hero.interfaces.BnRoleValue)") 22 }; 23 24 private static final long interfaceHash = 1546162445181514019L; 25 26 private static final long serialVersionUID = 2; 27 28 private static boolean useNewInvoke; 29 private static java.lang.reflect.Method $method_getBnRoleMapper_0; 30 private static java.lang.reflect.Method $method_getBnRoleValue_1; 31 private static java.lang.reflect.Method $method_getDescription_2; 32 private static java.lang.reflect.Method $method_getEJBHome_3; 33 private static java.lang.reflect.Method $method_getHandle_4; 34 private static java.lang.reflect.Method $method_getId_5; 35 private static java.lang.reflect.Method $method_getName_6; 36 private static java.lang.reflect.Method $method_getPrimaryKey_7; 37 private static java.lang.reflect.Method $method_isIdentical_8; 38 private static java.lang.reflect.Method $method_remove_9; 39 private static java.lang.reflect.Method $method_setBnRoleValue_10; 40 41 static { 42 try { 43 java.rmi.server.RemoteRef .class.getMethod("invoke", 44 new java.lang.Class [] { 45 java.rmi.Remote .class, 46 java.lang.reflect.Method .class, 47 java.lang.Object [].class, 48 long.class 49 }); 50 useNewInvoke = true; 51 $method_getBnRoleMapper_0 = hero.interfaces.BnRole.class.getMethod("getBnRoleMapper", new java.lang.Class [] {}); 52 $method_getBnRoleValue_1 = hero.interfaces.BnRole.class.getMethod("getBnRoleValue", new java.lang.Class [] {}); 53 $method_getDescription_2 = hero.interfaces.BnRole.class.getMethod("getDescription", new java.lang.Class [] {}); 54 $method_getEJBHome_3 = javax.ejb.EJBObject .class.getMethod("getEJBHome", new java.lang.Class [] {}); 55 $method_getHandle_4 = javax.ejb.EJBObject .class.getMethod("getHandle", new java.lang.Class [] {}); 56 $method_getId_5 = hero.interfaces.BnRole.class.getMethod("getId", new java.lang.Class [] {}); 57 $method_getName_6 = hero.interfaces.BnRole.class.getMethod("getName", new java.lang.Class [] {}); 58 $method_getPrimaryKey_7 = javax.ejb.EJBObject .class.getMethod("getPrimaryKey", new java.lang.Class [] {}); 59 $method_isIdentical_8 = javax.ejb.EJBObject .class.getMethod("isIdentical", new java.lang.Class [] {javax.ejb.EJBObject .class}); 60 $method_remove_9 = javax.ejb.EJBObject .class.getMethod("remove", new java.lang.Class [] {}); 61 $method_setBnRoleValue_10 = hero.interfaces.BnRole.class.getMethod("setBnRoleValue", new java.lang.Class [] {hero.interfaces.BnRoleValue.class}); 62 } catch (java.lang.NoSuchMethodException e) { 63 useNewInvoke = false; 64 } 65 } 66 67 public JOnASBnRole1507592493Remote_Stub() { 69 super(); 70 } 71 public JOnASBnRole1507592493Remote_Stub(java.rmi.server.RemoteRef ref) { 72 super(ref); 73 } 74 75 77 public hero.interfaces.BnRoleMapperLocal getBnRoleMapper() 79 throws java.rmi.RemoteException 80 { 81 try { 82 if (useNewInvoke) { 83 Object $result = ref.invoke(this, $method_getBnRoleMapper_0, null, -7905094465762913729L); 84 return ((hero.interfaces.BnRoleMapperLocal) $result); 85 } else { 86 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 0, interfaceHash); 87 ref.invoke(call); 88 hero.interfaces.BnRoleMapperLocal $result; 89 try { 90 java.io.ObjectInput in = call.getInputStream(); 91 $result = (hero.interfaces.BnRoleMapperLocal) 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 (java.lang.Exception e) { 106 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 107 } 108 } 109 110 public hero.interfaces.BnRoleValue getBnRoleValue() 112 throws java.rmi.RemoteException 113 { 114 try { 115 if (useNewInvoke) { 116 Object $result = ref.invoke(this, $method_getBnRoleValue_1, null, 6798023338934532364L); 117 return ((hero.interfaces.BnRoleValue) $result); 118 } else { 119 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 1, interfaceHash); 120 ref.invoke(call); 121 hero.interfaces.BnRoleValue $result; 122 try { 123 java.io.ObjectInput in = call.getInputStream(); 124 $result = (hero.interfaces.BnRoleValue) in.readObject(); 125 } catch (java.io.IOException e) { 126 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 127 } catch (java.lang.ClassNotFoundException e) { 128 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 129 } finally { 130 ref.done(call); 131 } 132 return $result; 133 } 134 } catch (java.lang.RuntimeException e) { 135 throw e; 136 } catch (java.rmi.RemoteException e) { 137 throw e; 138 } catch (java.lang.Exception e) { 139 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 140 } 141 } 142 143 public java.lang.String getDescription() 145 throws java.rmi.RemoteException 146 { 147 try { 148 if (useNewInvoke) { 149 Object $result = ref.invoke(this, $method_getDescription_2, null, 6422245352532609268L); 150 return ((java.lang.String ) $result); 151 } else { 152 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 153 ref.invoke(call); 154 java.lang.String $result; 155 try { 156 java.io.ObjectInput in = call.getInputStream(); 157 $result = (java.lang.String ) in.readObject(); 158 } catch (java.io.IOException e) { 159 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 160 } catch (java.lang.ClassNotFoundException e) { 161 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 162 } finally { 163 ref.done(call); 164 } 165 return $result; 166 } 167 } catch (java.lang.RuntimeException e) { 168 throw e; 169 } catch (java.rmi.RemoteException e) { 170 throw e; 171 } catch (java.lang.Exception e) { 172 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 173 } 174 } 175 176 public javax.ejb.EJBHome getEJBHome() 178 throws java.rmi.RemoteException 179 { 180 try { 181 if (useNewInvoke) { 182 Object $result = ref.invoke(this, $method_getEJBHome_3, null, 3163754803894080547L); 183 return ((javax.ejb.EJBHome ) $result); 184 } else { 185 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 186 ref.invoke(call); 187 javax.ejb.EJBHome $result; 188 try { 189 java.io.ObjectInput in = call.getInputStream(); 190 $result = (javax.ejb.EJBHome ) in.readObject(); 191 } catch (java.io.IOException e) { 192 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 193 } catch (java.lang.ClassNotFoundException e) { 194 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 195 } finally { 196 ref.done(call); 197 } 198 return $result; 199 } 200 } catch (java.lang.RuntimeException e) { 201 throw e; 202 } catch (java.rmi.RemoteException e) { 203 throw e; 204 } catch (java.lang.Exception e) { 205 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 206 } 207 } 208 209 public javax.ejb.Handle getHandle() 211 throws java.rmi.RemoteException 212 { 213 try { 214 if (useNewInvoke) { 215 Object $result = ref.invoke(this, $method_getHandle_4, null, -1299374689989208114L); 216 return ((javax.ejb.Handle ) $result); 217 } else { 218 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 219 ref.invoke(call); 220 javax.ejb.Handle $result; 221 try { 222 java.io.ObjectInput in = call.getInputStream(); 223 $result = (javax.ejb.Handle ) in.readObject(); 224 } catch (java.io.IOException e) { 225 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 226 } catch (java.lang.ClassNotFoundException e) { 227 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 228 } finally { 229 ref.done(call); 230 } 231 return $result; 232 } 233 } catch (java.lang.RuntimeException e) { 234 throw e; 235 } catch (java.rmi.RemoteException e) { 236 throw e; 237 } catch (java.lang.Exception e) { 238 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 239 } 240 } 241 242 public java.lang.String getId() 244 throws java.rmi.RemoteException 245 { 246 try { 247 if (useNewInvoke) { 248 Object $result = ref.invoke(this, $method_getId_5, null, -2624672516422252640L); 249 return ((java.lang.String ) $result); 250 } else { 251 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 252 ref.invoke(call); 253 java.lang.String $result; 254 try { 255 java.io.ObjectInput in = call.getInputStream(); 256 $result = (java.lang.String ) in.readObject(); 257 } catch (java.io.IOException e) { 258 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 259 } catch (java.lang.ClassNotFoundException e) { 260 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 261 } finally { 262 ref.done(call); 263 } 264 return $result; 265 } 266 } catch (java.lang.RuntimeException e) { 267 throw e; 268 } catch (java.rmi.RemoteException e) { 269 throw e; 270 } catch (java.lang.Exception e) { 271 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 272 } 273 } 274 275 public java.lang.String getName() 277 throws java.rmi.RemoteException 278 { 279 try { 280 if (useNewInvoke) { 281 Object $result = ref.invoke(this, $method_getName_6, null, 6317137956467216454L); 282 return ((java.lang.String ) $result); 283 } else { 284 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 6, interfaceHash); 285 ref.invoke(call); 286 java.lang.String $result; 287 try { 288 java.io.ObjectInput in = call.getInputStream(); 289 $result = (java.lang.String ) in.readObject(); 290 } catch (java.io.IOException e) { 291 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 292 } catch (java.lang.ClassNotFoundException e) { 293 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 294 } finally { 295 ref.done(call); 296 } 297 return $result; 298 } 299 } catch (java.lang.RuntimeException e) { 300 throw e; 301 } catch (java.rmi.RemoteException e) { 302 throw e; 303 } catch (java.lang.Exception e) { 304 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 305 } 306 } 307 308 public java.lang.Object getPrimaryKey() 310 throws java.rmi.RemoteException 311 { 312 try { 313 if (useNewInvoke) { 314 Object $result = ref.invoke(this, $method_getPrimaryKey_7, null, 4840115071604865751L); 315 return ((java.lang.Object ) $result); 316 } else { 317 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 7, interfaceHash); 318 ref.invoke(call); 319 java.lang.Object $result; 320 try { 321 java.io.ObjectInput in = call.getInputStream(); 322 $result = (java.lang.Object ) in.readObject(); 323 } catch (java.io.IOException e) { 324 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 325 } catch (java.lang.ClassNotFoundException e) { 326 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 327 } finally { 328 ref.done(call); 329 } 330 return $result; 331 } 332 } catch (java.lang.RuntimeException e) { 333 throw e; 334 } catch (java.rmi.RemoteException e) { 335 throw e; 336 } catch (java.lang.Exception e) { 337 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 338 } 339 } 340 341 public boolean isIdentical(javax.ejb.EJBObject $param_EJBObject_1) 343 throws java.rmi.RemoteException 344 { 345 try { 346 if (useNewInvoke) { 347 Object $result = ref.invoke(this, $method_isIdentical_8, new java.lang.Object [] {$param_EJBObject_1}, -5909123752501984271L); 348 return ((java.lang.Boolean ) $result).booleanValue(); 349 } else { 350 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 8, interfaceHash); 351 try { 352 java.io.ObjectOutput out = call.getOutputStream(); 353 out.writeObject($param_EJBObject_1); 354 } catch (java.io.IOException e) { 355 throw new java.rmi.MarshalException ("error marshalling arguments", e); 356 } 357 ref.invoke(call); 358 boolean $result; 359 try { 360 java.io.ObjectInput in = call.getInputStream(); 361 $result = in.readBoolean(); 362 } catch (java.io.IOException e) { 363 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 364 } finally { 365 ref.done(call); 366 } 367 return $result; 368 } 369 } catch (java.lang.RuntimeException e) { 370 throw e; 371 } catch (java.rmi.RemoteException e) { 372 throw e; 373 } catch (java.lang.Exception e) { 374 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 375 } 376 } 377 378 public void remove() 380 throws java.rmi.RemoteException , javax.ejb.RemoveException 381 { 382 try { 383 if (useNewInvoke) { 384 ref.invoke(this, $method_remove_9, null, -5013858639939630501L); 385 } else { 386 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 9, interfaceHash); 387 ref.invoke(call); 388 ref.done(call); 389 } 390 } catch (java.lang.RuntimeException e) { 391 throw e; 392 } catch (java.rmi.RemoteException e) { 393 throw e; 394 } catch (javax.ejb.RemoveException e) { 395 throw e; 396 } catch (java.lang.Exception e) { 397 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 398 } 399 } 400 401 public void setBnRoleValue(hero.interfaces.BnRoleValue $param_BnRoleValue_1) 403 throws java.rmi.RemoteException 404 { 405 try { 406 if (useNewInvoke) { 407 ref.invoke(this, $method_setBnRoleValue_10, new java.lang.Object [] {$param_BnRoleValue_1}, -1956312129036439790L); 408 } else { 409 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 10, interfaceHash); 410 try { 411 java.io.ObjectOutput out = call.getOutputStream(); 412 out.writeObject($param_BnRoleValue_1); 413 } catch (java.io.IOException e) { 414 throw new java.rmi.MarshalException ("error marshalling arguments", e); 415 } 416 ref.invoke(call); 417 ref.done(call); 418 } 419 } catch (java.lang.RuntimeException e) { 420 throw e; 421 } catch (java.rmi.RemoteException e) { 422 throw e; 423 } catch (java.lang.Exception e) { 424 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 425 } 426 } 427 } 428 | Popular Tags |