1 4 package hero.interfaces; 5 6 public final class JOnASBnNode_1286725715Home_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.BnNodeHome, java.rmi.Remote , javax.ejb.EJBHome 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("hero.interfaces.BnNode create(hero.interfaces.BnNodeValue)"), 12 new java.rmi.server.Operation ("hero.interfaces.BnNode create(java.lang.String, int)"), 13 new java.rmi.server.Operation ("java.util.Collection findAll()"), 14 new java.rmi.server.Operation ("hero.interfaces.BnNode findByName(java.lang.String, java.lang.String)"), 15 new java.rmi.server.Operation ("hero.interfaces.BnNode findByPrimaryKey(hero.interfaces.BnNodePK)"), 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 = -1724239472346480252L; 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.BnNodeHome.class.getMethod("create", new java.lang.Class [] {hero.interfaces.BnNodeValue.class}); 48 $method_create_1 = hero.interfaces.BnNodeHome.class.getMethod("create", new java.lang.Class [] {java.lang.String .class, int.class}); 49 $method_findAll_2 = hero.interfaces.BnNodeHome.class.getMethod("findAll", new java.lang.Class [] {}); 50 $method_findByName_3 = hero.interfaces.BnNodeHome.class.getMethod("findByName", new java.lang.Class [] {java.lang.String .class, java.lang.String .class}); 51 $method_findByPrimaryKey_4 = hero.interfaces.BnNodeHome.class.getMethod("findByPrimaryKey", new java.lang.Class [] {hero.interfaces.BnNodePK.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 JOnASBnNode_1286725715Home_Stub() { 63 super(); 64 } 65 public JOnASBnNode_1286725715Home_Stub(java.rmi.server.RemoteRef ref) { 66 super(ref); 67 } 68 69 71 public hero.interfaces.BnNode create(hero.interfaces.BnNodeValue $param_BnNodeValue_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_BnNodeValue_1}, -2164528038805668631L); 78 return ((hero.interfaces.BnNode) $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_BnNodeValue_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.BnNode $result; 89 try { 90 java.io.ObjectInput in = call.getInputStream(); 91 $result = (hero.interfaces.BnNode) 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.BnNode create(java.lang.String $param_String_1, int $param_int_2) 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, new java.lang.Integer ($param_int_2)}, 1060046374684199814L); 121 return ((hero.interfaces.BnNode) $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 out.writeInt($param_int_2); 128 } catch (java.io.IOException e) { 129 throw new java.rmi.MarshalException ("error marshalling arguments", e); 130 } 131 ref.invoke(call); 132 hero.interfaces.BnNode $result; 133 try { 134 java.io.ObjectInput in = call.getInputStream(); 135 $result = (hero.interfaces.BnNode) in.readObject(); 136 } catch (java.io.IOException e) { 137 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 138 } catch (java.lang.ClassNotFoundException e) { 139 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 140 } finally { 141 ref.done(call); 142 } 143 return $result; 144 } 145 } catch (java.lang.RuntimeException e) { 146 throw e; 147 } catch (java.rmi.RemoteException e) { 148 throw e; 149 } catch (hero.interfaces.InvalidValueException e) { 150 throw e; 151 } catch (javax.ejb.CreateException e) { 152 throw e; 153 } catch (java.lang.Exception e) { 154 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 155 } 156 } 157 158 public java.util.Collection findAll() 160 throws java.rmi.RemoteException , javax.ejb.FinderException 161 { 162 try { 163 if (useNewInvoke) { 164 Object $result = ref.invoke(this, $method_findAll_2, null, -4609096605735334920L); 165 return ((java.util.Collection ) $result); 166 } else { 167 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 168 ref.invoke(call); 169 java.util.Collection $result; 170 try { 171 java.io.ObjectInput in = call.getInputStream(); 172 $result = (java.util.Collection ) in.readObject(); 173 } catch (java.io.IOException e) { 174 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 175 } catch (java.lang.ClassNotFoundException e) { 176 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 177 } finally { 178 ref.done(call); 179 } 180 return $result; 181 } 182 } catch (java.lang.RuntimeException e) { 183 throw e; 184 } catch (java.rmi.RemoteException e) { 185 throw e; 186 } catch (javax.ejb.FinderException e) { 187 throw e; 188 } catch (java.lang.Exception e) { 189 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 190 } 191 } 192 193 public hero.interfaces.BnNode findByName(java.lang.String $param_String_1, java.lang.String $param_String_2) 195 throws java.rmi.RemoteException , javax.ejb.FinderException 196 { 197 try { 198 if (useNewInvoke) { 199 Object $result = ref.invoke(this, $method_findByName_3, new java.lang.Object [] {$param_String_1, $param_String_2}, 3787955564541794791L); 200 return ((hero.interfaces.BnNode) $result); 201 } else { 202 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 203 try { 204 java.io.ObjectOutput out = call.getOutputStream(); 205 out.writeObject($param_String_1); 206 out.writeObject($param_String_2); 207 } catch (java.io.IOException e) { 208 throw new java.rmi.MarshalException ("error marshalling arguments", e); 209 } 210 ref.invoke(call); 211 hero.interfaces.BnNode $result; 212 try { 213 java.io.ObjectInput in = call.getInputStream(); 214 $result = (hero.interfaces.BnNode) in.readObject(); 215 } catch (java.io.IOException e) { 216 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 217 } catch (java.lang.ClassNotFoundException e) { 218 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 219 } finally { 220 ref.done(call); 221 } 222 return $result; 223 } 224 } catch (java.lang.RuntimeException e) { 225 throw e; 226 } catch (java.rmi.RemoteException e) { 227 throw e; 228 } catch (javax.ejb.FinderException e) { 229 throw e; 230 } catch (java.lang.Exception e) { 231 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 232 } 233 } 234 235 public hero.interfaces.BnNode findByPrimaryKey(hero.interfaces.BnNodePK $param_BnNodePK_1) 237 throws java.rmi.RemoteException , javax.ejb.FinderException 238 { 239 try { 240 if (useNewInvoke) { 241 Object $result = ref.invoke(this, $method_findByPrimaryKey_4, new java.lang.Object [] {$param_BnNodePK_1}, -1907426636453283062L); 242 return ((hero.interfaces.BnNode) $result); 243 } else { 244 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 245 try { 246 java.io.ObjectOutput out = call.getOutputStream(); 247 out.writeObject($param_BnNodePK_1); 248 } catch (java.io.IOException e) { 249 throw new java.rmi.MarshalException ("error marshalling arguments", e); 250 } 251 ref.invoke(call); 252 hero.interfaces.BnNode $result; 253 try { 254 java.io.ObjectInput in = call.getInputStream(); 255 $result = (hero.interfaces.BnNode) in.readObject(); 256 } catch (java.io.IOException e) { 257 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 258 } catch (java.lang.ClassNotFoundException e) { 259 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 260 } finally { 261 ref.done(call); 262 } 263 return $result; 264 } 265 } catch (java.lang.RuntimeException e) { 266 throw e; 267 } catch (java.rmi.RemoteException e) { 268 throw e; 269 } catch (javax.ejb.FinderException e) { 270 throw e; 271 } catch (java.lang.Exception e) { 272 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 273 } 274 } 275 276 public javax.ejb.EJBMetaData getEJBMetaData() 278 throws java.rmi.RemoteException 279 { 280 try { 281 if (useNewInvoke) { 282 Object $result = ref.invoke(this, $method_getEJBMetaData_5, null, 6217030353865232067L); 283 return ((javax.ejb.EJBMetaData ) $result); 284 } else { 285 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 286 ref.invoke(call); 287 javax.ejb.EJBMetaData $result; 288 try { 289 java.io.ObjectInput in = call.getInputStream(); 290 $result = (javax.ejb.EJBMetaData ) in.readObject(); 291 } catch (java.io.IOException e) { 292 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 293 } catch (java.lang.ClassNotFoundException 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 javax.ejb.HomeHandle getHomeHandle() 311 throws java.rmi.RemoteException 312 { 313 try { 314 if (useNewInvoke) { 315 Object $result = ref.invoke(this, $method_getHomeHandle_6, null, -8748260460775500658L); 316 return ((javax.ejb.HomeHandle ) $result); 317 } else { 318 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 6, interfaceHash); 319 ref.invoke(call); 320 javax.ejb.HomeHandle $result; 321 try { 322 java.io.ObjectInput in = call.getInputStream(); 323 $result = (javax.ejb.HomeHandle ) in.readObject(); 324 } catch (java.io.IOException e) { 325 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 326 } catch (java.lang.ClassNotFoundException e) { 327 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 328 } finally { 329 ref.done(call); 330 } 331 return $result; 332 } 333 } catch (java.lang.RuntimeException e) { 334 throw e; 335 } catch (java.rmi.RemoteException e) { 336 throw e; 337 } catch (java.lang.Exception e) { 338 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 339 } 340 } 341 342 public void remove(java.lang.Object $param_Object_1) 344 throws java.rmi.RemoteException , javax.ejb.RemoveException 345 { 346 try { 347 if (useNewInvoke) { 348 ref.invoke(this, $method_remove_7, new java.lang.Object [] {$param_Object_1}, 4460578865329725433L); 349 } else { 350 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 7, interfaceHash); 351 try { 352 java.io.ObjectOutput out = call.getOutputStream(); 353 out.writeObject($param_Object_1); 354 } catch (java.io.IOException e) { 355 throw new java.rmi.MarshalException ("error marshalling arguments", e); 356 } 357 ref.invoke(call); 358 ref.done(call); 359 } 360 } catch (java.lang.RuntimeException e) { 361 throw e; 362 } catch (java.rmi.RemoteException e) { 363 throw e; 364 } catch (javax.ejb.RemoveException e) { 365 throw e; 366 } catch (java.lang.Exception e) { 367 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 368 } 369 } 370 371 public void remove(javax.ejb.Handle $param_Handle_1) 373 throws java.rmi.RemoteException , javax.ejb.RemoveException 374 { 375 try { 376 if (useNewInvoke) { 377 ref.invoke(this, $method_remove_8, new java.lang.Object [] {$param_Handle_1}, 1121126102706750000L); 378 } else { 379 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 8, interfaceHash); 380 try { 381 java.io.ObjectOutput out = call.getOutputStream(); 382 out.writeObject($param_Handle_1); 383 } catch (java.io.IOException e) { 384 throw new java.rmi.MarshalException ("error marshalling arguments", e); 385 } 386 ref.invoke(call); 387 ref.done(call); 388 } 389 } catch (java.lang.RuntimeException e) { 390 throw e; 391 } catch (java.rmi.RemoteException e) { 392 throw e; 393 } catch (javax.ejb.RemoveException e) { 394 throw e; 395 } catch (java.lang.Exception e) { 396 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 397 } 398 } 399 } 400 | Popular Tags |