1 4 package hero.interfaces; 5 6 public final class JOnASBnRoleMapper_1983914099Home_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.BnRoleMapperHome, java.rmi.Remote , javax.ejb.EJBHome 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("hero.interfaces.BnRoleMapper create(hero.interfaces.BnRoleMapperValue)"), 12 new java.rmi.server.Operation ("hero.interfaces.BnRoleMapper create(java.lang.String, int)"), 13 new java.rmi.server.Operation ("java.util.Collection findAll()"), 14 new java.rmi.server.Operation ("hero.interfaces.BnRoleMapper findByPrimaryKey(hero.interfaces.BnRoleMapperPK)"), 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 = -4169039736815245870L; 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_create_1; 28 private static java.lang.reflect.Method $method_findAll_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.BnRoleMapperHome.class.getMethod("create", new java.lang.Class [] {hero.interfaces.BnRoleMapperValue.class}); 46 $method_create_1 = hero.interfaces.BnRoleMapperHome.class.getMethod("create", new java.lang.Class [] {java.lang.String .class, int.class}); 47 $method_findAll_2 = hero.interfaces.BnRoleMapperHome.class.getMethod("findAll", new java.lang.Class [] {}); 48 $method_findByPrimaryKey_3 = hero.interfaces.BnRoleMapperHome.class.getMethod("findByPrimaryKey", new java.lang.Class [] {hero.interfaces.BnRoleMapperPK.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 JOnASBnRoleMapper_1983914099Home_Stub() { 60 super(); 61 } 62 public JOnASBnRoleMapper_1983914099Home_Stub(java.rmi.server.RemoteRef ref) { 63 super(ref); 64 } 65 66 68 public hero.interfaces.BnRoleMapper create(hero.interfaces.BnRoleMapperValue $param_BnRoleMapperValue_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_BnRoleMapperValue_1}, 2762139958413827778L); 75 return ((hero.interfaces.BnRoleMapper) $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_BnRoleMapperValue_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.BnRoleMapper $result; 86 try { 87 java.io.ObjectInput in = call.getInputStream(); 88 $result = (hero.interfaces.BnRoleMapper) 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 hero.interfaces.BnRoleMapper create(java.lang.String $param_String_1, int $param_int_2) 113 throws hero.interfaces.InvalidValueException, java.rmi.RemoteException , javax.ejb.CreateException 114 { 115 try { 116 if (useNewInvoke) { 117 Object $result = ref.invoke(this, $method_create_1, new java.lang.Object [] {$param_String_1, new java.lang.Integer ($param_int_2)}, 842483935123631351L); 118 return ((hero.interfaces.BnRoleMapper) $result); 119 } else { 120 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 1, interfaceHash); 121 try { 122 java.io.ObjectOutput out = call.getOutputStream(); 123 out.writeObject($param_String_1); 124 out.writeInt($param_int_2); 125 } catch (java.io.IOException e) { 126 throw new java.rmi.MarshalException ("error marshalling arguments", e); 127 } 128 ref.invoke(call); 129 hero.interfaces.BnRoleMapper $result; 130 try { 131 java.io.ObjectInput in = call.getInputStream(); 132 $result = (hero.interfaces.BnRoleMapper) in.readObject(); 133 } catch (java.io.IOException e) { 134 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 135 } catch (java.lang.ClassNotFoundException e) { 136 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 137 } finally { 138 ref.done(call); 139 } 140 return $result; 141 } 142 } catch (java.lang.RuntimeException e) { 143 throw e; 144 } catch (java.rmi.RemoteException e) { 145 throw e; 146 } catch (hero.interfaces.InvalidValueException e) { 147 throw e; 148 } catch (javax.ejb.CreateException e) { 149 throw e; 150 } catch (java.lang.Exception e) { 151 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 152 } 153 } 154 155 public java.util.Collection findAll() 157 throws java.rmi.RemoteException , javax.ejb.FinderException 158 { 159 try { 160 if (useNewInvoke) { 161 Object $result = ref.invoke(this, $method_findAll_2, null, -4609096605735334920L); 162 return ((java.util.Collection ) $result); 163 } else { 164 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 165 ref.invoke(call); 166 java.util.Collection $result; 167 try { 168 java.io.ObjectInput in = call.getInputStream(); 169 $result = (java.util.Collection ) in.readObject(); 170 } catch (java.io.IOException e) { 171 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 172 } catch (java.lang.ClassNotFoundException e) { 173 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 174 } finally { 175 ref.done(call); 176 } 177 return $result; 178 } 179 } catch (java.lang.RuntimeException e) { 180 throw e; 181 } catch (java.rmi.RemoteException e) { 182 throw e; 183 } catch (javax.ejb.FinderException e) { 184 throw e; 185 } catch (java.lang.Exception e) { 186 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 187 } 188 } 189 190 public hero.interfaces.BnRoleMapper findByPrimaryKey(hero.interfaces.BnRoleMapperPK $param_BnRoleMapperPK_1) 192 throws java.rmi.RemoteException , javax.ejb.FinderException 193 { 194 try { 195 if (useNewInvoke) { 196 Object $result = ref.invoke(this, $method_findByPrimaryKey_3, new java.lang.Object [] {$param_BnRoleMapperPK_1}, 3648009678602800349L); 197 return ((hero.interfaces.BnRoleMapper) $result); 198 } else { 199 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 200 try { 201 java.io.ObjectOutput out = call.getOutputStream(); 202 out.writeObject($param_BnRoleMapperPK_1); 203 } catch (java.io.IOException e) { 204 throw new java.rmi.MarshalException ("error marshalling arguments", e); 205 } 206 ref.invoke(call); 207 hero.interfaces.BnRoleMapper $result; 208 try { 209 java.io.ObjectInput in = call.getInputStream(); 210 $result = (hero.interfaces.BnRoleMapper) in.readObject(); 211 } catch (java.io.IOException e) { 212 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 213 } catch (java.lang.ClassNotFoundException e) { 214 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 215 } finally { 216 ref.done(call); 217 } 218 return $result; 219 } 220 } catch (java.lang.RuntimeException e) { 221 throw e; 222 } catch (java.rmi.RemoteException e) { 223 throw e; 224 } catch (javax.ejb.FinderException e) { 225 throw e; 226 } catch (java.lang.Exception e) { 227 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 228 } 229 } 230 231 public javax.ejb.EJBMetaData getEJBMetaData() 233 throws java.rmi.RemoteException 234 { 235 try { 236 if (useNewInvoke) { 237 Object $result = ref.invoke(this, $method_getEJBMetaData_4, null, 6217030353865232067L); 238 return ((javax.ejb.EJBMetaData ) $result); 239 } else { 240 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 241 ref.invoke(call); 242 javax.ejb.EJBMetaData $result; 243 try { 244 java.io.ObjectInput in = call.getInputStream(); 245 $result = (javax.ejb.EJBMetaData ) in.readObject(); 246 } catch (java.io.IOException e) { 247 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 248 } catch (java.lang.ClassNotFoundException e) { 249 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 250 } finally { 251 ref.done(call); 252 } 253 return $result; 254 } 255 } catch (java.lang.RuntimeException e) { 256 throw e; 257 } catch (java.rmi.RemoteException e) { 258 throw e; 259 } catch (java.lang.Exception e) { 260 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 261 } 262 } 263 264 public javax.ejb.HomeHandle getHomeHandle() 266 throws java.rmi.RemoteException 267 { 268 try { 269 if (useNewInvoke) { 270 Object $result = ref.invoke(this, $method_getHomeHandle_5, null, -8748260460775500658L); 271 return ((javax.ejb.HomeHandle ) $result); 272 } else { 273 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 274 ref.invoke(call); 275 javax.ejb.HomeHandle $result; 276 try { 277 java.io.ObjectInput in = call.getInputStream(); 278 $result = (javax.ejb.HomeHandle ) in.readObject(); 279 } catch (java.io.IOException e) { 280 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 281 } catch (java.lang.ClassNotFoundException e) { 282 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 283 } finally { 284 ref.done(call); 285 } 286 return $result; 287 } 288 } catch (java.lang.RuntimeException e) { 289 throw e; 290 } catch (java.rmi.RemoteException e) { 291 throw e; 292 } catch (java.lang.Exception e) { 293 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 294 } 295 } 296 297 public void remove(java.lang.Object $param_Object_1) 299 throws java.rmi.RemoteException , javax.ejb.RemoveException 300 { 301 try { 302 if (useNewInvoke) { 303 ref.invoke(this, $method_remove_6, new java.lang.Object [] {$param_Object_1}, 4460578865329725433L); 304 } else { 305 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 6, interfaceHash); 306 try { 307 java.io.ObjectOutput out = call.getOutputStream(); 308 out.writeObject($param_Object_1); 309 } catch (java.io.IOException e) { 310 throw new java.rmi.MarshalException ("error marshalling arguments", e); 311 } 312 ref.invoke(call); 313 ref.done(call); 314 } 315 } catch (java.lang.RuntimeException e) { 316 throw e; 317 } catch (java.rmi.RemoteException e) { 318 throw e; 319 } catch (javax.ejb.RemoveException e) { 320 throw e; 321 } catch (java.lang.Exception e) { 322 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 323 } 324 } 325 326 public void remove(javax.ejb.Handle $param_Handle_1) 328 throws java.rmi.RemoteException , javax.ejb.RemoveException 329 { 330 try { 331 if (useNewInvoke) { 332 ref.invoke(this, $method_remove_7, new java.lang.Object [] {$param_Handle_1}, 1121126102706750000L); 333 } else { 334 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 7, interfaceHash); 335 try { 336 java.io.ObjectOutput out = call.getOutputStream(); 337 out.writeObject($param_Handle_1); 338 } catch (java.io.IOException e) { 339 throw new java.rmi.MarshalException ("error marshalling arguments", e); 340 } 341 ref.invoke(call); 342 ref.done(call); 343 } 344 } catch (java.lang.RuntimeException e) { 345 throw e; 346 } catch (java.rmi.RemoteException e) { 347 throw e; 348 } catch (javax.ejb.RemoveException e) { 349 throw e; 350 } catch (java.lang.Exception e) { 351 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 352 } 353 } 354 } 355 | Popular Tags |