1 4 package hero.interfaces; 5 6 public final class JOnASBnRoleMapper_1983914099Remote_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.BnRoleMapper, java.rmi.Remote , javax.ejb.EJBObject 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("hero.interfaces.BnRoleLocal getBnRole()"), 12 new java.rmi.server.Operation ("hero.interfaces.BnRoleMapperValue getBnRoleMapperValue()"), 13 new java.rmi.server.Operation ("javax.ejb.EJBHome getEJBHome()"), 14 new java.rmi.server.Operation ("javax.ejb.Handle getHandle()"), 15 new java.rmi.server.Operation ("java.lang.String getName()"), 16 new java.rmi.server.Operation ("java.lang.Object getPrimaryKey()"), 17 new java.rmi.server.Operation ("int getType()"), 18 new java.rmi.server.Operation ("boolean isIdentical(javax.ejb.EJBObject)"), 19 new java.rmi.server.Operation ("void remove()"), 20 new java.rmi.server.Operation ("void setBnRoleMapperValue(hero.interfaces.BnRoleMapperValue)"), 21 new java.rmi.server.Operation ("void setName(java.lang.String)"), 22 new java.rmi.server.Operation ("void setType(int)") 23 }; 24 25 private static final long interfaceHash = -621059556750483078L; 26 27 private static final long serialVersionUID = 2; 28 29 private static boolean useNewInvoke; 30 private static java.lang.reflect.Method $method_getBnRole_0; 31 private static java.lang.reflect.Method $method_getBnRoleMapperValue_1; 32 private static java.lang.reflect.Method $method_getEJBHome_2; 33 private static java.lang.reflect.Method $method_getHandle_3; 34 private static java.lang.reflect.Method $method_getName_4; 35 private static java.lang.reflect.Method $method_getPrimaryKey_5; 36 private static java.lang.reflect.Method $method_getType_6; 37 private static java.lang.reflect.Method $method_isIdentical_7; 38 private static java.lang.reflect.Method $method_remove_8; 39 private static java.lang.reflect.Method $method_setBnRoleMapperValue_9; 40 private static java.lang.reflect.Method $method_setName_10; 41 private static java.lang.reflect.Method $method_setType_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_getBnRole_0 = hero.interfaces.BnRoleMapper.class.getMethod("getBnRole", new java.lang.Class [] {}); 54 $method_getBnRoleMapperValue_1 = hero.interfaces.BnRoleMapper.class.getMethod("getBnRoleMapperValue", new java.lang.Class [] {}); 55 $method_getEJBHome_2 = javax.ejb.EJBObject .class.getMethod("getEJBHome", new java.lang.Class [] {}); 56 $method_getHandle_3 = javax.ejb.EJBObject .class.getMethod("getHandle", new java.lang.Class [] {}); 57 $method_getName_4 = hero.interfaces.BnRoleMapper.class.getMethod("getName", new java.lang.Class [] {}); 58 $method_getPrimaryKey_5 = javax.ejb.EJBObject .class.getMethod("getPrimaryKey", new java.lang.Class [] {}); 59 $method_getType_6 = hero.interfaces.BnRoleMapper.class.getMethod("getType", new java.lang.Class [] {}); 60 $method_isIdentical_7 = javax.ejb.EJBObject .class.getMethod("isIdentical", new java.lang.Class [] {javax.ejb.EJBObject .class}); 61 $method_remove_8 = javax.ejb.EJBObject .class.getMethod("remove", new java.lang.Class [] {}); 62 $method_setBnRoleMapperValue_9 = hero.interfaces.BnRoleMapper.class.getMethod("setBnRoleMapperValue", new java.lang.Class [] {hero.interfaces.BnRoleMapperValue.class}); 63 $method_setName_10 = hero.interfaces.BnRoleMapper.class.getMethod("setName", new java.lang.Class [] {java.lang.String .class}); 64 $method_setType_11 = hero.interfaces.BnRoleMapper.class.getMethod("setType", new java.lang.Class [] {int.class}); 65 } catch (java.lang.NoSuchMethodException e) { 66 useNewInvoke = false; 67 } 68 } 69 70 public JOnASBnRoleMapper_1983914099Remote_Stub() { 72 super(); 73 } 74 public JOnASBnRoleMapper_1983914099Remote_Stub(java.rmi.server.RemoteRef ref) { 75 super(ref); 76 } 77 78 80 public hero.interfaces.BnRoleLocal getBnRole() 82 throws java.rmi.RemoteException 83 { 84 try { 85 if (useNewInvoke) { 86 Object $result = ref.invoke(this, $method_getBnRole_0, null, 38784828953770150L); 87 return ((hero.interfaces.BnRoleLocal) $result); 88 } else { 89 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 0, interfaceHash); 90 ref.invoke(call); 91 hero.interfaces.BnRoleLocal $result; 92 try { 93 java.io.ObjectInput in = call.getInputStream(); 94 $result = (hero.interfaces.BnRoleLocal) in.readObject(); 95 } catch (java.io.IOException e) { 96 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 97 } catch (java.lang.ClassNotFoundException e) { 98 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 99 } finally { 100 ref.done(call); 101 } 102 return $result; 103 } 104 } catch (java.lang.RuntimeException e) { 105 throw e; 106 } catch (java.rmi.RemoteException e) { 107 throw e; 108 } catch (java.lang.Exception e) { 109 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 110 } 111 } 112 113 public hero.interfaces.BnRoleMapperValue getBnRoleMapperValue() 115 throws java.rmi.RemoteException 116 { 117 try { 118 if (useNewInvoke) { 119 Object $result = ref.invoke(this, $method_getBnRoleMapperValue_1, null, 4036259508824687L); 120 return ((hero.interfaces.BnRoleMapperValue) $result); 121 } else { 122 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 1, interfaceHash); 123 ref.invoke(call); 124 hero.interfaces.BnRoleMapperValue $result; 125 try { 126 java.io.ObjectInput in = call.getInputStream(); 127 $result = (hero.interfaces.BnRoleMapperValue) in.readObject(); 128 } catch (java.io.IOException e) { 129 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 130 } catch (java.lang.ClassNotFoundException e) { 131 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 132 } finally { 133 ref.done(call); 134 } 135 return $result; 136 } 137 } catch (java.lang.RuntimeException e) { 138 throw e; 139 } catch (java.rmi.RemoteException e) { 140 throw e; 141 } catch (java.lang.Exception e) { 142 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 143 } 144 } 145 146 public javax.ejb.EJBHome getEJBHome() 148 throws java.rmi.RemoteException 149 { 150 try { 151 if (useNewInvoke) { 152 Object $result = ref.invoke(this, $method_getEJBHome_2, null, 3163754803894080547L); 153 return ((javax.ejb.EJBHome ) $result); 154 } else { 155 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 156 ref.invoke(call); 157 javax.ejb.EJBHome $result; 158 try { 159 java.io.ObjectInput in = call.getInputStream(); 160 $result = (javax.ejb.EJBHome ) in.readObject(); 161 } catch (java.io.IOException e) { 162 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 163 } catch (java.lang.ClassNotFoundException e) { 164 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 165 } finally { 166 ref.done(call); 167 } 168 return $result; 169 } 170 } catch (java.lang.RuntimeException e) { 171 throw e; 172 } catch (java.rmi.RemoteException e) { 173 throw e; 174 } catch (java.lang.Exception e) { 175 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 176 } 177 } 178 179 public javax.ejb.Handle getHandle() 181 throws java.rmi.RemoteException 182 { 183 try { 184 if (useNewInvoke) { 185 Object $result = ref.invoke(this, $method_getHandle_3, null, -1299374689989208114L); 186 return ((javax.ejb.Handle ) $result); 187 } else { 188 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 189 ref.invoke(call); 190 javax.ejb.Handle $result; 191 try { 192 java.io.ObjectInput in = call.getInputStream(); 193 $result = (javax.ejb.Handle ) in.readObject(); 194 } catch (java.io.IOException e) { 195 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 196 } catch (java.lang.ClassNotFoundException e) { 197 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 198 } finally { 199 ref.done(call); 200 } 201 return $result; 202 } 203 } catch (java.lang.RuntimeException e) { 204 throw e; 205 } catch (java.rmi.RemoteException e) { 206 throw e; 207 } catch (java.lang.Exception e) { 208 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 209 } 210 } 211 212 public java.lang.String getName() 214 throws java.rmi.RemoteException 215 { 216 try { 217 if (useNewInvoke) { 218 Object $result = ref.invoke(this, $method_getName_4, null, 6317137956467216454L); 219 return ((java.lang.String ) $result); 220 } else { 221 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 222 ref.invoke(call); 223 java.lang.String $result; 224 try { 225 java.io.ObjectInput in = call.getInputStream(); 226 $result = (java.lang.String ) in.readObject(); 227 } catch (java.io.IOException e) { 228 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 229 } catch (java.lang.ClassNotFoundException 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 java.lang.Object getPrimaryKey() 247 throws java.rmi.RemoteException 248 { 249 try { 250 if (useNewInvoke) { 251 Object $result = ref.invoke(this, $method_getPrimaryKey_5, null, 4840115071604865751L); 252 return ((java.lang.Object ) $result); 253 } else { 254 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 255 ref.invoke(call); 256 java.lang.Object $result; 257 try { 258 java.io.ObjectInput in = call.getInputStream(); 259 $result = (java.lang.Object ) in.readObject(); 260 } catch (java.io.IOException e) { 261 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 262 } catch (java.lang.ClassNotFoundException e) { 263 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 264 } finally { 265 ref.done(call); 266 } 267 return $result; 268 } 269 } catch (java.lang.RuntimeException e) { 270 throw e; 271 } catch (java.rmi.RemoteException e) { 272 throw e; 273 } catch (java.lang.Exception e) { 274 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 275 } 276 } 277 278 public int getType() 280 throws java.rmi.RemoteException 281 { 282 try { 283 if (useNewInvoke) { 284 Object $result = ref.invoke(this, $method_getType_6, null, -7030183335631564859L); 285 return ((java.lang.Integer ) $result).intValue(); 286 } else { 287 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 6, interfaceHash); 288 ref.invoke(call); 289 int $result; 290 try { 291 java.io.ObjectInput in = call.getInputStream(); 292 $result = in.readInt(); 293 } catch (java.io.IOException e) { 294 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 295 } finally { 296 ref.done(call); 297 } 298 return $result; 299 } 300 } catch (java.lang.RuntimeException e) { 301 throw e; 302 } catch (java.rmi.RemoteException e) { 303 throw e; 304 } catch (java.lang.Exception e) { 305 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 306 } 307 } 308 309 public boolean isIdentical(javax.ejb.EJBObject $param_EJBObject_1) 311 throws java.rmi.RemoteException 312 { 313 try { 314 if (useNewInvoke) { 315 Object $result = ref.invoke(this, $method_isIdentical_7, new java.lang.Object [] {$param_EJBObject_1}, -5909123752501984271L); 316 return ((java.lang.Boolean ) $result).booleanValue(); 317 } else { 318 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 7, interfaceHash); 319 try { 320 java.io.ObjectOutput out = call.getOutputStream(); 321 out.writeObject($param_EJBObject_1); 322 } catch (java.io.IOException e) { 323 throw new java.rmi.MarshalException ("error marshalling arguments", e); 324 } 325 ref.invoke(call); 326 boolean $result; 327 try { 328 java.io.ObjectInput in = call.getInputStream(); 329 $result = in.readBoolean(); 330 } catch (java.io.IOException e) { 331 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 332 } finally { 333 ref.done(call); 334 } 335 return $result; 336 } 337 } catch (java.lang.RuntimeException e) { 338 throw e; 339 } catch (java.rmi.RemoteException e) { 340 throw e; 341 } catch (java.lang.Exception e) { 342 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 343 } 344 } 345 346 public void remove() 348 throws java.rmi.RemoteException , javax.ejb.RemoveException 349 { 350 try { 351 if (useNewInvoke) { 352 ref.invoke(this, $method_remove_8, null, -5013858639939630501L); 353 } else { 354 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 8, interfaceHash); 355 ref.invoke(call); 356 ref.done(call); 357 } 358 } catch (java.lang.RuntimeException e) { 359 throw e; 360 } catch (java.rmi.RemoteException e) { 361 throw e; 362 } catch (javax.ejb.RemoveException e) { 363 throw e; 364 } catch (java.lang.Exception e) { 365 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 366 } 367 } 368 369 public void setBnRoleMapperValue(hero.interfaces.BnRoleMapperValue $param_BnRoleMapperValue_1) 371 throws java.rmi.RemoteException 372 { 373 try { 374 if (useNewInvoke) { 375 ref.invoke(this, $method_setBnRoleMapperValue_9, new java.lang.Object [] {$param_BnRoleMapperValue_1}, -3552166846736906816L); 376 } else { 377 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 9, interfaceHash); 378 try { 379 java.io.ObjectOutput out = call.getOutputStream(); 380 out.writeObject($param_BnRoleMapperValue_1); 381 } catch (java.io.IOException e) { 382 throw new java.rmi.MarshalException ("error marshalling arguments", e); 383 } 384 ref.invoke(call); 385 ref.done(call); 386 } 387 } catch (java.lang.RuntimeException e) { 388 throw e; 389 } catch (java.rmi.RemoteException e) { 390 throw e; 391 } catch (java.lang.Exception e) { 392 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 393 } 394 } 395 396 public void setName(java.lang.String $param_String_1) 398 throws java.rmi.RemoteException 399 { 400 try { 401 if (useNewInvoke) { 402 ref.invoke(this, $method_setName_10, new java.lang.Object [] {$param_String_1}, 1344297395548290975L); 403 } else { 404 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 10, interfaceHash); 405 try { 406 java.io.ObjectOutput out = call.getOutputStream(); 407 out.writeObject($param_String_1); 408 } catch (java.io.IOException e) { 409 throw new java.rmi.MarshalException ("error marshalling arguments", e); 410 } 411 ref.invoke(call); 412 ref.done(call); 413 } 414 } catch (java.lang.RuntimeException e) { 415 throw e; 416 } catch (java.rmi.RemoteException e) { 417 throw e; 418 } catch (java.lang.Exception e) { 419 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 420 } 421 } 422 423 public void setType(int $param_int_1) 425 throws java.rmi.RemoteException 426 { 427 try { 428 if (useNewInvoke) { 429 ref.invoke(this, $method_setType_11, new java.lang.Object [] {new java.lang.Integer ($param_int_1)}, -7949851783537712531L); 430 } else { 431 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 11, interfaceHash); 432 try { 433 java.io.ObjectOutput out = call.getOutputStream(); 434 out.writeInt($param_int_1); 435 } catch (java.io.IOException e) { 436 throw new java.rmi.MarshalException ("error marshalling arguments", e); 437 } 438 ref.invoke(call); 439 ref.done(call); 440 } 441 } catch (java.lang.RuntimeException e) { 442 throw e; 443 } catch (java.rmi.RemoteException e) { 444 throw e; 445 } catch (java.lang.Exception e) { 446 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 447 } 448 } 449 } 450 | Popular Tags |