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