1 4 package hero.interfaces; 5 6 public final class JOnASAdminSession_1371997683Remote_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.AdminSession, java.rmi.Remote , javax.ejb.EJBObject 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("java.util.Collection getActivities()"), 12 new java.rmi.server.Operation ("javax.ejb.EJBHome getEJBHome()"), 13 new java.rmi.server.Operation ("javax.ejb.Handle getHandle()"), 14 new java.rmi.server.Operation ("java.util.Collection getInstances()"), 15 new java.rmi.server.Operation ("java.util.Collection getModels()"), 16 new java.rmi.server.Operation ("java.lang.Object getPrimaryKey()"), 17 new java.rmi.server.Operation ("boolean isIdentical(javax.ejb.EJBObject)"), 18 new java.rmi.server.Operation ("void remove()") 19 }; 20 21 private static final long interfaceHash = 5366366842244620893L; 22 23 private static final long serialVersionUID = 2; 24 25 private static boolean useNewInvoke; 26 private static java.lang.reflect.Method $method_getActivities_0; 27 private static java.lang.reflect.Method $method_getEJBHome_1; 28 private static java.lang.reflect.Method $method_getHandle_2; 29 private static java.lang.reflect.Method $method_getInstances_3; 30 private static java.lang.reflect.Method $method_getModels_4; 31 private static java.lang.reflect.Method $method_getPrimaryKey_5; 32 private static java.lang.reflect.Method $method_isIdentical_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_getActivities_0 = hero.interfaces.AdminSession.class.getMethod("getActivities", new java.lang.Class [] {}); 46 $method_getEJBHome_1 = javax.ejb.EJBObject .class.getMethod("getEJBHome", new java.lang.Class [] {}); 47 $method_getHandle_2 = javax.ejb.EJBObject .class.getMethod("getHandle", new java.lang.Class [] {}); 48 $method_getInstances_3 = hero.interfaces.AdminSession.class.getMethod("getInstances", new java.lang.Class [] {}); 49 $method_getModels_4 = hero.interfaces.AdminSession.class.getMethod("getModels", new java.lang.Class [] {}); 50 $method_getPrimaryKey_5 = javax.ejb.EJBObject .class.getMethod("getPrimaryKey", new java.lang.Class [] {}); 51 $method_isIdentical_6 = javax.ejb.EJBObject .class.getMethod("isIdentical", new java.lang.Class [] {javax.ejb.EJBObject .class}); 52 $method_remove_7 = javax.ejb.EJBObject .class.getMethod("remove", new java.lang.Class [] {}); 53 } catch (java.lang.NoSuchMethodException e) { 54 useNewInvoke = false; 55 } 56 } 57 58 public JOnASAdminSession_1371997683Remote_Stub() { 60 super(); 61 } 62 public JOnASAdminSession_1371997683Remote_Stub(java.rmi.server.RemoteRef ref) { 63 super(ref); 64 } 65 66 68 public java.util.Collection getActivities() 70 throws hero.util.HeroException, java.rmi.RemoteException 71 { 72 try { 73 if (useNewInvoke) { 74 Object $result = ref.invoke(this, $method_getActivities_0, null, -2177816423556792194L); 75 return ((java.util.Collection ) $result); 76 } else { 77 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 0, interfaceHash); 78 ref.invoke(call); 79 java.util.Collection $result; 80 try { 81 java.io.ObjectInput in = call.getInputStream(); 82 $result = (java.util.Collection ) in.readObject(); 83 } catch (java.io.IOException e) { 84 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 85 } catch (java.lang.ClassNotFoundException e) { 86 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 87 } finally { 88 ref.done(call); 89 } 90 return $result; 91 } 92 } catch (java.lang.RuntimeException e) { 93 throw e; 94 } catch (java.rmi.RemoteException e) { 95 throw e; 96 } catch (hero.util.HeroException e) { 97 throw e; 98 } catch (java.lang.Exception e) { 99 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 100 } 101 } 102 103 public javax.ejb.EJBHome getEJBHome() 105 throws java.rmi.RemoteException 106 { 107 try { 108 if (useNewInvoke) { 109 Object $result = ref.invoke(this, $method_getEJBHome_1, null, 3163754803894080547L); 110 return ((javax.ejb.EJBHome ) $result); 111 } else { 112 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 1, interfaceHash); 113 ref.invoke(call); 114 javax.ejb.EJBHome $result; 115 try { 116 java.io.ObjectInput in = call.getInputStream(); 117 $result = (javax.ejb.EJBHome ) in.readObject(); 118 } catch (java.io.IOException e) { 119 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 120 } catch (java.lang.ClassNotFoundException e) { 121 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 122 } finally { 123 ref.done(call); 124 } 125 return $result; 126 } 127 } catch (java.lang.RuntimeException e) { 128 throw e; 129 } catch (java.rmi.RemoteException e) { 130 throw e; 131 } catch (java.lang.Exception e) { 132 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 133 } 134 } 135 136 public javax.ejb.Handle getHandle() 138 throws java.rmi.RemoteException 139 { 140 try { 141 if (useNewInvoke) { 142 Object $result = ref.invoke(this, $method_getHandle_2, null, -1299374689989208114L); 143 return ((javax.ejb.Handle ) $result); 144 } else { 145 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 146 ref.invoke(call); 147 javax.ejb.Handle $result; 148 try { 149 java.io.ObjectInput in = call.getInputStream(); 150 $result = (javax.ejb.Handle ) in.readObject(); 151 } catch (java.io.IOException e) { 152 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 153 } catch (java.lang.ClassNotFoundException e) { 154 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 155 } finally { 156 ref.done(call); 157 } 158 return $result; 159 } 160 } catch (java.lang.RuntimeException e) { 161 throw e; 162 } catch (java.rmi.RemoteException e) { 163 throw e; 164 } catch (java.lang.Exception e) { 165 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 166 } 167 } 168 169 public java.util.Collection getInstances() 171 throws hero.util.HeroException, java.rmi.RemoteException 172 { 173 try { 174 if (useNewInvoke) { 175 Object $result = ref.invoke(this, $method_getInstances_3, null, 5352631896338076686L); 176 return ((java.util.Collection ) $result); 177 } else { 178 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 179 ref.invoke(call); 180 java.util.Collection $result; 181 try { 182 java.io.ObjectInput in = call.getInputStream(); 183 $result = (java.util.Collection ) in.readObject(); 184 } catch (java.io.IOException e) { 185 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 186 } catch (java.lang.ClassNotFoundException e) { 187 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 188 } finally { 189 ref.done(call); 190 } 191 return $result; 192 } 193 } catch (java.lang.RuntimeException e) { 194 throw e; 195 } catch (java.rmi.RemoteException e) { 196 throw e; 197 } catch (hero.util.HeroException e) { 198 throw e; 199 } catch (java.lang.Exception e) { 200 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 201 } 202 } 203 204 public java.util.Collection getModels() 206 throws hero.util.HeroException, java.rmi.RemoteException 207 { 208 try { 209 if (useNewInvoke) { 210 Object $result = ref.invoke(this, $method_getModels_4, null, -3767925248899611016L); 211 return ((java.util.Collection ) $result); 212 } else { 213 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 214 ref.invoke(call); 215 java.util.Collection $result; 216 try { 217 java.io.ObjectInput in = call.getInputStream(); 218 $result = (java.util.Collection ) in.readObject(); 219 } catch (java.io.IOException e) { 220 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 221 } catch (java.lang.ClassNotFoundException e) { 222 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 223 } finally { 224 ref.done(call); 225 } 226 return $result; 227 } 228 } catch (java.lang.RuntimeException e) { 229 throw e; 230 } catch (java.rmi.RemoteException e) { 231 throw e; 232 } catch (hero.util.HeroException e) { 233 throw e; 234 } catch (java.lang.Exception e) { 235 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 236 } 237 } 238 239 public java.lang.Object getPrimaryKey() 241 throws java.rmi.RemoteException 242 { 243 try { 244 if (useNewInvoke) { 245 Object $result = ref.invoke(this, $method_getPrimaryKey_5, null, 4840115071604865751L); 246 return ((java.lang.Object ) $result); 247 } else { 248 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 249 ref.invoke(call); 250 java.lang.Object $result; 251 try { 252 java.io.ObjectInput in = call.getInputStream(); 253 $result = (java.lang.Object ) in.readObject(); 254 } catch (java.io.IOException e) { 255 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 256 } catch (java.lang.ClassNotFoundException e) { 257 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 258 } finally { 259 ref.done(call); 260 } 261 return $result; 262 } 263 } catch (java.lang.RuntimeException e) { 264 throw e; 265 } catch (java.rmi.RemoteException e) { 266 throw e; 267 } catch (java.lang.Exception e) { 268 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 269 } 270 } 271 272 public boolean isIdentical(javax.ejb.EJBObject $param_EJBObject_1) 274 throws java.rmi.RemoteException 275 { 276 try { 277 if (useNewInvoke) { 278 Object $result = ref.invoke(this, $method_isIdentical_6, new java.lang.Object [] {$param_EJBObject_1}, -5909123752501984271L); 279 return ((java.lang.Boolean ) $result).booleanValue(); 280 } else { 281 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 6, interfaceHash); 282 try { 283 java.io.ObjectOutput out = call.getOutputStream(); 284 out.writeObject($param_EJBObject_1); 285 } catch (java.io.IOException e) { 286 throw new java.rmi.MarshalException ("error marshalling arguments", e); 287 } 288 ref.invoke(call); 289 boolean $result; 290 try { 291 java.io.ObjectInput in = call.getInputStream(); 292 $result = in.readBoolean(); 293 } catch (java.io.IOException e) { 294 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 295 } finally { 296 ref.done(call); 297 } 298 return $result; 299 } 300 } catch (java.lang.RuntimeException e) { 301 throw e; 302 } catch (java.rmi.RemoteException e) { 303 throw e; 304 } catch (java.lang.Exception e) { 305 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 306 } 307 } 308 309 public void remove() 311 throws java.rmi.RemoteException , javax.ejb.RemoveException 312 { 313 try { 314 if (useNewInvoke) { 315 ref.invoke(this, $method_remove_7, null, -5013858639939630501L); 316 } else { 317 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 7, interfaceHash); 318 ref.invoke(call); 319 ref.done(call); 320 } 321 } catch (java.lang.RuntimeException e) { 322 throw e; 323 } catch (java.rmi.RemoteException e) { 324 throw e; 325 } catch (javax.ejb.RemoveException e) { 326 throw e; 327 } catch (java.lang.Exception e) { 328 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 329 } 330 } 331 } 332 | Popular Tags |