1 4 package hero.interfaces; 5 6 public final class JOnASBnUser2135030925Home_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.BnUserHome, java.rmi.Remote , javax.ejb.EJBHome 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("hero.interfaces.BnUser create(hero.interfaces.BnUserValue)"), 12 new java.rmi.server.Operation ("java.util.Collection findAll()"), 13 new java.rmi.server.Operation ("hero.interfaces.BnUser findByName(java.lang.String)"), 14 new java.rmi.server.Operation ("hero.interfaces.BnUser findByPrimaryKey(hero.interfaces.BnUserPK)"), 15 new java.rmi.server.Operation ("javax.ejb.EJBMetaData getEJBMetaData()"), 16 new java.rmi.server.Operation ("javax.ejb.HomeHandle getHomeHandle()"), 17 new java.rmi.server.Operation ("void remove(java.lang.Object)"), 18 new java.rmi.server.Operation ("void remove(javax.ejb.Handle)") 19 }; 20 21 private static final long interfaceHash = -6319774747111495722L; 22 23 private static final long serialVersionUID = 2; 24 25 private static boolean useNewInvoke; 26 private static java.lang.reflect.Method $method_create_0; 27 private static java.lang.reflect.Method $method_findAll_1; 28 private static java.lang.reflect.Method $method_findByName_2; 29 private static java.lang.reflect.Method $method_findByPrimaryKey_3; 30 private static java.lang.reflect.Method $method_getEJBMetaData_4; 31 private static java.lang.reflect.Method $method_getHomeHandle_5; 32 private static java.lang.reflect.Method $method_remove_6; 33 private static java.lang.reflect.Method $method_remove_7; 34 35 static { 36 try { 37 java.rmi.server.RemoteRef .class.getMethod("invoke", 38 new java.lang.Class [] { 39 java.rmi.Remote .class, 40 java.lang.reflect.Method .class, 41 java.lang.Object [].class, 42 long.class 43 }); 44 useNewInvoke = true; 45 $method_create_0 = hero.interfaces.BnUserHome.class.getMethod("create", new java.lang.Class [] {hero.interfaces.BnUserValue.class}); 46 $method_findAll_1 = hero.interfaces.BnUserHome.class.getMethod("findAll", new java.lang.Class [] {}); 47 $method_findByName_2 = hero.interfaces.BnUserHome.class.getMethod("findByName", new java.lang.Class [] {java.lang.String .class}); 48 $method_findByPrimaryKey_3 = hero.interfaces.BnUserHome.class.getMethod("findByPrimaryKey", new java.lang.Class [] {hero.interfaces.BnUserPK.class}); 49 $method_getEJBMetaData_4 = javax.ejb.EJBHome .class.getMethod("getEJBMetaData", new java.lang.Class [] {}); 50 $method_getHomeHandle_5 = javax.ejb.EJBHome .class.getMethod("getHomeHandle", new java.lang.Class [] {}); 51 $method_remove_6 = javax.ejb.EJBHome .class.getMethod("remove", new java.lang.Class [] {java.lang.Object .class}); 52 $method_remove_7 = javax.ejb.EJBHome .class.getMethod("remove", new java.lang.Class [] {javax.ejb.Handle .class}); 53 } catch (java.lang.NoSuchMethodException e) { 54 useNewInvoke = false; 55 } 56 } 57 58 public JOnASBnUser2135030925Home_Stub() { 60 super(); 61 } 62 public JOnASBnUser2135030925Home_Stub(java.rmi.server.RemoteRef ref) { 63 super(ref); 64 } 65 66 68 public hero.interfaces.BnUser create(hero.interfaces.BnUserValue $param_BnUserValue_1) 70 throws hero.interfaces.InvalidValueException, java.rmi.RemoteException , javax.ejb.CreateException 71 { 72 try { 73 if (useNewInvoke) { 74 Object $result = ref.invoke(this, $method_create_0, new java.lang.Object [] {$param_BnUserValue_1}, 7058359391255542879L); 75 return ((hero.interfaces.BnUser) $result); 76 } else { 77 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 0, interfaceHash); 78 try { 79 java.io.ObjectOutput out = call.getOutputStream(); 80 out.writeObject($param_BnUserValue_1); 81 } catch (java.io.IOException e) { 82 throw new java.rmi.MarshalException ("error marshalling arguments", e); 83 } 84 ref.invoke(call); 85 hero.interfaces.BnUser $result; 86 try { 87 java.io.ObjectInput in = call.getInputStream(); 88 $result = (hero.interfaces.BnUser) in.readObject(); 89 } catch (java.io.IOException e) { 90 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 91 } catch (java.lang.ClassNotFoundException e) { 92 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 93 } finally { 94 ref.done(call); 95 } 96 return $result; 97 } 98 } catch (java.lang.RuntimeException e) { 99 throw e; 100 } catch (java.rmi.RemoteException e) { 101 throw e; 102 } catch (hero.interfaces.InvalidValueException e) { 103 throw e; 104 } catch (javax.ejb.CreateException e) { 105 throw e; 106 } catch (java.lang.Exception e) { 107 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 108 } 109 } 110 111 public java.util.Collection findAll() 113 throws java.rmi.RemoteException , javax.ejb.FinderException 114 { 115 try { 116 if (useNewInvoke) { 117 Object $result = ref.invoke(this, $method_findAll_1, null, -4609096605735334920L); 118 return ((java.util.Collection ) $result); 119 } else { 120 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 1, interfaceHash); 121 ref.invoke(call); 122 java.util.Collection $result; 123 try { 124 java.io.ObjectInput in = call.getInputStream(); 125 $result = (java.util.Collection ) in.readObject(); 126 } catch (java.io.IOException e) { 127 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 128 } catch (java.lang.ClassNotFoundException e) { 129 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 130 } finally { 131 ref.done(call); 132 } 133 return $result; 134 } 135 } catch (java.lang.RuntimeException e) { 136 throw e; 137 } catch (java.rmi.RemoteException e) { 138 throw e; 139 } catch (javax.ejb.FinderException 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 hero.interfaces.BnUser findByName(java.lang.String $param_String_1) 148 throws java.rmi.RemoteException , javax.ejb.FinderException 149 { 150 try { 151 if (useNewInvoke) { 152 Object $result = ref.invoke(this, $method_findByName_2, new java.lang.Object [] {$param_String_1}, 3572674667501305108L); 153 return ((hero.interfaces.BnUser) $result); 154 } else { 155 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 156 try { 157 java.io.ObjectOutput out = call.getOutputStream(); 158 out.writeObject($param_String_1); 159 } catch (java.io.IOException e) { 160 throw new java.rmi.MarshalException ("error marshalling arguments", e); 161 } 162 ref.invoke(call); 163 hero.interfaces.BnUser $result; 164 try { 165 java.io.ObjectInput in = call.getInputStream(); 166 $result = (hero.interfaces.BnUser) in.readObject(); 167 } catch (java.io.IOException e) { 168 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 169 } catch (java.lang.ClassNotFoundException e) { 170 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 171 } finally { 172 ref.done(call); 173 } 174 return $result; 175 } 176 } catch (java.lang.RuntimeException e) { 177 throw e; 178 } catch (java.rmi.RemoteException e) { 179 throw e; 180 } catch (javax.ejb.FinderException e) { 181 throw e; 182 } catch (java.lang.Exception e) { 183 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 184 } 185 } 186 187 public hero.interfaces.BnUser findByPrimaryKey(hero.interfaces.BnUserPK $param_BnUserPK_1) 189 throws java.rmi.RemoteException , javax.ejb.FinderException 190 { 191 try { 192 if (useNewInvoke) { 193 Object $result = ref.invoke(this, $method_findByPrimaryKey_3, new java.lang.Object [] {$param_BnUserPK_1}, 6839385478747754577L); 194 return ((hero.interfaces.BnUser) $result); 195 } else { 196 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 197 try { 198 java.io.ObjectOutput out = call.getOutputStream(); 199 out.writeObject($param_BnUserPK_1); 200 } catch (java.io.IOException e) { 201 throw new java.rmi.MarshalException ("error marshalling arguments", e); 202 } 203 ref.invoke(call); 204 hero.interfaces.BnUser $result; 205 try { 206 java.io.ObjectInput in = call.getInputStream(); 207 $result = (hero.interfaces.BnUser) in.readObject(); 208 } catch (java.io.IOException e) { 209 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 210 } catch (java.lang.ClassNotFoundException e) { 211 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 212 } finally { 213 ref.done(call); 214 } 215 return $result; 216 } 217 } catch (java.lang.RuntimeException e) { 218 throw e; 219 } catch (java.rmi.RemoteException e) { 220 throw e; 221 } catch (javax.ejb.FinderException e) { 222 throw e; 223 } catch (java.lang.Exception e) { 224 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 225 } 226 } 227 228 public javax.ejb.EJBMetaData getEJBMetaData() 230 throws java.rmi.RemoteException 231 { 232 try { 233 if (useNewInvoke) { 234 Object $result = ref.invoke(this, $method_getEJBMetaData_4, null, 6217030353865232067L); 235 return ((javax.ejb.EJBMetaData ) $result); 236 } else { 237 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 238 ref.invoke(call); 239 javax.ejb.EJBMetaData $result; 240 try { 241 java.io.ObjectInput in = call.getInputStream(); 242 $result = (javax.ejb.EJBMetaData ) in.readObject(); 243 } catch (java.io.IOException e) { 244 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 245 } catch (java.lang.ClassNotFoundException e) { 246 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 247 } finally { 248 ref.done(call); 249 } 250 return $result; 251 } 252 } catch (java.lang.RuntimeException e) { 253 throw e; 254 } catch (java.rmi.RemoteException e) { 255 throw e; 256 } catch (java.lang.Exception e) { 257 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 258 } 259 } 260 261 public javax.ejb.HomeHandle getHomeHandle() 263 throws java.rmi.RemoteException 264 { 265 try { 266 if (useNewInvoke) { 267 Object $result = ref.invoke(this, $method_getHomeHandle_5, null, -8748260460775500658L); 268 return ((javax.ejb.HomeHandle ) $result); 269 } else { 270 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 271 ref.invoke(call); 272 javax.ejb.HomeHandle $result; 273 try { 274 java.io.ObjectInput in = call.getInputStream(); 275 $result = (javax.ejb.HomeHandle ) in.readObject(); 276 } catch (java.io.IOException e) { 277 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 278 } catch (java.lang.ClassNotFoundException e) { 279 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 280 } finally { 281 ref.done(call); 282 } 283 return $result; 284 } 285 } catch (java.lang.RuntimeException e) { 286 throw e; 287 } catch (java.rmi.RemoteException e) { 288 throw e; 289 } catch (java.lang.Exception e) { 290 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 291 } 292 } 293 294 public void remove(java.lang.Object $param_Object_1) 296 throws java.rmi.RemoteException , javax.ejb.RemoveException 297 { 298 try { 299 if (useNewInvoke) { 300 ref.invoke(this, $method_remove_6, new java.lang.Object [] {$param_Object_1}, 4460578865329725433L); 301 } else { 302 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 6, interfaceHash); 303 try { 304 java.io.ObjectOutput out = call.getOutputStream(); 305 out.writeObject($param_Object_1); 306 } catch (java.io.IOException e) { 307 throw new java.rmi.MarshalException ("error marshalling arguments", e); 308 } 309 ref.invoke(call); 310 ref.done(call); 311 } 312 } catch (java.lang.RuntimeException e) { 313 throw e; 314 } catch (java.rmi.RemoteException e) { 315 throw e; 316 } catch (javax.ejb.RemoveException e) { 317 throw e; 318 } catch (java.lang.Exception e) { 319 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 320 } 321 } 322 323 public void remove(javax.ejb.Handle $param_Handle_1) 325 throws java.rmi.RemoteException , javax.ejb.RemoveException 326 { 327 try { 328 if (useNewInvoke) { 329 ref.invoke(this, $method_remove_7, new java.lang.Object [] {$param_Handle_1}, 1121126102706750000L); 330 } else { 331 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 7, interfaceHash); 332 try { 333 java.io.ObjectOutput out = call.getOutputStream(); 334 out.writeObject($param_Handle_1); 335 } catch (java.io.IOException e) { 336 throw new java.rmi.MarshalException ("error marshalling arguments", e); 337 } 338 ref.invoke(call); 339 ref.done(call); 340 } 341 } catch (java.lang.RuntimeException e) { 342 throw e; 343 } catch (java.rmi.RemoteException e) { 344 throw e; 345 } catch (javax.ejb.RemoveException e) { 346 throw e; 347 } catch (java.lang.Exception e) { 348 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 349 } 350 } 351 } 352 | Popular Tags |