1 4 package hero.interfaces; 5 6 public final class JOnASBnAuthRole317329069Home_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.BnAuthRoleHome, java.rmi.Remote , javax.ejb.EJBHome 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("hero.interfaces.BnAuthRole create(hero.interfaces.BnAuthRoleValue)"), 12 new java.rmi.server.Operation ("java.util.Collection findAll()"), 13 new java.rmi.server.Operation ("hero.interfaces.BnAuthRole findByName(java.lang.String)"), 14 new java.rmi.server.Operation ("hero.interfaces.BnAuthRole findByPrimaryKey(hero.interfaces.BnAuthRolePK)"), 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 = 2214639337613254260L; 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.BnAuthRoleHome.class.getMethod("create", new java.lang.Class [] {hero.interfaces.BnAuthRoleValue.class}); 46 $method_findAll_1 = hero.interfaces.BnAuthRoleHome.class.getMethod("findAll", new java.lang.Class [] {}); 47 $method_findByName_2 = hero.interfaces.BnAuthRoleHome.class.getMethod("findByName", new java.lang.Class [] {java.lang.String .class}); 48 $method_findByPrimaryKey_3 = hero.interfaces.BnAuthRoleHome.class.getMethod("findByPrimaryKey", new java.lang.Class [] {hero.interfaces.BnAuthRolePK.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 JOnASBnAuthRole317329069Home_Stub() { 60 super(); 61 } 62 public JOnASBnAuthRole317329069Home_Stub(java.rmi.server.RemoteRef ref) { 63 super(ref); 64 } 65 66 68 public hero.interfaces.BnAuthRole create(hero.interfaces.BnAuthRoleValue $param_BnAuthRoleValue_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_BnAuthRoleValue_1}, -1596682542414823040L); 75 return ((hero.interfaces.BnAuthRole) $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_BnAuthRoleValue_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.BnAuthRole $result; 86 try { 87 java.io.ObjectInput in = call.getInputStream(); 88 $result = (hero.interfaces.BnAuthRole) 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.BnAuthRole findByName(java.lang.String $param_String_1) 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}, -4480370617926635492L); 151 return ((hero.interfaces.BnAuthRole) $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 } catch (java.io.IOException e) { 158 throw new java.rmi.MarshalException ("error marshalling arguments", e); 159 } 160 ref.invoke(call); 161 hero.interfaces.BnAuthRole $result; 162 try { 163 java.io.ObjectInput in = call.getInputStream(); 164 $result = (hero.interfaces.BnAuthRole) in.readObject(); 165 } catch (java.io.IOException e) { 166 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 167 } catch (java.lang.ClassNotFoundException e) { 168 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 169 } finally { 170 ref.done(call); 171 } 172 return $result; 173 } 174 } catch (java.lang.RuntimeException e) { 175 throw e; 176 } catch (java.rmi.RemoteException e) { 177 throw e; 178 } catch (javax.ejb.FinderException e) { 179 throw e; 180 } catch (java.lang.Exception e) { 181 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 182 } 183 } 184 185 public hero.interfaces.BnAuthRole findByPrimaryKey(hero.interfaces.BnAuthRolePK $param_BnAuthRolePK_1) 187 throws java.rmi.RemoteException , javax.ejb.FinderException 188 { 189 try { 190 if (useNewInvoke) { 191 Object $result = ref.invoke(this, $method_findByPrimaryKey_3, new java.lang.Object [] {$param_BnAuthRolePK_1}, 6281492765028129580L); 192 return ((hero.interfaces.BnAuthRole) $result); 193 } else { 194 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 195 try { 196 java.io.ObjectOutput out = call.getOutputStream(); 197 out.writeObject($param_BnAuthRolePK_1); 198 } catch (java.io.IOException e) { 199 throw new java.rmi.MarshalException ("error marshalling arguments", e); 200 } 201 ref.invoke(call); 202 hero.interfaces.BnAuthRole $result; 203 try { 204 java.io.ObjectInput in = call.getInputStream(); 205 $result = (hero.interfaces.BnAuthRole) 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 javax.ejb.EJBMetaData getEJBMetaData() 228 throws java.rmi.RemoteException 229 { 230 try { 231 if (useNewInvoke) { 232 Object $result = ref.invoke(this, $method_getEJBMetaData_4, null, 6217030353865232067L); 233 return ((javax.ejb.EJBMetaData ) $result); 234 } else { 235 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 236 ref.invoke(call); 237 javax.ejb.EJBMetaData $result; 238 try { 239 java.io.ObjectInput in = call.getInputStream(); 240 $result = (javax.ejb.EJBMetaData ) in.readObject(); 241 } catch (java.io.IOException e) { 242 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 243 } catch (java.lang.ClassNotFoundException e) { 244 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 245 } finally { 246 ref.done(call); 247 } 248 return $result; 249 } 250 } catch (java.lang.RuntimeException e) { 251 throw e; 252 } catch (java.rmi.RemoteException e) { 253 throw e; 254 } catch (java.lang.Exception e) { 255 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 256 } 257 } 258 259 public javax.ejb.HomeHandle getHomeHandle() 261 throws java.rmi.RemoteException 262 { 263 try { 264 if (useNewInvoke) { 265 Object $result = ref.invoke(this, $method_getHomeHandle_5, null, -8748260460775500658L); 266 return ((javax.ejb.HomeHandle ) $result); 267 } else { 268 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 269 ref.invoke(call); 270 javax.ejb.HomeHandle $result; 271 try { 272 java.io.ObjectInput in = call.getInputStream(); 273 $result = (javax.ejb.HomeHandle ) in.readObject(); 274 } catch (java.io.IOException e) { 275 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 276 } catch (java.lang.ClassNotFoundException e) { 277 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 278 } finally { 279 ref.done(call); 280 } 281 return $result; 282 } 283 } catch (java.lang.RuntimeException e) { 284 throw e; 285 } catch (java.rmi.RemoteException e) { 286 throw e; 287 } catch (java.lang.Exception e) { 288 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 289 } 290 } 291 292 public void remove(java.lang.Object $param_Object_1) 294 throws java.rmi.RemoteException , javax.ejb.RemoveException 295 { 296 try { 297 if (useNewInvoke) { 298 ref.invoke(this, $method_remove_6, new java.lang.Object [] {$param_Object_1}, 4460578865329725433L); 299 } else { 300 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 6, interfaceHash); 301 try { 302 java.io.ObjectOutput out = call.getOutputStream(); 303 out.writeObject($param_Object_1); 304 } catch (java.io.IOException e) { 305 throw new java.rmi.MarshalException ("error marshalling arguments", e); 306 } 307 ref.invoke(call); 308 ref.done(call); 309 } 310 } catch (java.lang.RuntimeException e) { 311 throw e; 312 } catch (java.rmi.RemoteException e) { 313 throw e; 314 } catch (javax.ejb.RemoveException e) { 315 throw e; 316 } catch (java.lang.Exception e) { 317 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 318 } 319 } 320 321 public void remove(javax.ejb.Handle $param_Handle_1) 323 throws java.rmi.RemoteException , javax.ejb.RemoveException 324 { 325 try { 326 if (useNewInvoke) { 327 ref.invoke(this, $method_remove_7, new java.lang.Object [] {$param_Handle_1}, 1121126102706750000L); 328 } else { 329 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 7, interfaceHash); 330 try { 331 java.io.ObjectOutput out = call.getOutputStream(); 332 out.writeObject($param_Handle_1); 333 } catch (java.io.IOException e) { 334 throw new java.rmi.MarshalException ("error marshalling arguments", e); 335 } 336 ref.invoke(call); 337 ref.done(call); 338 } 339 } catch (java.lang.RuntimeException e) { 340 throw e; 341 } catch (java.rmi.RemoteException e) { 342 throw e; 343 } catch (javax.ejb.RemoveException e) { 344 throw e; 345 } catch (java.lang.Exception e) { 346 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 347 } 348 } 349 } 350 | Popular Tags |