KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > internetcds > jdbc > tds > CallableStatement_2_0


1 //
2
// Copyright 1999 Craig Spannring
3
//
4
// All rights reserved.
5
//
6
// Redistribution and use in source and binary forms, with or without
7
// modification, are permitted provided that the following conditions are met:
8
// 1. Redistributions of source code must retain the above copyright
9
// notice, this list of conditions and the following disclaimer.
10
// 2. Redistributions in binary form must reproduce the above copyright
11
// notice, this list of conditions and the following disclaimer in the
12
// documentation and/or other materials provided with the distribution.
13
// 3. All advertising materials mentioning features or use of this software
14
// must display the following acknowledgement:
15
// This product includes software developed by Craig Spannring
16
// 4. The name of Craig Spannring may not be used to endorse or promote
17
// products derived from this software without specific prior
18
// written permission.
19
//
20
// THIS SOFTWARE IS PROVIDED BY CRAIG SPANNRING ``AS IS'' AND
21
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
// ARE DISCLAIMED. IN NO EVENT SHALL CRAIG SPANNRING BE LIABLE
24
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30
// SUCH DAMAGE.
31
//
32
package com.internetcds.jdbc.tds;
33
34 import java.sql.*;
35 import java.net.URL JavaDoc;
36 import java.math.BigDecimal JavaDoc;
37 import java.io.InputStream JavaDoc;
38 import java.io.Reader JavaDoc;
39 import java.util.Calendar JavaDoc;
40 import java.util.Map JavaDoc;
41
42 public class CallableStatement_2_0
43    extends com.internetcds.jdbc.tds.CallableStatement_base
44    implements java.sql.CallableStatement JavaDoc
45 {
46    public static final String JavaDoc cvsVersion = "$Id: CallableStatement_2_0.java,v 1.1 2006/06/23 10:39:04 sinisa Exp $";
47
48
49    public CallableStatement_2_0(
50       java.sql.Connection JavaDoc conn_,
51       Tds tds_,
52       String JavaDoc sql)
53       throws java.sql.SQLException JavaDoc
54    {
55       super(conn_, tds_, sql);
56    }
57
58
59    /**
60     * JDBC 2.0
61     *
62     * Gets the value of a JDBC <code>BLOB</code> parameter as a
63     * {@link Blob} object in the Java programming language.
64     * @param i the first parameter is 1, the second is 2, and so on
65     * @return the parameter value as a <code>Blob</code> object in the
66     * Java programming language. If the value was SQL NULL, the value
67     * <code>null</code> is returned.
68     * @exception SQLException if a database access error occurs
69     */

70    public Blob getBlob (int i) throws SQLException
71    {
72       NotImplemented();
73       return null;
74    }
75    
76    /**
77     * JDBC 2.0
78     *
79     * Gets the value of a JDBC <code>CLOB</code> parameter as a
80     * <code>Clob</code> object in the Java programming language.
81     * @param i the first parameter is 1, the second is 2, and
82     * so on
83     * @return the parameter value as a <code>Clob</code> object in the
84     * Java programming language. If the value was SQL NULL, the
85     * value <code>null</code> is returned.
86     * @exception SQLException if a database access error occurs
87     */

88    public Clob getClob (int i) throws SQLException
89    {
90       NotImplemented();
91       return null;
92    }
93
94    
95    /**
96     * JDBC 2.0
97     *
98     * Returns an object representing the value of OUT parameter
99     * <code>i</code> and uses <code>map</code> for the custom
100     * mapping of the parameter value.
101     * <p>
102     * This method returns a Java object whose type corresponds to the
103     * JDBC type that was registered for this parameter using the method
104     * <code>registerOutParameter</code>. By registering the target
105     * JDBC type as <code>java.sql.Types.OTHER</code>, this method can
106     * be used to read database-specific abstract data types.
107     * @param i the first parameter is 1, the second is 2, and so on
108     * @param map the mapping from SQL type names to Java classes
109     * @return a java.lang.Object holding the OUT parameter value.
110     * @exception SQLException if a database access error occurs
111     */

112    public Object JavaDoc getObject (int i, java.util.Map JavaDoc map) throws SQLException
113    {
114       NotImplemented();
115       return null;
116    }
117
118    
119    /**
120     * JDBC 2.0
121     *
122     * Gets the value of a JDBC <code>REF(&lt;structured-type&gt;)</code>
123     * parameter as a {@link Ref} object in the Java programming language.
124     * @param i the first parameter is 1, the second is 2,
125     * and so on
126     * @return the parameter value as a <code>Ref</code> object in the
127     * Java programming language. If the value was SQL NULL, the value
128     * <code>null</code> is returned.
129     * @exception SQLException if a database access error occurs
130     */

131    public Ref getRef (int i) throws SQLException
132    {
133       NotImplemented();
134       return null;
135    }
136
137
138    /**
139     * JDBC 2.0
140     *
141     * Gets the value of a JDBC <code>ARRAY</code> parameter as an
142     * {@link Array} object in the Java programming language.
143     * @param i the first parameter is 1, the second is 2, and
144     * so on
145     * @return the parameter value as an <code>Array</code> object in
146     * the Java programming language. If the value was SQL NULL, the
147     * value <code>null</code> is returned.
148     * @exception SQLException if a database access error occurs
149     */

150    public Array getArray (int i) throws SQLException
151    {
152       NotImplemented();
153       return null;
154    }
155
156
157    public void setClob (int i, java.sql.Clob JavaDoc x) throws java.sql.SQLException JavaDoc
158    {
159       // XXX should be inherited PreparedStatement_2_0
160
NotImplemented();
161    }
162
163    public void addBatch() throws java.sql.SQLException JavaDoc
164    {
165       // XXX should be inherited PreparedStatement_2_0
166
NotImplemented();
167    }
168
169    public void setBlob (int i, java.sql.Blob JavaDoc x) throws java.sql.SQLException JavaDoc
170    {
171       // XXX should be inherited PreparedStatement_2_0
172
NotImplemented();
173    }
174
175    public void setArray (int i, java.sql.Array JavaDoc x) throws java.sql.SQLException JavaDoc
176    {
177       // XXX should be inherited PreparedStatement_2_0
178
NotImplemented();
179    }
180
181
182    public void setRef (int i, java.sql.Ref JavaDoc x) throws java.sql.SQLException JavaDoc
183    {
184       // XXX should be inherited PreparedStatement_2_0
185
NotImplemented();
186    }
187
188
189    public void setCharacterStream(int parameterIndex,
190                                   java.io.Reader JavaDoc reader,
191                                   int length) throws java.sql.SQLException JavaDoc
192    {
193       // XXX should be inherited PreparedStatement_2_0
194
NotImplemented();
195    }
196
197    public java.sql.ResultSetMetaData JavaDoc getMetaData() throws java.sql.SQLException JavaDoc
198    {
199       // XXX should be inherited PreparedStatement_2_0
200
NotImplemented();
201       return null;
202    }
203    public void setNull (int paramIndex, int sqlType, String JavaDoc typeName)
204       throws java.sql.SQLException JavaDoc
205    {
206       // XXX should be inherited PreparedStatement_2_0
207
NotImplemented();
208    }
209
210    public void setTimestamp(int parameterIndex, java.sql.Timestamp JavaDoc x, java.util.Calendar JavaDoc cal)
211       throws java.sql.SQLException JavaDoc
212    {
213       // XXX should be inherited PreparedStatement_2_0
214
NotImplemented();
215    }
216
217    public void setDate(int parameterIndex, java.sql.Date JavaDoc x, java.util.Calendar JavaDoc cal)
218       throws java.sql.SQLException JavaDoc
219    {
220       // XXX should be inherited PreparedStatement_2_0
221
NotImplemented();
222    }
223
224    public void setTime(int parameterIndex, java.sql.Time JavaDoc x, java.util.Calendar JavaDoc cal)
225       throws java.sql.SQLException JavaDoc
226    {
227       NotImplemented();
228    }
229
230
231     //---------------------------------------------------------------------
232
// JDBC 3.0
233
//---------------------------------------------------------------------
234

235     public void setURL(int current, URL JavaDoc url) throws SQLException {
236         throw new UnsupportedOperationException JavaDoc("Statement.getMoreResults(int) unsupported");
237     }
238     
239     public void setURL(String JavaDoc current, URL JavaDoc url) throws SQLException {
240         throw new UnsupportedOperationException JavaDoc("Statement.getMoreResults(int) unsupported");
241     }
242
243     public boolean getMoreResults(int current) throws SQLException {
244         throw new UnsupportedOperationException JavaDoc("Statement.getMoreResults(int) unsupported");
245     }
246
247     public ResultSet getGeneratedKeys() throws SQLException {
248         throw new UnsupportedOperationException JavaDoc("Statement.getGeneratedKeys() unsupported");
249     }
250
251     public int executeUpdate(String JavaDoc sql, int autoGeneratedKeys) throws SQLException {
252         throw new UnsupportedOperationException JavaDoc("Statement.executeUpdate(String,int) unsupported");
253     }
254
255     public int executeUpdate(String JavaDoc sql, int[] columnIndexes) throws SQLException {
256         throw new UnsupportedOperationException JavaDoc("Statement.executeUpdate(String,int[]) unsupported");
257     }
258
259     public int executeUpdate(String JavaDoc sql, String JavaDoc[] columnNames) throws SQLException {
260         throw new UnsupportedOperationException JavaDoc("Statement.executeUpdate(String,String[]) unsupported");
261     }
262
263     public boolean execute(String JavaDoc sql, int autoGeneratedKeys) throws SQLException {
264         throw new UnsupportedOperationException JavaDoc("Statement.execute(String,int) unsupported");
265     }
266
267     public boolean execute(String JavaDoc sql, int[] columnIndexes) throws SQLException {
268         throw new UnsupportedOperationException JavaDoc("Statement.execute(String,int[]) unsupported");
269     }
270
271     public boolean execute(String JavaDoc sql, String JavaDoc[] columnNames) throws SQLException {
272         throw new UnsupportedOperationException JavaDoc("Statement.execute(String,String[]) unsupported");
273     }
274
275     public int getResultSetHoldability() throws SQLException {
276         throw new UnsupportedOperationException JavaDoc("Statement.getResultSetHoldability() unsupported");
277     }
278
279     public java.sql.ParameterMetaData JavaDoc getParameterMetaData() throws SQLException {
280         throw new UnsupportedOperationException JavaDoc("Statement.getParameterMetaData() unsupported");
281     }
282
283     public void registerOutParameter(String JavaDoc str,int x) throws SQLException {
284         throw new UnsupportedOperationException JavaDoc("Statement.getParameterMetaData() unsupported");
285     }
286
287     public void registerOutParameter(String JavaDoc str,int x, int y) throws SQLException {
288         throw new UnsupportedOperationException JavaDoc("Statement.getParameterMetaData() unsupported");
289     }
290
291     public void registerOutParameter(String JavaDoc str1,String JavaDoc str2) throws SQLException {
292         throw new UnsupportedOperationException JavaDoc("Statement.getParameterMetaData() unsupported");
293     }
294     public void registerOutParameter(String JavaDoc str1,int x,String JavaDoc str2) throws SQLException {
295         throw new UnsupportedOperationException JavaDoc("Statement.getParameterMetaData() unsupported");
296     }
297
298     public URL JavaDoc getURL(int url) throws SQLException {
299         throw new UnsupportedOperationException JavaDoc("Statement.getMoreResults(int) unsupported");
300     }
301     
302     public void setNull(String JavaDoc column, int url) throws SQLException {
303         throw new UnsupportedOperationException JavaDoc("Statement.getMoreResults(int) setNull");
304     }
305     
306     public void setBoolean(String JavaDoc str,boolean b) throws SQLException {
307         throw new UnsupportedOperationException JavaDoc("Statement.setBoolean(int) setNull");
308     }
309
310     public void setByte(String JavaDoc str,byte b) throws SQLException {
311         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
312     }
313
314
315     public void setShort(String JavaDoc str,short b) throws SQLException {
316         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
317     }
318     
319     
320     public void setInt(String JavaDoc str,int b) throws SQLException {
321         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
322     }
323     
324     
325     public void setLong(String JavaDoc str,long b) throws SQLException {
326         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
327     }
328     
329     
330     public void setFloat(String JavaDoc str,float b) throws SQLException {
331         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
332     }
333
334
335     public void setDouble(String JavaDoc str,double b) throws SQLException {
336         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
337     }
338     
339     
340     public void setBigDecimal(String JavaDoc str,BigDecimal JavaDoc b) throws SQLException {
341         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
342     }
343
344
345     public void setString(String JavaDoc str,String JavaDoc b) throws SQLException {
346         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
347     }
348
349     public void setBytes(String JavaDoc str,byte[] b) throws SQLException {
350         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
351     }
352
353     public void setDate(String JavaDoc str,Date b) throws SQLException {
354         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
355     }
356
357     public void setTime(String JavaDoc str,Time b) throws SQLException {
358         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
359     }
360
361     public void setTimestamp(String JavaDoc str,Timestamp b) throws SQLException {
362         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
363     }
364     
365    public void setAsciiStream(String JavaDoc str,InputStream JavaDoc b, int x) throws SQLException {
366         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
367     }
368
369   public void setBinaryStream(String JavaDoc str,InputStream JavaDoc b, int x) throws SQLException {
370         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
371     }
372     
373   public void setObject(String JavaDoc str,Object JavaDoc b, int x, int y) throws SQLException {
374         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
375     }
376
377   public void setObject(String JavaDoc str,Object JavaDoc b, int x) throws SQLException {
378         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
379     }
380
381   public void setObject(String JavaDoc str,Object JavaDoc b) throws SQLException {
382         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
383     }
384     
385   public void setCharacterStream(String JavaDoc str,Reader JavaDoc b, int x) throws SQLException {
386         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
387     }
388
389   public void setDate(String JavaDoc str,Date b, Calendar JavaDoc cal) throws SQLException {
390         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
391     }
392
393   public void setTime(String JavaDoc str,Time b, Calendar JavaDoc cal) throws SQLException {
394         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
395     }
396     
397   public void setTimestamp(String JavaDoc str,Timestamp b, Calendar JavaDoc cal) throws SQLException {
398         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
399     }
400
401   public void setNull(String JavaDoc str,int b, String JavaDoc str2) throws SQLException {
402         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
403     }
404
405   public String JavaDoc getString(String JavaDoc str) throws SQLException {
406         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
407     }
408     
409   public boolean getBoolean(String JavaDoc str) throws SQLException {
410         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
411     }
412     
413   public byte getByte(String JavaDoc str) throws SQLException {
414         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
415     }
416     
417   public short getShort(String JavaDoc str) throws SQLException {
418         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
419     }
420
421   public int getInt(String JavaDoc str) throws SQLException {
422         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
423     }
424     
425   public long getLong(String JavaDoc str) throws SQLException {
426         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
427     }
428     
429   public float getFloat(String JavaDoc str) throws SQLException {
430         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
431     }
432   
433   public double getDouble(String JavaDoc str) throws SQLException {
434         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
435     }
436
437   public byte[] getBytes(String JavaDoc str) throws SQLException {
438         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
439     }
440     
441   public Date getDate(String JavaDoc str) throws SQLException {
442         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
443     }
444     
445   public Time getTime(String JavaDoc str) throws SQLException {
446         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
447     }
448     
449   public Timestamp getTimestamp(String JavaDoc str) throws SQLException {
450         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
451     }
452     
453     public Object JavaDoc getObject(String JavaDoc str) throws SQLException {
454         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
455     }
456     
457     public BigDecimal JavaDoc getBigDecimal(String JavaDoc str) throws SQLException {
458         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
459     }
460     
461     public Object JavaDoc getObject(String JavaDoc str, Map JavaDoc m) throws SQLException {
462         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
463     }
464
465     public Ref getRef(String JavaDoc str) throws SQLException {
466         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
467     }
468   
469   
470     public Blob getBlob(String JavaDoc str) throws SQLException {
471         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
472     }
473
474    public Clob getClob(String JavaDoc str) throws SQLException {
475         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
476     }
477     
478    public Array getArray(String JavaDoc str) throws SQLException {
479         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
480     }
481  
482  
483    public Date getDate(String JavaDoc str, Calendar JavaDoc c) throws SQLException {
484         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
485     }
486
487   public Time getTime(String JavaDoc str, Calendar JavaDoc m) throws SQLException {
488         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
489     }
490
491     public Timestamp getTimestamp(String JavaDoc str, Calendar JavaDoc m) throws SQLException {
492         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
493     }
494     
495    public URL JavaDoc getURL(String JavaDoc str) throws SQLException {
496         throw new UnsupportedOperationException JavaDoc("Statement.setByte(int) setNull");
497     }
498
499
500
501   
502   
503  
504
505 }
506
Popular Tags