KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mark > comps > Add_Stub


1 /*
2  * Copyright 2004 The Apache Software Foundation or its licensors, as
3  * applicable.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14  * implied.
15  *
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */

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     //
37
// Fields
38
//
39
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     //
43
// Constructors
44
//
45
public Add_Stub( )
46     {
47         super();
48     }
49     
50     //
51
// Methods
52
//
53

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; //To change body of implemented methods use File | Settings | File Templates.
128
}
129
130     public AddData addDatas(AddData a[]) throws RemoteException
131     {
132         return null; //To change body of implemented methods use File | Settings | File Templates.
133
}
134
135     public void mVOID() throws RemoteException
136     {
137         //To change body of implemented methods use File | Settings | File Templates.
138
}
139
140     public int mINT() throws RemoteException
141     {
142         return 0; //To change body of implemented methods use File | Settings | File Templates.
143
}
144
145     public double mDOUBLE() throws RemoteException
146     {
147         return 0; //To change body of implemented methods use File | Settings | File Templates.
148
}
149
150     public float mFLOAT() throws RemoteException
151     {
152         return 0; //To change body of implemented methods use File | Settings | File Templates.
153
}
154
155     public long mLONG() throws RemoteException
156     {
157         return 0; //To change body of implemented methods use File | Settings | File Templates.
158
}
159
160     public char mCHAR() throws RemoteException
161     {
162         return 0; //To change body of implemented methods use File | Settings | File Templates.
163
}
164
165     public boolean mBOOLEAN() throws RemoteException
166     {
167         return false; //To change body of implemented methods use File | Settings | File Templates.
168
}
169
170     public byte mBYTE() throws RemoteException
171     {
172         return 0; //To change body of implemented methods use File | Settings | File Templates.
173
}
174
175     public String mSTRING() throws RemoteException
176     {
177         return null; //To change body of implemented methods use File | Settings | File Templates.
178
}
179
180     public void mEXCEPTION() throws RemoteException
181     {
182         //To change body of implemented methods use File | Settings | File Templates.
183
}
184
185     public void mNONE() throws RemoteException
186     {
187         //To change body of implemented methods use File | Settings | File Templates.
188
}
189
190     public void mONE(int a) throws RemoteException
191     {
192         //To change body of implemented methods use File | Settings | File Templates.
193
}
194
195     public void mTWO(int a, int b) throws RemoteException
196     {
197         //To change body of implemented methods use File | Settings | File Templates.
198
}
199
200
201     public EJBHome getEJBHome() throws RemoteException
202     {
203         return null; //To change body of implemented methods use File | Settings | File Templates.
204
}
205
206     public Object getPrimaryKey() throws RemoteException
207     {
208         return null; //To change body of implemented methods use File | Settings | File Templates.
209
}
210
211     public void remove() throws RemoteException, RemoveException
212     {
213         //To change body of implemented methods use File | Settings | File Templates.
214
}
215
216     public Handle getHandle() throws RemoteException
217     {
218         return null; //To change body of implemented methods use File | Settings | File Templates.
219
}
220
221     public boolean isIdentical(EJBObject ejbObject) throws RemoteException
222     {
223         return false; //To change body of implemented methods use File | Settings | File Templates.
224
}
225 }
226
Popular Tags