KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mockobjects > sql > CommonMockCallableStatement


1 /*
2  *
3  * ====================================================================
4  *
5  * The Apache Software License, Version 1.1
6  *
7  * Copyright (c) 2002 The Apache Software Foundation. All rights
8  * reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  *
14  * 1. Redistributions of source code must retain the above copyright
15  * notice, this list of conditions and the following disclaimer.
16  *
17  * 2. Redistributions in binary form must reproduce the above copyright
18  * notice, this list of conditions and the following disclaimer in
19  * the documentation and/or other materials provided with the
20  * distribution.
21  *
22  * 3. The end-user documentation included with the redistribution, if
23  * any, must include the following acknowlegement:
24  * "This product includes software developed by the
25  * Apache Software Foundation (http://www.apache.org/)."
26  * Alternately, this acknowlegement may appear in the software itself,
27  * if and wherever such third-party acknowlegements normally appear.
28  *
29  * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
30  * Foundation" must not be used to endorse or promote products derived
31  * from this software without prior written permission. For written
32  * permission, please contact apache@apache.org.
33  *
34  * 5. Products derived from this software may not be called "Apache"
35  * nor may "Apache" appear in their names without prior written
36  * permission of the Apache Group.
37  *
38  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
39  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
40  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
41  * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
42  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
44  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
45  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
46  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
47  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
48  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
49  * SUCH DAMAGE.
50  * ====================================================================
51  *
52  * This software consists of voluntary contributions made by many
53  * individuals on behalf of the Apache Software Foundation. For more
54  * information on the Apache Software Foundation, please see
55  * <http://www.apache.org/>.
56  *
57  */

58
59 // ------------------------------------------------------------------------ 78
60

61 package com.mockobjects.sql;
62
63 import java.sql.*;
64 import java.util.Calendar JavaDoc;
65 import java.io.Reader JavaDoc;
66 import java.io.InputStream JavaDoc;
67 import java.math.BigDecimal JavaDoc;
68 import java.net.URL JavaDoc;
69
70 import com.mockobjects.*;
71
72 abstract class CommonMockCallableStatement
73     extends CommonMockPreparedStatement implements CallableStatement {
74
75     public void registerOutParameter(int parameterIndex, int sqlType) {
76         notImplemented();
77     }
78
79     public void registerOutParameter(int parameterIndex, int sqlType, int scale) {
80         notImplemented();
81     }
82
83     public void registerOutParameter(int parameterIndex, int sqlType, String JavaDoc typeName) {
84         notImplemented();
85     }
86
87     public void registerOutParameter(String JavaDoc parameterName, int sqlType) {
88         notImplemented();
89     }
90
91     public void registerOutParameter(String JavaDoc parameterName, int sqlType, int scale) {
92         notImplemented();
93     }
94
95     public void registerOutParameter(String JavaDoc parameterName, int sqlType, String JavaDoc typeName) {
96         notImplemented();
97     }
98
99     public boolean wasNull() {
100         notImplemented();
101         return false;
102     }
103
104     public String JavaDoc getString(int parameterIndex) {
105         notImplemented();
106         return null;
107     }
108
109     public String JavaDoc getString(String JavaDoc parameterName) {
110         notImplemented();
111         return null;
112     }
113
114     public boolean getBoolean(int parameterIndex) {
115         notImplemented();
116         return false;
117     }
118
119     public boolean getBoolean(String JavaDoc parameterName) {
120         notImplemented();
121         return false;
122     }
123
124     public byte getByte(int parameterIndex) {
125         notImplemented();
126         return 0;
127     }
128
129     public byte getByte(String JavaDoc parameterName) {
130         notImplemented();
131         return 0;
132     }
133
134     public short getShort(int parameterIndex) {
135         notImplemented();
136         return 0;
137     }
138
139     public short getShort(String JavaDoc parameterName) {
140         notImplemented();
141         return 0;
142     }
143
144     public int getInt(int parameterIndex) {
145         notImplemented();
146         return 0;
147     }
148
149     public int getInt(String JavaDoc parameterName) {
150         notImplemented();
151         return 0;
152     }
153
154     public long getLong(int parameterIndex) {
155         notImplemented();
156         return 0;
157     }
158
159     public long getLong(String JavaDoc parameterName) {
160         notImplemented();
161         return 0;
162     }
163
164     public float getFloat(int parameterIndex) {
165         notImplemented();
166         return 0;
167     }
168
169     public float getFloat(String JavaDoc parameterName) {
170         notImplemented();
171         return 0;
172     }
173
174     public double getDouble(int parameterIndex) {
175         notImplemented();
176         return 0;
177     }
178
179     public double getDouble(String JavaDoc parameterName) {
180         notImplemented();
181         return 0;
182     }
183
184     public BigDecimal JavaDoc getBigDecimal(int parameterIndex) {
185         notImplemented();
186         return null;
187     }
188
189     public BigDecimal JavaDoc getBigDecimal(String JavaDoc parameterName) {
190         notImplemented();
191         return null;
192     }
193
194     public BigDecimal JavaDoc getBigDecimal(int parameterIndex, int scale) {
195         notImplemented();
196         return null;
197     }
198
199     public byte[] getBytes(int parameterIndex) {
200         notImplemented();
201         return null;
202     }
203
204     public byte[] getBytes(String JavaDoc parameterName) {
205         notImplemented();
206         return null;
207     }
208
209     public Date getDate(int parameterIndex) {
210         notImplemented();
211         return null;
212     }
213
214     public Date getDate(String JavaDoc parameterName) {
215         notImplemented();
216         return null;
217     }
218
219     public Date getDate(int parameterIndex, Calendar JavaDoc cal) {
220         notImplemented();
221         return null;
222     }
223
224     public Date getDate(String JavaDoc parameterName, Calendar JavaDoc cal) {
225         notImplemented();
226         return null;
227     }
228
229     public Time getTime(int parameterIndex) {
230         notImplemented();
231         return null;
232     }
233
234     public Time getTime(String JavaDoc parameterName) {
235         notImplemented();
236         return null;
237     }
238
239     public Time getTime(int parameterIndex, Calendar JavaDoc cal) {
240         notImplemented();
241         return null;
242     }
243
244     public Time getTime(String JavaDoc parameterName, Calendar JavaDoc cal) {
245         notImplemented();
246         return null;
247     }
248
249     public Timestamp getTimestamp(int parameterIndex) {
250         notImplemented();
251         return null;
252     }
253
254     public Timestamp getTimestamp(String JavaDoc parameterName) {
255         notImplemented();
256         return null;
257     }
258
259     public Timestamp getTimestamp(int parameterIndex, Calendar JavaDoc cal) {
260         notImplemented();
261         return null;
262     }
263
264     public Timestamp getTimestamp(String JavaDoc parameterName, Calendar JavaDoc cal) {
265         notImplemented();
266         return null;
267     }
268
269     public Object JavaDoc getObject(int parameterIndex) {
270         notImplemented();
271         return null;
272     }
273
274     public Object JavaDoc getObject(String JavaDoc parameterName) {
275         notImplemented();
276         return null;
277     }
278
279     public Object JavaDoc getObject(int parameterIndex, java.util.Map JavaDoc map) {
280         notImplemented();
281         return null;
282     }
283
284     public Object JavaDoc getObject(String JavaDoc parameterName, java.util.Map JavaDoc map) {
285         notImplemented();
286         return null;
287     }
288
289     public Ref getRef(int parameterIndex) {
290         notImplemented();
291         return null;
292     }
293
294     public Ref getRef(String JavaDoc parameterName) {
295         notImplemented();
296         return null;
297     }
298
299     public Blob getBlob(int parameterIndex) {
300         notImplemented();
301         return null;
302     }
303
304     public Blob getBlob(String JavaDoc parameterName) {
305         notImplemented();
306         return null;
307     }
308
309     public Clob getClob(int parameterIndex) {
310         notImplemented();
311         return null;
312     }
313
314     public Clob getClob(String JavaDoc parameterName) {
315         notImplemented();
316         return null;
317     }
318
319     public Array getArray(int parameterIndex) {
320         notImplemented();
321         return null;
322     }
323
324     public Array getArray(String JavaDoc parameterName) {
325         notImplemented();
326         return null;
327     }
328
329     public URL JavaDoc getURL(int parameterIndex) {
330         notImplemented();
331         return null;
332     }
333
334     public URL JavaDoc getURL(String JavaDoc parameterName) {
335         notImplemented();
336         return null;
337     }
338
339     public void setAsciiStream(String JavaDoc parameterName, InputStream JavaDoc x, int length) {
340         notImplemented();
341     }
342
343     public void setBigDecimal(String JavaDoc parameterName, BigDecimal JavaDoc x) {
344         notImplemented();
345     }
346
347     public void setBinaryStream(String JavaDoc parameterName, InputStream JavaDoc x, int length) {
348         notImplemented();
349     }
350
351     public void setBoolean(String JavaDoc parameterName, boolean x) {
352         notImplemented();
353     }
354
355     public void setByte(String JavaDoc parameterName, byte x) {
356         notImplemented();
357     }
358
359     public void setBytes(String JavaDoc parameterName, byte[] x) {
360         notImplemented();
361     }
362
363     public void setCharacterStream(String JavaDoc parameterName, Reader JavaDoc reader, int length) {
364         notImplemented();
365     }
366
367     public void setDate(String JavaDoc parameterName, Date x) {
368         notImplemented();
369     }
370
371     public void setDate(String JavaDoc parameterName, Date x, Calendar JavaDoc cal) {
372         notImplemented();
373     }
374
375     public void setDouble(String JavaDoc parameterName, double x) {
376         notImplemented();
377     }
378
379     public void setFloat(String JavaDoc parameterName, float x) {
380         notImplemented();
381     }
382
383     public void setInt(String JavaDoc parameterName, int x) {
384         notImplemented();
385     }
386
387     public void setLong(String JavaDoc parameterName, long x) {
388         notImplemented();
389     }
390
391     public void setNull(String JavaDoc parameterName, int sqlType) {
392         notImplemented();
393     }
394
395     public void setNull(String JavaDoc parameterName, int sqlType, String JavaDoc typeName) {
396         notImplemented();
397     }
398
399     public void setObject(String JavaDoc parameterName, Object JavaDoc x) {
400         notImplemented();
401     }
402
403     public void setObject(String JavaDoc parameterName, Object JavaDoc x, int targetSqlType) {
404         notImplemented();
405     }
406
407     public void setObject(String JavaDoc parameterName, Object JavaDoc x, int targetSqlType, int scale) {
408         notImplemented();
409     }
410
411     public void setShort(String JavaDoc parameterName, short x) {
412         notImplemented();
413     }
414
415     public void setString(String JavaDoc parameterName, String JavaDoc x) {
416         notImplemented();
417     }
418
419     public void setTime(String JavaDoc parameterName, Time x) {
420         notImplemented();
421     }
422
423     public void setTime(String JavaDoc parameterName, Time x, Calendar JavaDoc cal) {
424         notImplemented();
425     }
426
427     public void setTimestamp(String JavaDoc parameterName, Timestamp x) {
428         notImplemented();
429     }
430
431     public void setTimestamp(String JavaDoc parameterName, Timestamp x, Calendar JavaDoc cal) {
432         notImplemented();
433     }
434
435     public void setURL(String JavaDoc parameterName, URL JavaDoc val) {
436         notImplemented();
437     }
438 }
Popular Tags