KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > rmijdbc > RJDriverServer_Skel


1 // Skel class generated by rmic - DO NOT EDIT!
2

3 package org.objectweb.rmijdbc;
4
5 public final class RJDriverServer_Skel
6     implements java.rmi.server.Skeleton JavaDoc
7 {
8     private static final long interfaceHash = 137660496L;
9     
10     private static final java.rmi.server.Operation JavaDoc[] operations = {
11         new java.rmi.server.Operation JavaDoc("boolean acceptsURL(java.lang.String"),
12         new java.rmi.server.Operation JavaDoc("org.objectweb.rmijdbc.RJConnectionInterface connect(java.lang.String, java.util.Properties"),
13         new java.rmi.server.Operation JavaDoc("int getMajorVersion("),
14         new java.rmi.server.Operation JavaDoc("int getMinorVersion("),
15         new java.rmi.server.Operation JavaDoc("org.objectweb.rmijdbc.RJDriverPropertyInfo[] getPropertyInfo(java.lang.String, java.util.Properties"),
16         new java.rmi.server.Operation JavaDoc("boolean jdbcCompliant("),
17         new java.rmi.server.Operation JavaDoc("void shutdown(java.lang.String"),
18         new java.rmi.server.Operation JavaDoc("void unreferenced(")
19     };
20     
21     public java.rmi.server.Operation JavaDoc[] getOperations() {
22         return ((java.rmi.server.Operation JavaDoc[]) operations.clone());
23     }
24     
25     public void dispatch(java.rmi.Remote JavaDoc obj, java.rmi.server.RemoteCall JavaDoc call, int opnum, long hash) throws java.lang.Exception JavaDoc {
26         if (opnum < 0) {
27             if (hash == -7367999113689691797L) {
28                 opnum = 0;
29             }
30             else if (hash == 5165148856741468322L) {
31                 opnum = 1;
32             }
33             else if (hash == 8249261225631588463L) {
34                 opnum = 2;
35             }
36             else if (hash == -7238054984232844689L) {
37                 opnum = 3;
38             }
39             else if (hash == 2012679364492466773L) {
40                 opnum = 4;
41             }
42             else if (hash == 160278965718780387L) {
43                 opnum = 5;
44             }
45             else if (hash == -5716185735791416779L) {
46                 opnum = 6;
47             }
48             else if (hash == -430969274754208937L) {
49                 opnum = 7;
50             }
51             else {
52                 throw new java.rmi.server.SkeletonMismatchException JavaDoc("interface hash mismatch");
53             }
54         }
55         else if (hash != interfaceHash) {
56             throw new java.rmi.server.SkeletonMismatchException JavaDoc("interface hash mismatch");
57         }
58         
59         org.objectweb.rmijdbc.RJDriverServer server = (org.objectweb.rmijdbc.RJDriverServer)obj;
60         switch (opnum) {
61         case 0:
62         {
63             java.lang.String JavaDoc $param_0;
64             try {
65                 java.io.ObjectInput JavaDoc in = call.getInputStream();
66                 $param_0 = (java.lang.String JavaDoc)in.readObject();
67                 
68             }
69             catch (java.io.IOException JavaDoc e) {
70                 throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling arguments", e);
71             }
72             catch (java.lang.ClassCastException JavaDoc e) {
73                 throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling arguments", e);
74             }
75             finally {
76                 call.releaseInputStream();
77             }
78             boolean $result = server.acceptsURL($param_0);
79             try {
80                 java.io.ObjectOutput JavaDoc out = call.getResultStream(true);
81                 out.writeBoolean($result);
82             }
83             catch (java.io.IOException JavaDoc e) {
84                 throw new java.rmi.MarshalException JavaDoc("error marshalling return", e);
85             }
86             break;
87         }
88         
89         case 1:
90         {
91             java.lang.String JavaDoc $param_0;
92             java.util.Properties JavaDoc $param_1;
93             try {
94                 java.io.ObjectInput JavaDoc in = call.getInputStream();
95                 $param_0 = (java.lang.String JavaDoc)in.readObject();
96                 $param_1 = (java.util.Properties JavaDoc)in.readObject();
97                 
98             }
99             catch (java.io.IOException JavaDoc e) {
100                 throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling arguments", e);
101             }
102             catch (java.lang.ClassCastException JavaDoc e) {
103                 throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling arguments", e);
104             }
105             finally {
106                 call.releaseInputStream();
107             }
108             org.objectweb.rmijdbc.RJConnectionInterface $result = server.connect($param_0, $param_1);
109             try {
110                 java.io.ObjectOutput JavaDoc out = call.getResultStream(true);
111                 out.writeObject($result);
112             }
113             catch (java.io.IOException JavaDoc e) {
114                 throw new java.rmi.MarshalException JavaDoc("error marshalling return", e);
115             }
116             break;
117         }
118         
119         case 2:
120         {
121             try {
122                 java.io.ObjectInput JavaDoc in = call.getInputStream();
123                 
124             }
125             catch (java.io.IOException JavaDoc e) {
126                 throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling arguments", e);
127             }
128             finally {
129                 call.releaseInputStream();
130             }
131             int $result = server.getMajorVersion();
132             try {
133                 java.io.ObjectOutput JavaDoc out = call.getResultStream(true);
134                 out.writeInt($result);
135             }
136             catch (java.io.IOException JavaDoc e) {
137                 throw new java.rmi.MarshalException JavaDoc("error marshalling return", e);
138             }
139             break;
140         }
141         
142         case 3:
143         {
144             try {
145                 java.io.ObjectInput JavaDoc in = call.getInputStream();
146                 
147             }
148             catch (java.io.IOException JavaDoc e) {
149                 throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling arguments", e);
150             }
151             finally {
152                 call.releaseInputStream();
153             }
154             int $result = server.getMinorVersion();
155             try {
156                 java.io.ObjectOutput JavaDoc out = call.getResultStream(true);
157                 out.writeInt($result);
158             }
159             catch (java.io.IOException JavaDoc e) {
160                 throw new java.rmi.MarshalException JavaDoc("error marshalling return", e);
161             }
162             break;
163         }
164         
165         case 4:
166         {
167             java.lang.String JavaDoc $param_0;
168             java.util.Properties JavaDoc $param_1;
169             try {
170                 java.io.ObjectInput JavaDoc in = call.getInputStream();
171                 $param_0 = (java.lang.String JavaDoc)in.readObject();
172                 $param_1 = (java.util.Properties JavaDoc)in.readObject();
173                 
174             }
175             catch (java.io.IOException JavaDoc e) {
176                 throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling arguments", e);
177             }
178             catch (java.lang.ClassCastException JavaDoc e) {
179                 throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling arguments", e);
180             }
181             finally {
182                 call.releaseInputStream();
183             }
184             org.objectweb.rmijdbc.RJDriverPropertyInfo[] $result = server.getPropertyInfo($param_0, $param_1);
185             try {
186                 java.io.ObjectOutput JavaDoc out = call.getResultStream(true);
187                 out.writeObject($result);
188             }
189             catch (java.io.IOException JavaDoc e) {
190                 throw new java.rmi.MarshalException JavaDoc("error marshalling return", e);
191             }
192             break;
193         }
194         
195         case 5:
196         {
197             try {
198                 java.io.ObjectInput JavaDoc in = call.getInputStream();
199                 
200             }
201             catch (java.io.IOException JavaDoc e) {
202                 throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling arguments", e);
203             }
204             finally {
205                 call.releaseInputStream();
206             }
207             boolean $result = server.jdbcCompliant();
208             try {
209                 java.io.ObjectOutput JavaDoc out = call.getResultStream(true);
210                 out.writeBoolean($result);
211             }
212             catch (java.io.IOException JavaDoc e) {
213                 throw new java.rmi.MarshalException JavaDoc("error marshalling return", e);
214             }
215             break;
216         }
217         
218         case 6:
219         {
220             java.lang.String JavaDoc $param_0;
221             try {
222                 java.io.ObjectInput JavaDoc in = call.getInputStream();
223                 $param_0 = (java.lang.String JavaDoc)in.readObject();
224                 
225             }
226             catch (java.io.IOException JavaDoc e) {
227                 throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling arguments", e);
228             }
229             catch (java.lang.ClassCastException JavaDoc e) {
230                 throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling arguments", e);
231             }
232             finally {
233                 call.releaseInputStream();
234             }
235             server.shutdown($param_0);
236             try {
237                 java.io.ObjectOutput JavaDoc out = call.getResultStream(true);
238             }
239             catch (java.io.IOException JavaDoc e) {
240                 throw new java.rmi.MarshalException JavaDoc("error marshalling return", e);
241             }
242             break;
243         }
244         
245         case 7:
246         {
247             try {
248                 java.io.ObjectInput JavaDoc in = call.getInputStream();
249                 
250             }
251             catch (java.io.IOException JavaDoc e) {
252                 throw new java.rmi.UnmarshalException JavaDoc("error unmarshalling arguments", e);
253             }
254             finally {
255                 call.releaseInputStream();
256             }
257             server.unreferenced();
258             try {
259                 java.io.ObjectOutput JavaDoc out = call.getResultStream(true);
260             }
261             catch (java.io.IOException JavaDoc e) {
262                 throw new java.rmi.MarshalException JavaDoc("error marshalling return", e);
263             }
264             break;
265         }
266         
267         default:
268             throw new java.rmi.UnmarshalException JavaDoc("invalid method number");
269         }
270     }
271 }
272
Popular Tags