1 19 package mark.comps; 20 21 import gcc.rmi.iiop.ObjectRef; 22 import gcc.rmi.iiop.client.Connection; 23 import gcc.properties.PropertyMap; 24 import mark.AddData; 25 26 import javax.ejb.EJBHome; 27 import javax.ejb.RemoveException; 28 import javax.ejb.Handle; 29 import javax.ejb.EJBObject; 30 import java.rmi.RemoteException; 31 32 public class Add_Stub 33 extends ObjectRef 34 implements Add 35 { 36 public java.lang.String[] _ids = { "mark.comps.Add", "RMI:mark.comps.Add:0000000000000000"}; 40 private static final gcc.rmi.iiop.ValueType vt$1 = gcc.rmi.iiop.ValueType.getInstance(java.lang.String.class); 41 42 public Add_Stub( ) 46 { 47 super(); 48 } 49 50 54 public void $invoke( java.lang.String methodName, byte[] objectKey, java.lang.Object instance, gcc.rmi.iiop.ObjectInputStream input, gcc.rmi.iiop.ObjectOutputStream output ) 55 { 56 } 57 58 public boolean _is_a(java.lang.String p1) 59 { 60 java.lang.Object $key_1 = $getRequestKey(); 61 for (int $retry = 0; ; $retry++) 62 { 63 try 64 { 65 gcc.rmi.iiop.client.Connection $connection_2 = this.$connect(); 66 gcc.rmi.iiop.ObjectOutputStream $output_3 = $connection_2.getSimpleOutputStream(); 67 $output_3.writeObject(vt$1, p1); 68 $connection_2.invoke(this, "_is_a", $key_1, $retry); 69 gcc.rmi.iiop.ObjectInputStream $input_4 = $connection_2.getSimpleInputStream(); 70 $connection_2.forget($key_1); 71 $connection_2.close(); 72 java.lang.String $et_5 = $connection_2.getExceptionType(); 73 if ($et_5 != null) 74 { 75 throw gcc.rmi.iiop.SystemExceptionFactory.getException($connection_2.getException()); 76 } 77 boolean $djc_result; 78 $djc_result = $input_4.readBoolean(); 79 return $djc_result; 80 } 81 catch (gcc.rmi.iiop.client.RetryInvokeException $ex_6) 82 { 83 if ($retry == 3) 84 { 85 throw $ex_6.getRuntimeException(); 86 } 87 } 88 } 89 } 90 91 public int add( int p0, int p1 ) 92 { 93 java.lang.Object $key_1 = $getRequestKey(); 94 for (int $retry = 0; ; $retry++) 95 { 96 try 97 { 98 gcc.rmi.iiop.client.Connection connection = this.$connect(); 99 gcc.rmi.iiop.ObjectOutputStream output = connection.getOutputStream(); 100 output.writeInt(p0); 101 output.writeInt(p1); 102 connection.invoke( this, "add", $key_1, $retry ); 103 gcc.rmi.iiop.ObjectInputStream input = connection.getInputStream(); 104 connection.forget( $key_1 ); 105 connection.close(); 106 java.lang.String et = connection.getExceptionType(); 107 if (et != null) 108 { 109 throw gcc.rmi.iiop.SystemExceptionFactory.getException(connection.getException()); 110 } 111 int rc; 112 rc = input.readInt(); 113 return rc; 114 } 115 catch (gcc.rmi.iiop.client.RetryInvokeException $ex_6) 116 { 117 if ($retry == 3) 118 { 119 throw $ex_6.getRuntimeException(); 120 } 121 } 122 } 123 } 124 125 public AddData addData(AddData a, AddData b) throws RemoteException 126 { 127 return null; } 129 130 public AddData addDatas(AddData a[]) throws RemoteException 131 { 132 return null; } 134 135 public void mVOID() throws RemoteException 136 { 137 } 139 140 public int mINT() throws RemoteException 141 { 142 return 0; } 144 145 public double mDOUBLE() throws RemoteException 146 { 147 return 0; } 149 150 public float mFLOAT() throws RemoteException 151 { 152 return 0; } 154 155 public long mLONG() throws RemoteException 156 { 157 return 0; } 159 160 public char mCHAR() throws RemoteException 161 { 162 return 0; } 164 165 public boolean mBOOLEAN() throws RemoteException 166 { 167 return false; } 169 170 public byte mBYTE() throws RemoteException 171 { 172 return 0; } 174 175 public String mSTRING() throws RemoteException 176 { 177 return null; } 179 180 public void mEXCEPTION() throws RemoteException 181 { 182 } 184 185 public void mNONE() throws RemoteException 186 { 187 } 189 190 public void mONE(int a) throws RemoteException 191 { 192 } 194 195 public void mTWO(int a, int b) throws RemoteException 196 { 197 } 199 200 201 public EJBHome getEJBHome() throws RemoteException 202 { 203 return null; } 205 206 public Object getPrimaryKey() throws RemoteException 207 { 208 return null; } 210 211 public void remove() throws RemoteException, RemoveException 212 { 213 } 215 216 public Handle getHandle() throws RemoteException 217 { 218 return null; } 220 221 public boolean isIdentical(EJBObject ejbObject) throws RemoteException 222 { 223 return false; } 225 } 226 | Popular Tags |