1 4 package hero.interfaces; 5 6 public final class JOnASAllProjectsSession_1322664691Remote_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.AllProjectsSession, java.rmi.Remote , javax.ejb.EJBObject 9 { 10 private static final java.rmi.server.Operation [] operations = { 11 new java.rmi.server.Operation ("javax.ejb.EJBHome getEJBHome()"), 12 new java.rmi.server.Operation ("javax.ejb.Handle getHandle()"), 13 new java.rmi.server.Operation ("java.lang.Object getPrimaryKey()"), 14 new java.rmi.server.Operation ("java.util.Collection getProjects()"), 15 new java.rmi.server.Operation ("boolean isIdentical(javax.ejb.EJBObject)"), 16 new java.rmi.server.Operation ("void remove()") 17 }; 18 19 private static final long interfaceHash = -7062559620836054377L; 20 21 private static final long serialVersionUID = 2; 22 23 private static boolean useNewInvoke; 24 private static java.lang.reflect.Method $method_getEJBHome_0; 25 private static java.lang.reflect.Method $method_getHandle_1; 26 private static java.lang.reflect.Method $method_getPrimaryKey_2; 27 private static java.lang.reflect.Method $method_getProjects_3; 28 private static java.lang.reflect.Method $method_isIdentical_4; 29 private static java.lang.reflect.Method $method_remove_5; 30 31 static { 32 try { 33 java.rmi.server.RemoteRef .class.getMethod("invoke", 34 new java.lang.Class [] { 35 java.rmi.Remote .class, 36 java.lang.reflect.Method .class, 37 java.lang.Object [].class, 38 long.class 39 }); 40 useNewInvoke = true; 41 $method_getEJBHome_0 = javax.ejb.EJBObject .class.getMethod("getEJBHome", new java.lang.Class [] {}); 42 $method_getHandle_1 = javax.ejb.EJBObject .class.getMethod("getHandle", new java.lang.Class [] {}); 43 $method_getPrimaryKey_2 = javax.ejb.EJBObject .class.getMethod("getPrimaryKey", new java.lang.Class [] {}); 44 $method_getProjects_3 = hero.interfaces.AllProjectsSession.class.getMethod("getProjects", new java.lang.Class [] {}); 45 $method_isIdentical_4 = javax.ejb.EJBObject .class.getMethod("isIdentical", new java.lang.Class [] {javax.ejb.EJBObject .class}); 46 $method_remove_5 = javax.ejb.EJBObject .class.getMethod("remove", new java.lang.Class [] {}); 47 } catch (java.lang.NoSuchMethodException e) { 48 useNewInvoke = false; 49 } 50 } 51 52 public JOnASAllProjectsSession_1322664691Remote_Stub() { 54 super(); 55 } 56 public JOnASAllProjectsSession_1322664691Remote_Stub(java.rmi.server.RemoteRef ref) { 57 super(ref); 58 } 59 60 62 public javax.ejb.EJBHome getEJBHome() 64 throws java.rmi.RemoteException 65 { 66 try { 67 if (useNewInvoke) { 68 Object $result = ref.invoke(this, $method_getEJBHome_0, null, 3163754803894080547L); 69 return ((javax.ejb.EJBHome ) $result); 70 } else { 71 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 0, interfaceHash); 72 ref.invoke(call); 73 javax.ejb.EJBHome $result; 74 try { 75 java.io.ObjectInput in = call.getInputStream(); 76 $result = (javax.ejb.EJBHome ) in.readObject(); 77 } catch (java.io.IOException e) { 78 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 79 } catch (java.lang.ClassNotFoundException e) { 80 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 81 } finally { 82 ref.done(call); 83 } 84 return $result; 85 } 86 } catch (java.lang.RuntimeException e) { 87 throw e; 88 } catch (java.rmi.RemoteException e) { 89 throw e; 90 } catch (java.lang.Exception e) { 91 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 92 } 93 } 94 95 public javax.ejb.Handle getHandle() 97 throws java.rmi.RemoteException 98 { 99 try { 100 if (useNewInvoke) { 101 Object $result = ref.invoke(this, $method_getHandle_1, null, -1299374689989208114L); 102 return ((javax.ejb.Handle ) $result); 103 } else { 104 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 1, interfaceHash); 105 ref.invoke(call); 106 javax.ejb.Handle $result; 107 try { 108 java.io.ObjectInput in = call.getInputStream(); 109 $result = (javax.ejb.Handle ) in.readObject(); 110 } catch (java.io.IOException e) { 111 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 112 } catch (java.lang.ClassNotFoundException e) { 113 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 114 } finally { 115 ref.done(call); 116 } 117 return $result; 118 } 119 } catch (java.lang.RuntimeException e) { 120 throw e; 121 } catch (java.rmi.RemoteException e) { 122 throw e; 123 } catch (java.lang.Exception e) { 124 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 125 } 126 } 127 128 public java.lang.Object getPrimaryKey() 130 throws java.rmi.RemoteException 131 { 132 try { 133 if (useNewInvoke) { 134 Object $result = ref.invoke(this, $method_getPrimaryKey_2, null, 4840115071604865751L); 135 return ((java.lang.Object ) $result); 136 } else { 137 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 138 ref.invoke(call); 139 java.lang.Object $result; 140 try { 141 java.io.ObjectInput in = call.getInputStream(); 142 $result = (java.lang.Object ) in.readObject(); 143 } catch (java.io.IOException e) { 144 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 145 } catch (java.lang.ClassNotFoundException e) { 146 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 147 } finally { 148 ref.done(call); 149 } 150 return $result; 151 } 152 } catch (java.lang.RuntimeException e) { 153 throw e; 154 } catch (java.rmi.RemoteException e) { 155 throw e; 156 } catch (java.lang.Exception e) { 157 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 158 } 159 } 160 161 public java.util.Collection getProjects() 163 throws hero.util.HeroException, java.rmi.RemoteException 164 { 165 try { 166 if (useNewInvoke) { 167 Object $result = ref.invoke(this, $method_getProjects_3, null, 5734329594701103897L); 168 return ((java.util.Collection ) $result); 169 } else { 170 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 171 ref.invoke(call); 172 java.util.Collection $result; 173 try { 174 java.io.ObjectInput in = call.getInputStream(); 175 $result = (java.util.Collection ) in.readObject(); 176 } catch (java.io.IOException e) { 177 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 178 } catch (java.lang.ClassNotFoundException e) { 179 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 180 } finally { 181 ref.done(call); 182 } 183 return $result; 184 } 185 } catch (java.lang.RuntimeException e) { 186 throw e; 187 } catch (java.rmi.RemoteException e) { 188 throw e; 189 } catch (hero.util.HeroException e) { 190 throw e; 191 } catch (java.lang.Exception e) { 192 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 193 } 194 } 195 196 public boolean isIdentical(javax.ejb.EJBObject $param_EJBObject_1) 198 throws java.rmi.RemoteException 199 { 200 try { 201 if (useNewInvoke) { 202 Object $result = ref.invoke(this, $method_isIdentical_4, new java.lang.Object [] {$param_EJBObject_1}, -5909123752501984271L); 203 return ((java.lang.Boolean ) $result).booleanValue(); 204 } else { 205 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 206 try { 207 java.io.ObjectOutput out = call.getOutputStream(); 208 out.writeObject($param_EJBObject_1); 209 } catch (java.io.IOException e) { 210 throw new java.rmi.MarshalException ("error marshalling arguments", e); 211 } 212 ref.invoke(call); 213 boolean $result; 214 try { 215 java.io.ObjectInput in = call.getInputStream(); 216 $result = in.readBoolean(); 217 } catch (java.io.IOException e) { 218 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 219 } finally { 220 ref.done(call); 221 } 222 return $result; 223 } 224 } catch (java.lang.RuntimeException e) { 225 throw e; 226 } catch (java.rmi.RemoteException e) { 227 throw e; 228 } catch (java.lang.Exception e) { 229 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 230 } 231 } 232 233 public void remove() 235 throws java.rmi.RemoteException , javax.ejb.RemoveException 236 { 237 try { 238 if (useNewInvoke) { 239 ref.invoke(this, $method_remove_5, null, -5013858639939630501L); 240 } else { 241 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 242 ref.invoke(call); 243 ref.done(call); 244 } 245 } catch (java.lang.RuntimeException e) { 246 throw e; 247 } catch (java.rmi.RemoteException e) { 248 throw e; 249 } catch (javax.ejb.RemoveException e) { 250 throw e; 251 } catch (java.lang.Exception e) { 252 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 253 } 254 } 255 } 256 | Popular Tags |