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