1 4 package hero.interfaces; 5 6 public final class JOnASBnEdge_1492964787Home_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.BnEdgeHome, java.rmi.Remote , javax.ejb.EJBHome 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("hero.interfaces.BnEdge create()"), 12 new java.rmi.server.Operation ("hero.interfaces.BnEdge create(hero.interfaces.BnEdgeValue)"), 13 new java.rmi.server.Operation ("java.util.Collection findAll()"), 14 new java.rmi.server.Operation ("hero.interfaces.BnEdge findByName(java.lang.String, java.lang.String)"), 15 new java.rmi.server.Operation ("hero.interfaces.BnEdge findByPrimaryKey(hero.interfaces.BnEdgePK)"), 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 = -476129927954346815L; 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.BnEdgeHome.class.getMethod("create", new java.lang.Class [] {}); 48 $method_create_1 = hero.interfaces.BnEdgeHome.class.getMethod("create", new java.lang.Class [] {hero.interfaces.BnEdgeValue.class}); 49 $method_findAll_2 = hero.interfaces.BnEdgeHome.class.getMethod("findAll", new java.lang.Class [] {}); 50 $method_findByName_3 = hero.interfaces.BnEdgeHome.class.getMethod("findByName", new java.lang.Class [] {java.lang.String .class, java.lang.String .class}); 51 $method_findByPrimaryKey_4 = hero.interfaces.BnEdgeHome.class.getMethod("findByPrimaryKey", new java.lang.Class [] {hero.interfaces.BnEdgePK.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 JOnASBnEdge_1492964787Home_Stub() { 63 super(); 64 } 65 public JOnASBnEdge_1492964787Home_Stub(java.rmi.server.RemoteRef ref) { 66 super(ref); 67 } 68 69 71 public hero.interfaces.BnEdge create() 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, null, 3883537921826048800L); 78 return ((hero.interfaces.BnEdge) $result); 79 } else { 80 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 0, interfaceHash); 81 ref.invoke(call); 82 hero.interfaces.BnEdge $result; 83 try { 84 java.io.ObjectInput in = call.getInputStream(); 85 $result = (hero.interfaces.BnEdge) in.readObject(); 86 } catch (java.io.IOException e) { 87 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 88 } catch (java.lang.ClassNotFoundException e) { 89 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 90 } finally { 91 ref.done(call); 92 } 93 return $result; 94 } 95 } catch (java.lang.RuntimeException e) { 96 throw e; 97 } catch (java.rmi.RemoteException e) { 98 throw e; 99 } catch (hero.interfaces.InvalidValueException e) { 100 throw e; 101 } catch (javax.ejb.CreateException e) { 102 throw e; 103 } catch (java.lang.Exception e) { 104 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 105 } 106 } 107 108 public hero.interfaces.BnEdge create(hero.interfaces.BnEdgeValue $param_BnEdgeValue_1) 110 throws java.rmi.RemoteException , javax.ejb.CreateException 111 { 112 try { 113 if (useNewInvoke) { 114 Object $result = ref.invoke(this, $method_create_1, new java.lang.Object [] {$param_BnEdgeValue_1}, -7861876205293318731L); 115 return ((hero.interfaces.BnEdge) $result); 116 } else { 117 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 1, interfaceHash); 118 try { 119 java.io.ObjectOutput out = call.getOutputStream(); 120 out.writeObject($param_BnEdgeValue_1); 121 } catch (java.io.IOException e) { 122 throw new java.rmi.MarshalException ("error marshalling arguments", e); 123 } 124 ref.invoke(call); 125 hero.interfaces.BnEdge $result; 126 try { 127 java.io.ObjectInput in = call.getInputStream(); 128 $result = (hero.interfaces.BnEdge) in.readObject(); 129 } catch (java.io.IOException e) { 130 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 131 } catch (java.lang.ClassNotFoundException e) { 132 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 133 } finally { 134 ref.done(call); 135 } 136 return $result; 137 } 138 } catch (java.lang.RuntimeException e) { 139 throw e; 140 } catch (java.rmi.RemoteException e) { 141 throw e; 142 } catch (javax.ejb.CreateException e) { 143 throw e; 144 } catch (java.lang.Exception e) { 145 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 146 } 147 } 148 149 public java.util.Collection findAll() 151 throws java.rmi.RemoteException , javax.ejb.FinderException 152 { 153 try { 154 if (useNewInvoke) { 155 Object $result = ref.invoke(this, $method_findAll_2, null, -4609096605735334920L); 156 return ((java.util.Collection ) $result); 157 } else { 158 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 159 ref.invoke(call); 160 java.util.Collection $result; 161 try { 162 java.io.ObjectInput in = call.getInputStream(); 163 $result = (java.util.Collection ) in.readObject(); 164 } catch (java.io.IOException e) { 165 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 166 } catch (java.lang.ClassNotFoundException e) { 167 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 168 } finally { 169 ref.done(call); 170 } 171 return $result; 172 } 173 } catch (java.lang.RuntimeException e) { 174 throw e; 175 } catch (java.rmi.RemoteException e) { 176 throw e; 177 } catch (javax.ejb.FinderException e) { 178 throw e; 179 } catch (java.lang.Exception e) { 180 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 181 } 182 } 183 184 public hero.interfaces.BnEdge findByName(java.lang.String $param_String_1, java.lang.String $param_String_2) 186 throws java.rmi.RemoteException , javax.ejb.FinderException 187 { 188 try { 189 if (useNewInvoke) { 190 Object $result = ref.invoke(this, $method_findByName_3, new java.lang.Object [] {$param_String_1, $param_String_2}, 3775331026943810964L); 191 return ((hero.interfaces.BnEdge) $result); 192 } else { 193 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 194 try { 195 java.io.ObjectOutput out = call.getOutputStream(); 196 out.writeObject($param_String_1); 197 out.writeObject($param_String_2); 198 } catch (java.io.IOException e) { 199 throw new java.rmi.MarshalException ("error marshalling arguments", e); 200 } 201 ref.invoke(call); 202 hero.interfaces.BnEdge $result; 203 try { 204 java.io.ObjectInput in = call.getInputStream(); 205 $result = (hero.interfaces.BnEdge) in.readObject(); 206 } catch (java.io.IOException e) { 207 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 208 } catch (java.lang.ClassNotFoundException e) { 209 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 210 } finally { 211 ref.done(call); 212 } 213 return $result; 214 } 215 } catch (java.lang.RuntimeException e) { 216 throw e; 217 } catch (java.rmi.RemoteException e) { 218 throw e; 219 } catch (javax.ejb.FinderException e) { 220 throw e; 221 } catch (java.lang.Exception e) { 222 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 223 } 224 } 225 226 public hero.interfaces.BnEdge findByPrimaryKey(hero.interfaces.BnEdgePK $param_BnEdgePK_1) 228 throws java.rmi.RemoteException , javax.ejb.FinderException 229 { 230 try { 231 if (useNewInvoke) { 232 Object $result = ref.invoke(this, $method_findByPrimaryKey_4, new java.lang.Object [] {$param_BnEdgePK_1}, 4696175275891901310L); 233 return ((hero.interfaces.BnEdge) $result); 234 } else { 235 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 236 try { 237 java.io.ObjectOutput out = call.getOutputStream(); 238 out.writeObject($param_BnEdgePK_1); 239 } catch (java.io.IOException e) { 240 throw new java.rmi.MarshalException ("error marshalling arguments", e); 241 } 242 ref.invoke(call); 243 hero.interfaces.BnEdge $result; 244 try { 245 java.io.ObjectInput in = call.getInputStream(); 246 $result = (hero.interfaces.BnEdge) in.readObject(); 247 } catch (java.io.IOException e) { 248 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 249 } catch (java.lang.ClassNotFoundException e) { 250 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 251 } finally { 252 ref.done(call); 253 } 254 return $result; 255 } 256 } catch (java.lang.RuntimeException e) { 257 throw e; 258 } catch (java.rmi.RemoteException e) { 259 throw e; 260 } catch (javax.ejb.FinderException e) { 261 throw e; 262 } catch (java.lang.Exception e) { 263 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 264 } 265 } 266 267 public javax.ejb.EJBMetaData getEJBMetaData() 269 throws java.rmi.RemoteException 270 { 271 try { 272 if (useNewInvoke) { 273 Object $result = ref.invoke(this, $method_getEJBMetaData_5, null, 6217030353865232067L); 274 return ((javax.ejb.EJBMetaData ) $result); 275 } else { 276 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 277 ref.invoke(call); 278 javax.ejb.EJBMetaData $result; 279 try { 280 java.io.ObjectInput in = call.getInputStream(); 281 $result = (javax.ejb.EJBMetaData ) in.readObject(); 282 } catch (java.io.IOException e) { 283 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 284 } catch (java.lang.ClassNotFoundException e) { 285 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 286 } finally { 287 ref.done(call); 288 } 289 return $result; 290 } 291 } catch (java.lang.RuntimeException e) { 292 throw e; 293 } catch (java.rmi.RemoteException e) { 294 throw e; 295 } catch (java.lang.Exception e) { 296 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 297 } 298 } 299 300 public javax.ejb.HomeHandle getHomeHandle() 302 throws java.rmi.RemoteException 303 { 304 try { 305 if (useNewInvoke) { 306 Object $result = ref.invoke(this, $method_getHomeHandle_6, null, -8748260460775500658L); 307 return ((javax.ejb.HomeHandle ) $result); 308 } else { 309 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 6, interfaceHash); 310 ref.invoke(call); 311 javax.ejb.HomeHandle $result; 312 try { 313 java.io.ObjectInput in = call.getInputStream(); 314 $result = (javax.ejb.HomeHandle ) in.readObject(); 315 } catch (java.io.IOException e) { 316 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 317 } catch (java.lang.ClassNotFoundException e) { 318 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 319 } finally { 320 ref.done(call); 321 } 322 return $result; 323 } 324 } catch (java.lang.RuntimeException e) { 325 throw e; 326 } catch (java.rmi.RemoteException e) { 327 throw e; 328 } catch (java.lang.Exception e) { 329 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 330 } 331 } 332 333 public void remove(java.lang.Object $param_Object_1) 335 throws java.rmi.RemoteException , javax.ejb.RemoveException 336 { 337 try { 338 if (useNewInvoke) { 339 ref.invoke(this, $method_remove_7, new java.lang.Object [] {$param_Object_1}, 4460578865329725433L); 340 } else { 341 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 7, interfaceHash); 342 try { 343 java.io.ObjectOutput out = call.getOutputStream(); 344 out.writeObject($param_Object_1); 345 } catch (java.io.IOException e) { 346 throw new java.rmi.MarshalException ("error marshalling arguments", e); 347 } 348 ref.invoke(call); 349 ref.done(call); 350 } 351 } catch (java.lang.RuntimeException e) { 352 throw e; 353 } catch (java.rmi.RemoteException e) { 354 throw e; 355 } catch (javax.ejb.RemoveException e) { 356 throw e; 357 } catch (java.lang.Exception e) { 358 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 359 } 360 } 361 362 public void remove(javax.ejb.Handle $param_Handle_1) 364 throws java.rmi.RemoteException , javax.ejb.RemoveException 365 { 366 try { 367 if (useNewInvoke) { 368 ref.invoke(this, $method_remove_8, new java.lang.Object [] {$param_Handle_1}, 1121126102706750000L); 369 } else { 370 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 8, interfaceHash); 371 try { 372 java.io.ObjectOutput out = call.getOutputStream(); 373 out.writeObject($param_Handle_1); 374 } catch (java.io.IOException e) { 375 throw new java.rmi.MarshalException ("error marshalling arguments", e); 376 } 377 ref.invoke(call); 378 ref.done(call); 379 } 380 } catch (java.lang.RuntimeException e) { 381 throw e; 382 } catch (java.rmi.RemoteException e) { 383 throw e; 384 } catch (javax.ejb.RemoveException e) { 385 throw e; 386 } catch (java.lang.Exception e) { 387 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 388 } 389 } 390 } 391 | Popular Tags |