1 4 package hero.interfaces; 5 6 public final class JOnASBnLdap_1419269875Remote_Stub 7 extends java.rmi.server.RemoteStub 8 implements hero.interfaces.BnLdap, 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 ("java.util.Collection getGroupMembers(java.lang.String)"), 13 new java.rmi.server.Operation ("javax.ejb.Handle getHandle()"), 14 new java.rmi.server.Operation ("java.lang.Object getPrimaryKey()"), 15 new java.rmi.server.Operation ("void importLdapUsers()"), 16 new java.rmi.server.Operation ("boolean isIdentical(javax.ejb.EJBObject)"), 17 new java.rmi.server.Operation ("void remove()") 18 }; 19 20 private static final long interfaceHash = -7519548330411534243L; 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_getGroupMembers_1; 27 private static java.lang.reflect.Method $method_getHandle_2; 28 private static java.lang.reflect.Method $method_getPrimaryKey_3; 29 private static java.lang.reflect.Method $method_importLdapUsers_4; 30 private static java.lang.reflect.Method $method_isIdentical_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_getGroupMembers_1 = hero.interfaces.BnLdap.class.getMethod("getGroupMembers", new java.lang.Class [] {java.lang.String .class}); 45 $method_getHandle_2 = javax.ejb.EJBObject .class.getMethod("getHandle", new java.lang.Class [] {}); 46 $method_getPrimaryKey_3 = javax.ejb.EJBObject .class.getMethod("getPrimaryKey", new java.lang.Class [] {}); 47 $method_importLdapUsers_4 = hero.interfaces.BnLdap.class.getMethod("importLdapUsers", new java.lang.Class [] {}); 48 $method_isIdentical_5 = javax.ejb.EJBObject .class.getMethod("isIdentical", new java.lang.Class [] {javax.ejb.EJBObject .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 JOnASBnLdap_1419269875Remote_Stub() { 57 super(); 58 } 59 public JOnASBnLdap_1419269875Remote_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 java.util.Collection getGroupMembers(java.lang.String $param_String_1) 100 throws hero.util.HeroException, java.rmi.RemoteException 101 { 102 try { 103 if (useNewInvoke) { 104 Object $result = ref.invoke(this, $method_getGroupMembers_1, new java.lang.Object [] {$param_String_1}, 2788410801616332759L); 105 return ((java.util.Collection ) $result); 106 } else { 107 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 1, interfaceHash); 108 try { 109 java.io.ObjectOutput out = call.getOutputStream(); 110 out.writeObject($param_String_1); 111 } catch (java.io.IOException e) { 112 throw new java.rmi.MarshalException ("error marshalling arguments", e); 113 } 114 ref.invoke(call); 115 java.util.Collection $result; 116 try { 117 java.io.ObjectInput in = call.getInputStream(); 118 $result = (java.util.Collection ) in.readObject(); 119 } catch (java.io.IOException e) { 120 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 121 } catch (java.lang.ClassNotFoundException e) { 122 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 123 } finally { 124 ref.done(call); 125 } 126 return $result; 127 } 128 } catch (java.lang.RuntimeException e) { 129 throw e; 130 } catch (java.rmi.RemoteException e) { 131 throw e; 132 } catch (hero.util.HeroException e) { 133 throw e; 134 } catch (java.lang.Exception e) { 135 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 136 } 137 } 138 139 public javax.ejb.Handle getHandle() 141 throws java.rmi.RemoteException 142 { 143 try { 144 if (useNewInvoke) { 145 Object $result = ref.invoke(this, $method_getHandle_2, null, -1299374689989208114L); 146 return ((javax.ejb.Handle ) $result); 147 } else { 148 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 2, interfaceHash); 149 ref.invoke(call); 150 javax.ejb.Handle $result; 151 try { 152 java.io.ObjectInput in = call.getInputStream(); 153 $result = (javax.ejb.Handle ) in.readObject(); 154 } catch (java.io.IOException e) { 155 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 156 } catch (java.lang.ClassNotFoundException e) { 157 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 158 } finally { 159 ref.done(call); 160 } 161 return $result; 162 } 163 } catch (java.lang.RuntimeException e) { 164 throw e; 165 } catch (java.rmi.RemoteException e) { 166 throw e; 167 } catch (java.lang.Exception e) { 168 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 169 } 170 } 171 172 public java.lang.Object getPrimaryKey() 174 throws java.rmi.RemoteException 175 { 176 try { 177 if (useNewInvoke) { 178 Object $result = ref.invoke(this, $method_getPrimaryKey_3, null, 4840115071604865751L); 179 return ((java.lang.Object ) $result); 180 } else { 181 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 3, interfaceHash); 182 ref.invoke(call); 183 java.lang.Object $result; 184 try { 185 java.io.ObjectInput in = call.getInputStream(); 186 $result = (java.lang.Object ) in.readObject(); 187 } catch (java.io.IOException e) { 188 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 189 } catch (java.lang.ClassNotFoundException e) { 190 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 191 } finally { 192 ref.done(call); 193 } 194 return $result; 195 } 196 } catch (java.lang.RuntimeException e) { 197 throw e; 198 } catch (java.rmi.RemoteException e) { 199 throw e; 200 } catch (java.lang.Exception e) { 201 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 202 } 203 } 204 205 public void importLdapUsers() 207 throws hero.util.HeroException, java.rmi.RemoteException 208 { 209 try { 210 if (useNewInvoke) { 211 ref.invoke(this, $method_importLdapUsers_4, null, -8874144254708945665L); 212 } else { 213 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 4, interfaceHash); 214 ref.invoke(call); 215 ref.done(call); 216 } 217 } catch (java.lang.RuntimeException e) { 218 throw e; 219 } catch (java.rmi.RemoteException e) { 220 throw e; 221 } catch (hero.util.HeroException e) { 222 throw e; 223 } catch (java.lang.Exception e) { 224 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 225 } 226 } 227 228 public boolean isIdentical(javax.ejb.EJBObject $param_EJBObject_1) 230 throws java.rmi.RemoteException 231 { 232 try { 233 if (useNewInvoke) { 234 Object $result = ref.invoke(this, $method_isIdentical_5, new java.lang.Object [] {$param_EJBObject_1}, -5909123752501984271L); 235 return ((java.lang.Boolean ) $result).booleanValue(); 236 } else { 237 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 5, interfaceHash); 238 try { 239 java.io.ObjectOutput out = call.getOutputStream(); 240 out.writeObject($param_EJBObject_1); 241 } catch (java.io.IOException e) { 242 throw new java.rmi.MarshalException ("error marshalling arguments", e); 243 } 244 ref.invoke(call); 245 boolean $result; 246 try { 247 java.io.ObjectInput in = call.getInputStream(); 248 $result = in.readBoolean(); 249 } catch (java.io.IOException e) { 250 throw new java.rmi.UnmarshalException ("error unmarshalling return", e); 251 } finally { 252 ref.done(call); 253 } 254 return $result; 255 } 256 } catch (java.lang.RuntimeException e) { 257 throw e; 258 } catch (java.rmi.RemoteException e) { 259 throw e; 260 } catch (java.lang.Exception e) { 261 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 262 } 263 } 264 265 public void remove() 267 throws java.rmi.RemoteException , javax.ejb.RemoveException 268 { 269 try { 270 if (useNewInvoke) { 271 ref.invoke(this, $method_remove_6, null, -5013858639939630501L); 272 } else { 273 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject ) this, operations, 6, interfaceHash); 274 ref.invoke(call); 275 ref.done(call); 276 } 277 } catch (java.lang.RuntimeException e) { 278 throw e; 279 } catch (java.rmi.RemoteException e) { 280 throw e; 281 } catch (javax.ejb.RemoveException e) { 282 throw e; 283 } catch (java.lang.Exception e) { 284 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 285 } 286 } 287 } 288 | Popular Tags |