1 4 package hero.interfaces; 5 6 public final class JOnASBnAgent_1234454663Home_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.BnAgentHome, java.rmi.Remote , javax.ejb.EJBHome 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("hero.interfaces.BnAgent create(hero.interfaces.BnAgentValue)"), 12 new java.rmi.server.Operation ("hero.interfaces.BnAgent create(java.lang.String)"), 13 new java.rmi.server.Operation ("java.util.Collection findAll()"), 14 new java.rmi.server.Operation ("hero.interfaces.BnAgent findByName(java.lang.String, java.lang.String)"), 15 new java.rmi.server.Operation ("hero.interfaces.BnAgent findByPrimaryKey(hero.interfaces.BnAgentPK)"), 16 new java.rmi.server.Operation ("javax.ejb.EJBMetaData getEJBMetaData()"), 17 new java.rmi.server.Operation ("javax.ejb.HomeHandle getHomeHandle()"), 18 new java.rmi.server.Operation ("void remove(java.lang.Object)"), 19 new java.rmi.server.Operation ("void remove(javax.ejb.Handle)") 20 }; 21 22 private static final long interfaceHash = -7673259899340607417L; 23 24 private static final long serialVersionUID = 2; 25 26 private static boolean useNewInvoke; 27 private static java.lang.reflect.Method $method_create_0; 28 private static java.lang.reflect.Method $method_create_1; 29 private static java.lang.reflect.Method $method_findAll_2; 30 private static java.lang.reflect.Method $method_findByName_3; 31 private static java.lang.reflect.Method $method_findByPrimaryKey_4; 32 private static java.lang.reflect.Method $method_getEJBMetaData_5; 33 private static java.lang.reflect.Method $method_getHomeHandle_6; 34 private static java.lang.reflect.Method $method_remove_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_create_0 = hero.interfaces.BnAgentHome.class.getMethod("create", new java.lang.Class [] {hero.interfaces.BnAgentValue.class}); 48 $method_create_1 = hero.interfaces.BnAgentHome.class.getMethod("create", new java.lang.Class [] {java.lang.String .class}); 49 $method_findAll_2 = hero.interfaces.BnAgentHome.class.getMethod("findAll", new java.lang.Class [] {}); 50 $method_findByName_3 = hero.interfaces.BnAgentHome.class.getMethod("findByName", new java.lang.Class [] {java.lang.String .class, java.lang.String .class}); 51 $method_findByPrimaryKey_4 = hero.interfaces.BnAgentHome.class.getMethod("findByPrimaryKey", new java.lang.Class [] {hero.interfaces.BnAgentPK.class}); 52 $method_getEJBMetaData_5 = javax.ejb.EJBHome .class.getMethod("getEJBMetaData", new java.lang.Class [] {}); 53 $method_getHomeHandle_6 = javax.ejb.EJBHome .class.getMethod("getHomeHandle", new java.lang.Class [] {}); 54 $method_remove_7 = javax.ejb.EJBHome .class.getMethod("remove", new java.lang.Class [] {java.lang.Object .class}); 55 $method_remove_8 = javax.ejb.EJBHome .class.getMethod("remove", new java.lang.Class [] {javax.ejb.Handle .class}); 56 } catch (java.lang.NoSuchMethodException e) { 57 useNewInvoke = false; 58 } 59 } 60 61 public JOnASBnAgent_1234454663Home_Stub() { 63 super(); 64 } 65 public JOnASBnAgent_1234454663Home_Stub(java.rmi.server.RemoteRef ref) { 66 super(ref); 67 } 68 69 71 public hero.interfaces.BnAgent create(hero.interfaces.BnAgentValue $param_BnAgentValue_1) 73 throws hero.interfaces.InvalidValueException, java.rmi.RemoteException , javax.ejb.CreateException 74 { 75 try { 76 if (useNewInvoke) { 77 Object $result = ref.invoke(this, $method_create_0, new java.lang.Object [] {$param_BnAgentValue_1}, 8874097910614782004L); 78 return ((hero.interfaces.BnAgent) $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_BnAgentValue_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.BnAgent $result; 89 try { 90 java.io.ObjectInput in = call.getInputStream(); 91 $result = (hero.interfaces.BnAgent) 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.interfaces.InvalidValueException e) { 106 throw e; 107 } catch (javax.ejb.CreateException e) { 108 throw e; 109 } catch (java.lang.Exception e) { 110 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 111 } 112 } 113 114 public hero.interfaces.BnAgent create(java.lang.String $param_String_1) 116 throws hero.interfaces.InvalidValueException, java.rmi.RemoteException , javax.ejb.CreateException 117 { 118 try { 119 if (useNewInvoke) { 120 Object $result = ref.invoke(this, $method_create_1, new java.lang.Object [] {$param_String_1}, -2629586938552307123L); 121 return ((hero.interfaces.BnAgent) $result); 122 } else { 123 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 1, interfaceHash); 124 try { 125 java.io.ObjectOutput out = call.getOutputStream(); 126 out.writeObject($param_String_1); 127 } catch (java.io.IOException e) { 128 throw new java.rmi.MarshalException ("error marshalling arguments", e); 129 } 130 ref.invoke(call); 131 hero.interfaces.BnAgent $result; 132 try { 133 java.io.ObjectInput in = call.getInputStream(); 134 $result = (hero.interfaces.BnAgent) in.readObject(); 135 } catch (java.io.IOException e) { 136 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 137 } catch (java.lang.ClassNotFoundException e) { 138 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 139 } finally { 140 ref.done(call); 141 } 142 return $result; 143 } 144 } catch (java.lang.RuntimeException e) { 145 throw e; 146 } catch (java.rmi.RemoteException e) { 147 throw e; 148 } catch (hero.interfaces.InvalidValueException e) { 149 throw e; 150 } catch (javax.ejb.CreateException e) { 151 throw e; 152 } catch (java.lang.Exception e) { 153 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 154 } 155 } 156 157 public java.util.Collection findAll() 159 throws java.rmi.RemoteException , javax.ejb.FinderException 160 { 161 try { 162 if (useNewInvoke) { 163 Object $result = ref.invoke(this, $method_findAll_2, null, -4609096605735334920L); 164 return ((java.util.Collection ) $result); 165 } else { 166 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 167 ref.invoke(call); 168 java.util.Collection $result; 169 try { 170 java.io.ObjectInput in = call.getInputStream(); 171 $result = (java.util.Collection ) in.readObject(); 172 } catch (java.io.IOException e) { 173 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 174 } catch (java.lang.ClassNotFoundException e) { 175 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 176 } finally { 177 ref.done(call); 178 } 179 return $result; 180 } 181 } catch (java.lang.RuntimeException e) { 182 throw e; 183 } catch (java.rmi.RemoteException e) { 184 throw e; 185 } catch (javax.ejb.FinderException e) { 186 throw e; 187 } catch (java.lang.Exception e) { 188 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 189 } 190 } 191 192 public hero.interfaces.BnAgent findByName(java.lang.String $param_String_1, java.lang.String $param_String_2) 194 throws java.rmi.RemoteException , javax.ejb.FinderException 195 { 196 try { 197 if (useNewInvoke) { 198 Object $result = ref.invoke(this, $method_findByName_3, new java.lang.Object [] {$param_String_1, $param_String_2}, -1150722779564494279L); 199 return ((hero.interfaces.BnAgent) $result); 200 } else { 201 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 202 try { 203 java.io.ObjectOutput out = call.getOutputStream(); 204 out.writeObject($param_String_1); 205 out.writeObject($param_String_2); 206 } catch (java.io.IOException e) { 207 throw new java.rmi.MarshalException ("error marshalling arguments", e); 208 } 209 ref.invoke(call); 210 hero.interfaces.BnAgent $result; 211 try { 212 java.io.ObjectInput in = call.getInputStream(); 213 $result = (hero.interfaces.BnAgent) in.readObject(); 214 } catch (java.io.IOException e) { 215 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 216 } catch (java.lang.ClassNotFoundException e) { 217 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 218 } finally { 219 ref.done(call); 220 } 221 return $result; 222 } 223 } catch (java.lang.RuntimeException e) { 224 throw e; 225 } catch (java.rmi.RemoteException e) { 226 throw e; 227 } catch (javax.ejb.FinderException e) { 228 throw e; 229 } catch (java.lang.Exception e) { 230 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 231 } 232 } 233 234 public hero.interfaces.BnAgent findByPrimaryKey(hero.interfaces.BnAgentPK $param_BnAgentPK_1) 236 throws java.rmi.RemoteException , javax.ejb.FinderException 237 { 238 try { 239 if (useNewInvoke) { 240 Object $result = ref.invoke(this, $method_findByPrimaryKey_4, new java.lang.Object [] {$param_BnAgentPK_1}, 6065819717914162172L); 241 return ((hero.interfaces.BnAgent) $result); 242 } else { 243 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 244 try { 245 java.io.ObjectOutput out = call.getOutputStream(); 246 out.writeObject($param_BnAgentPK_1); 247 } catch (java.io.IOException e) { 248 throw new java.rmi.MarshalException ("error marshalling arguments", e); 249 } 250 ref.invoke(call); 251 hero.interfaces.BnAgent $result; 252 try { 253 java.io.ObjectInput in = call.getInputStream(); 254 $result = (hero.interfaces.BnAgent) in.readObject(); 255 } catch (java.io.IOException e) { 256 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 257 } catch (java.lang.ClassNotFoundException e) { 258 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 259 } finally { 260 ref.done(call); 261 } 262 return $result; 263 } 264 } catch (java.lang.RuntimeException e) { 265 throw e; 266 } catch (java.rmi.RemoteException e) { 267 throw e; 268 } catch (javax.ejb.FinderException 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 javax.ejb.EJBMetaData getEJBMetaData() 277 throws java.rmi.RemoteException 278 { 279 try { 280 if (useNewInvoke) { 281 Object $result = ref.invoke(this, $method_getEJBMetaData_5, null, 6217030353865232067L); 282 return ((javax.ejb.EJBMetaData ) $result); 283 } else { 284 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 285 ref.invoke(call); 286 javax.ejb.EJBMetaData $result; 287 try { 288 java.io.ObjectInput in = call.getInputStream(); 289 $result = (javax.ejb.EJBMetaData ) 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 javax.ejb.HomeHandle getHomeHandle() 310 throws java.rmi.RemoteException 311 { 312 try { 313 if (useNewInvoke) { 314 Object $result = ref.invoke(this, $method_getHomeHandle_6, null, -8748260460775500658L); 315 return ((javax.ejb.HomeHandle ) $result); 316 } else { 317 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 6, interfaceHash); 318 ref.invoke(call); 319 javax.ejb.HomeHandle $result; 320 try { 321 java.io.ObjectInput in = call.getInputStream(); 322 $result = (javax.ejb.HomeHandle ) 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 void remove(java.lang.Object $param_Object_1) 343 throws java.rmi.RemoteException , javax.ejb.RemoveException 344 { 345 try { 346 if (useNewInvoke) { 347 ref.invoke(this, $method_remove_7, new java.lang.Object [] {$param_Object_1}, 4460578865329725433L); 348 } else { 349 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 7, interfaceHash); 350 try { 351 java.io.ObjectOutput out = call.getOutputStream(); 352 out.writeObject($param_Object_1); 353 } catch (java.io.IOException e) { 354 throw new java.rmi.MarshalException ("error marshalling arguments", e); 355 } 356 ref.invoke(call); 357 ref.done(call); 358 } 359 } catch (java.lang.RuntimeException e) { 360 throw e; 361 } catch (java.rmi.RemoteException e) { 362 throw e; 363 } catch (javax.ejb.RemoveException e) { 364 throw e; 365 } catch (java.lang.Exception e) { 366 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 367 } 368 } 369 370 public void remove(javax.ejb.Handle $param_Handle_1) 372 throws java.rmi.RemoteException , javax.ejb.RemoveException 373 { 374 try { 375 if (useNewInvoke) { 376 ref.invoke(this, $method_remove_8, new java.lang.Object [] {$param_Handle_1}, 1121126102706750000L); 377 } else { 378 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 8, interfaceHash); 379 try { 380 java.io.ObjectOutput out = call.getOutputStream(); 381 out.writeObject($param_Handle_1); 382 } catch (java.io.IOException e) { 383 throw new java.rmi.MarshalException ("error marshalling arguments", e); 384 } 385 ref.invoke(call); 386 ref.done(call); 387 } 388 } catch (java.lang.RuntimeException e) { 389 throw e; 390 } catch (java.rmi.RemoteException e) { 391 throw e; 392 } catch (javax.ejb.RemoveException e) { 393 throw e; 394 } catch (java.lang.Exception e) { 395 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 396 } 397 } 398 } 399 | Popular Tags |