KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > genimen > djeneric > jdbc > DjResultSet


1 /*
2  * Copyright (c) 2001-2005 by Genimen BV (www.genimen.com) All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, is permitted provided that the following conditions are met: -
6  * Redistributions of source code must retain the above copyright notice, this
7  * list of conditions and the following disclaimer. - Redistributions in binary
8  * form must reproduce the above copyright notice, this list of conditions and
9  * the following disclaimer in the documentation and/or other materials
10  * provided with the distribution. - All advertising materials mentioning
11  * features or use of this software must display the following acknowledgment:
12  * "This product includes Djeneric." - Products derived from this software may
13  * not be called "Djeneric" nor may "Djeneric" appear in their names without
14  * prior written permission of Genimen BV. - Redistributions of any form
15  * whatsoever must retain the following acknowledgment: "This product includes
16  * Djeneric."
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS"
19  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21  * ARE DISCLAIMED. IN NO EVENT SHALL GENIMEN BV, DJENERIC.ORG, OR CONTRIBUTORS
22  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28  * POSSIBILITY OF SUCH DAMAGE.
29  */

30
31 package com.genimen.djeneric.jdbc;
32
33 import java.io.InputStream JavaDoc;
34 import java.io.Reader JavaDoc;
35 import java.math.BigDecimal JavaDoc;
36 import java.net.URL JavaDoc;
37 import java.sql.Array JavaDoc;
38 import java.sql.Blob JavaDoc;
39 import java.sql.Clob JavaDoc;
40 import java.sql.Date JavaDoc;
41 import java.sql.Ref JavaDoc;
42 import java.sql.ResultSet JavaDoc;
43 import java.sql.ResultSetMetaData JavaDoc;
44 import java.sql.SQLException JavaDoc;
45 import java.sql.SQLWarning JavaDoc;
46 import java.sql.Statement JavaDoc;
47 import java.sql.Time JavaDoc;
48 import java.sql.Timestamp JavaDoc;
49 import java.util.ArrayList JavaDoc;
50 import java.util.Calendar JavaDoc;
51 import java.util.HashMap JavaDoc;
52 import java.util.Iterator JavaDoc;
53 import java.util.List JavaDoc;
54 import java.util.Map JavaDoc;
55
56 import com.genimen.djeneric.repository.DjDomain;
57 import com.genimen.djeneric.repository.DjProperty;
58 import com.genimen.djeneric.repository.DjPropertyType;
59 import com.genimen.djeneric.repository.exceptions.DjenericException;
60
61 /**
62  * Title: DjResultSet.java
63  *
64  * @author Gert Rijs
65  * @version 1.0
66  */

67
68 public class DjResultSet implements ResultSet JavaDoc
69 {
70   private static final String JavaDoc DATATYPE_NOT_SUPPORTED = "This datatype is not supported by djeneric";
71   private static final String JavaDoc METHOD_NOT_IMPLEMENTED = "This method is not implemented by djeneric";
72   private static final String JavaDoc NOT_POSITIONED = "The resultset in not positioned on a row";
73   private static final String JavaDoc NO_COLUMN_POS = "There is no current column";
74
75   /* package */
76   Map JavaDoc _columns = new HashMap JavaDoc();
77   private List JavaDoc _allRows = new ArrayList JavaDoc();
78   private int _position = -1;
79   private Object JavaDoc _lastColumn = null; // to support the wasNull call
80

81   public String JavaDoc toString()
82   {
83     StringBuffer JavaDoc result = new StringBuffer JavaDoc(1024);
84     result.append("DjResultSet, containing ");
85     result.append(_allRows.size());
86     result.append(" rows\n");
87
88     result.append("Columns: ");
89     for (int colno = 1; colno <= _columns.size(); colno++)
90     {
91       result.append(getColumnDefinition(colno));
92       if (colno == _columns.size()) result.append("\n");
93       else result.append(", ");
94     }
95     int mx = _allRows.size() > 10 ? 10 : _allRows.size();
96     if (mx < _allRows.size()) result.append("First 10 rows:\n");
97     else result.append("Rows:\n");
98
99     for (int i = 0; i < mx; i++)
100     {
101       result.append(i);
102       result.append(": ");
103       result.append(_allRows.get(i));
104       result.append("\n");
105     }
106     return result.toString();
107   }
108
109   DjResultSet()
110   {
111   }
112
113   DjProperty[] defineAllColumnsFromResultSet(ResultSet JavaDoc p_original) throws SQLException JavaDoc, DjenericException
114   {
115     ResultSetMetaData JavaDoc meta = p_original.getMetaData();
116     DjProperty[] retval = new DjProperty[meta.getColumnCount()];
117     DjPropertyType STRING = new DjDomain("String", DjDomain.STRING_TYPE, 10, 0, "", "", false);
118     DjPropertyType BIGDEC = new DjDomain("BigDecimal", DjDomain.BIGDECIMAL_TYPE, 10, 0, "", "", false);
119     DjPropertyType DATETP = new DjDomain("Date", DjDomain.DATE_TYPE, 10, 0, "", "", false);
120     DjPropertyType INTTP = new DjDomain("Integer", DjDomain.INT_TYPE, 10, 0, "", "", false);
121
122     for (int i = 1; i <= meta.getColumnCount(); i++)
123     {
124       DjPropertyType tpe = null;
125       switch (meta.getColumnType(i))
126       {
127         case java.sql.Types.INTEGER :
128         case java.sql.Types.SMALLINT :
129         case java.sql.Types.TINYINT :
130           tpe = INTTP;
131           break;
132         case java.sql.Types.BIGINT :
133         case java.sql.Types.DECIMAL :
134         case java.sql.Types.DOUBLE :
135         case java.sql.Types.FLOAT :
136         case java.sql.Types.NUMERIC :
137         case java.sql.Types.REAL :
138           tpe = BIGDEC;
139           break;
140         case java.sql.Types.DATE :
141           tpe = DATETP;
142           break;
143         default :
144           tpe = STRING;
145           break;
146       }
147
148       DjProperty prop = new DjProperty(meta.getColumnLabel(i), "" // mapping
149
, "" // alias
150
, meta.getColumnLabel(i), tpe, false, i, "", "");
151       retval[i - 1] = prop;
152       defineColumn(prop);
153     }
154     return retval;
155   }
156
157   static DjResultSet createFromResultSet(ResultSet JavaDoc p_original) throws SQLException JavaDoc, DjenericException
158   {
159     DjResultSet ret = new DjResultSet();
160     DjProperty[] props = ret.defineAllColumnsFromResultSet(p_original);
161
162     int numColumns = ret._columns.size();
163     while (p_original.next())
164     {
165       Object JavaDoc theRow = ret.newRow();
166       for (int col = 1; col <= numColumns; col++)
167       {
168         Object JavaDoc value = p_original.getObject(col);
169
170         ret.addColumn(theRow, props[col - 1], value);
171       }
172
173     }
174     p_original.close();
175     return ret;
176   }
177
178   /* package */
179   DjProperty getColumnDefinition(int colno)
180   {
181     DjAssert.precondition(colno > 0); // 1-based
182
DjAssert.precondition(colno <= _columns.size()); // 1-based
183
DjProperty ret = null;
184     Iterator JavaDoc it = _columns.values().iterator();
185     while (it.hasNext())
186     {
187       ret = (DjProperty) it.next();
188       if (ret.getSeq() == colno) return ret;
189     }
190     return null;
191   }
192
193   /* package */
194   void defineColumn(DjProperty p_col) throws SQLException JavaDoc
195   {
196     DjAssert.precondition(p_col != null);
197     if (_columns.containsKey(p_col.getName())) throw new SQLException JavaDoc("Attempted to define duplicate column: "
198                                                                       + p_col.getName());
199     _columns.put(p_col.getName(), p_col);
200   }
201
202   void addColumn(Object JavaDoc p_row, DjProperty p_col, Object JavaDoc value)
203   {
204     DjAssert.precondition(p_row != null);
205     DjAssert.precondition(p_col != null);
206     DjAssert.precondition(_columns.containsKey(p_col.getName()));
207     int ix = p_col.getSeq() - 1;
208     List JavaDoc row = (List JavaDoc) p_row;
209     Object JavaDoc original = row.set(ix, value);
210     DjAssert.check(null == original, "DjProperty was replaced");
211   }
212
213   Object JavaDoc newRow()
214   {
215     List JavaDoc rw = new ArrayList JavaDoc();
216     for (int i = 0; i < _columns.size(); i++)
217       rw.add(null);
218     _allRows.add(rw);
219     return rw;
220   }
221
222   public boolean next() throws SQLException JavaDoc
223   {
224     _position++;
225     return _position < _allRows.size();
226   }
227
228   public void close()
229   {
230     _allRows.clear();
231   }
232
233   protected void finalize()
234   {
235     try
236     {
237       super.finalize();
238       close();
239     }
240     catch (Throwable JavaDoc e)
241     {
242     }
243   }
244
245   /* package */
246   List JavaDoc getCurrentRow() throws SQLException JavaDoc
247   {
248     if (_position < 0 || _position >= _allRows.size()) throw new SQLException JavaDoc(NOT_POSITIONED);
249     return (List JavaDoc) _allRows.get(_position);
250   }
251
252   /* package */
253   List JavaDoc getRow(int rn) throws SQLException JavaDoc
254   {
255     return (List JavaDoc) _allRows.get(rn);
256   }
257
258   private Object JavaDoc getColValue(int index) throws SQLException JavaDoc
259   {
260     _lastColumn = null;
261     List JavaDoc l = getCurrentRow();
262     if (index < 1 || index > l.size()) throw new SQLException JavaDoc("No such column: " + index);
263     _lastColumn = l.get(index - 1);
264     return _lastColumn;
265   }
266
267   private Object JavaDoc getColValue(String JavaDoc colname) throws SQLException JavaDoc
268   {
269     DjProperty c = (DjProperty) _columns.get(colname);
270     if (c == null) throw new SQLException JavaDoc("No such column: " + colname);
271     return getColValue(c.getSeq());
272   }
273
274   public boolean wasNull() throws SQLException JavaDoc
275   {
276     return _lastColumn == null;
277   }
278
279   public String JavaDoc getString(int columnIndex) throws SQLException JavaDoc
280   {
281     return ColumnConversion.toString(getColValue(columnIndex));
282   }
283
284   public boolean getBoolean(int columnIndex) throws SQLException JavaDoc
285   {
286     return ColumnConversion.toBoolean(getColValue(columnIndex)).booleanValue();
287   }
288
289   public byte getByte(int columnIndex) throws SQLException JavaDoc
290   {
291     throw new SQLException JavaDoc(DATATYPE_NOT_SUPPORTED);
292   }
293
294   public short getShort(int columnIndex) throws SQLException JavaDoc
295   {
296     return ColumnConversion.toBigDecimal(getColValue(columnIndex)).shortValue();
297   }
298
299   public int getInt(int columnIndex) throws SQLException JavaDoc
300   {
301     return ColumnConversion.toBigDecimal(getColValue(columnIndex)).intValue();
302   }
303
304   public long getLong(int columnIndex) throws SQLException JavaDoc
305   {
306     return ColumnConversion.toBigDecimal(getColValue(columnIndex)).longValue();
307   }
308
309   public float getFloat(int columnIndex) throws SQLException JavaDoc
310   {
311     return ColumnConversion.toBigDecimal(getColValue(columnIndex)).floatValue();
312   }
313
314   public double getDouble(int columnIndex) throws SQLException JavaDoc
315   {
316     return ColumnConversion.toBigDecimal(getColValue(columnIndex)).doubleValue();
317   }
318
319   public BigDecimal JavaDoc getBigDecimal(int columnIndex, int scale) throws SQLException JavaDoc
320   {
321     return ColumnConversion.toBigDecimal(getColValue(columnIndex));
322   }
323
324   public byte[] getBytes(int columnIndex) throws SQLException JavaDoc
325   {
326     throw new SQLException JavaDoc(DATATYPE_NOT_SUPPORTED);
327   }
328
329   public Date JavaDoc getDate(int columnIndex) throws SQLException JavaDoc
330   {
331     return new java.sql.Date JavaDoc(ColumnConversion.toDate(getColValue(columnIndex)).getTime());
332   }
333
334   public Time JavaDoc getTime(int columnIndex) throws SQLException JavaDoc
335   {
336     return new Time JavaDoc(ColumnConversion.toDate(getColValue(columnIndex)).getTime());
337   }
338
339   public Timestamp JavaDoc getTimestamp(int columnIndex) throws SQLException JavaDoc
340   {
341     return new Timestamp JavaDoc(ColumnConversion.toDate(getColValue(columnIndex)).getTime());
342   }
343
344   public InputStream JavaDoc getAsciiStream(int columnIndex) throws SQLException JavaDoc
345   {
346     throw new SQLException JavaDoc(DATATYPE_NOT_SUPPORTED);
347   }
348
349   public InputStream JavaDoc getUnicodeStream(int columnIndex) throws SQLException JavaDoc
350   {
351     throw new SQLException JavaDoc(DATATYPE_NOT_SUPPORTED);
352   }
353
354   public InputStream JavaDoc getBinaryStream(int columnIndex) throws SQLException JavaDoc
355   {
356     throw new SQLException JavaDoc(DATATYPE_NOT_SUPPORTED);
357   }
358
359   public String JavaDoc getString(String JavaDoc columnName) throws SQLException JavaDoc
360   {
361     return getString(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
362   }
363
364   public boolean getBoolean(String JavaDoc columnName) throws SQLException JavaDoc
365   {
366     return getBoolean(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
367   }
368
369   public byte getByte(String JavaDoc columnName) throws SQLException JavaDoc
370   {
371     return getByte(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
372   }
373
374   public short getShort(String JavaDoc columnName) throws SQLException JavaDoc
375   {
376     return getShort(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
377   }
378
379   public int getInt(String JavaDoc columnName) throws SQLException JavaDoc
380   {
381     return getInt(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
382   }
383
384   public long getLong(String JavaDoc columnName) throws SQLException JavaDoc
385   {
386     return getLong(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
387   }
388
389   public float getFloat(String JavaDoc columnName) throws SQLException JavaDoc
390   {
391     return getFloat(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
392   }
393
394   public double getDouble(String JavaDoc columnName) throws SQLException JavaDoc
395   {
396     return getDouble(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
397   }
398
399   public BigDecimal JavaDoc getBigDecimal(String JavaDoc columnName, int scale) throws SQLException JavaDoc
400   {
401     return getBigDecimal(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
402   }
403
404   public byte[] getBytes(String JavaDoc columnName) throws SQLException JavaDoc
405   {
406     return getBytes(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
407   }
408
409   public Date JavaDoc getDate(String JavaDoc columnName) throws SQLException JavaDoc
410   {
411     return getDate(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
412   }
413
414   public Time JavaDoc getTime(String JavaDoc columnName) throws SQLException JavaDoc
415   {
416     return getTime(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
417   }
418
419   public Timestamp JavaDoc getTimestamp(String JavaDoc columnName) throws SQLException JavaDoc
420   {
421     return getTimestamp(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
422   }
423
424   public InputStream JavaDoc getAsciiStream(String JavaDoc columnName) throws SQLException JavaDoc
425   {
426     return getAsciiStream(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
427   }
428
429   public InputStream JavaDoc getUnicodeStream(String JavaDoc columnName) throws SQLException JavaDoc
430   {
431     return getUnicodeStream(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
432   }
433
434   public InputStream JavaDoc getBinaryStream(String JavaDoc columnName) throws SQLException JavaDoc
435   {
436     return getBinaryStream(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
437   }
438
439   public SQLWarning JavaDoc getWarnings() throws SQLException JavaDoc
440   {
441     return null;
442   }
443
444   public void clearWarnings() throws SQLException JavaDoc
445   {
446   }
447
448   public String JavaDoc getCursorName() throws SQLException JavaDoc
449   {
450     throw new SQLException JavaDoc("djrs.getCursorName: " + METHOD_NOT_IMPLEMENTED);
451   }
452
453   public ResultSetMetaData JavaDoc getMetaData() throws SQLException JavaDoc
454   {
455     return new DjResultSetMetaData(this);
456   }
457
458   public Object JavaDoc getObject(int columnIndex) throws SQLException JavaDoc
459   {
460     return getColValue(columnIndex);
461   }
462
463   public Object JavaDoc getObject(String JavaDoc columnName) throws SQLException JavaDoc
464   {
465     return getColValue(columnName);
466   }
467
468   public int findColumn(String JavaDoc columnName) throws SQLException JavaDoc
469   {
470     return ((DjProperty) _columns.get(columnName.toUpperCase())).getSeq();
471   }
472
473   public Reader JavaDoc getCharacterStream(int columnIndex) throws SQLException JavaDoc
474   {
475     throw new SQLException JavaDoc(DATATYPE_NOT_SUPPORTED);
476   }
477
478   public Reader JavaDoc getCharacterStream(String JavaDoc columnName) throws SQLException JavaDoc
479   {
480     throw new SQLException JavaDoc(DATATYPE_NOT_SUPPORTED);
481   }
482
483   public BigDecimal JavaDoc getBigDecimal(int columnIndex) throws SQLException JavaDoc
484   {
485     return ColumnConversion.toBigDecimal(getColValue(columnIndex));
486   }
487
488   public BigDecimal JavaDoc getBigDecimal(String JavaDoc columnName) throws SQLException JavaDoc
489   {
490     return getBigDecimal(((DjProperty) _columns.get(columnName.toUpperCase())).getSeq());
491   }
492
493   public boolean isBeforeFirst() throws SQLException JavaDoc
494   {
495     return _position == -1;
496   }
497
498   public boolean isAfterLast() throws SQLException JavaDoc
499   {
500     return _position >= _allRows.size();
501   }
502
503   public boolean isFirst() throws SQLException JavaDoc
504   {
505     return _position == 0;
506   }
507
508   public boolean isLast() throws SQLException JavaDoc
509   {
510     return _position == _allRows.size() - 1;
511   }
512
513   public void beforeFirst() throws SQLException JavaDoc
514   {
515     _position = -1;
516   }
517
518   public void afterLast() throws SQLException JavaDoc
519   {
520     _position = _allRows.size();
521   }
522
523   public boolean first() throws SQLException JavaDoc
524   {
525     _position = -1;
526     return next();
527   }
528
529   public boolean last() throws SQLException JavaDoc
530   {
531     _position = _allRows.size() - 2;
532     return next();
533   }
534
535   public int getRow() throws SQLException JavaDoc
536   {
537     return _allRows.size();
538   }
539
540   public boolean absolute(int row) throws SQLException JavaDoc
541   {
542     if (row < 0) throw new SQLException JavaDoc("djrs.absolute<0: " + METHOD_NOT_IMPLEMENTED);
543     _position = row - 2;
544     return next();
545   }
546
547   public boolean relative(int rows) throws SQLException JavaDoc
548   {
549     _position += rows;
550
551     if (rows > 0)
552     {
553       _position--;
554       return next();
555     }
556     else
557     {
558       _position++;
559       return previous();
560     }
561   }
562
563   public boolean previous() throws SQLException JavaDoc
564   {
565     _position -= 2;
566     return next();
567   }
568
569   public void setFetchDirection(int direction) throws SQLException JavaDoc
570   {
571     throw new SQLException JavaDoc("djrs.setFetchDirection: " + METHOD_NOT_IMPLEMENTED);
572   }
573
574   public int getFetchDirection() throws SQLException JavaDoc
575   {
576     throw new SQLException JavaDoc("djrs.getFetchDirection: " + METHOD_NOT_IMPLEMENTED);
577   }
578
579   public void setFetchSize(int rows) throws SQLException JavaDoc
580   {
581     throw new SQLException JavaDoc("djrs.setFetchSize: " + METHOD_NOT_IMPLEMENTED);
582   }
583
584   public int getFetchSize() throws SQLException JavaDoc
585   {
586     throw new SQLException JavaDoc("djrs.getFetchSize: " + METHOD_NOT_IMPLEMENTED);
587   }
588
589   public int getType() throws SQLException JavaDoc
590   {
591     throw new SQLException JavaDoc("djrs.getType: " + METHOD_NOT_IMPLEMENTED);
592   }
593
594   public int getConcurrency() throws SQLException JavaDoc
595   {
596     throw new SQLException JavaDoc("djrs.getConcurrency: " + METHOD_NOT_IMPLEMENTED);
597   }
598
599   public boolean rowUpdated() throws SQLException JavaDoc
600   {
601     throw new SQLException JavaDoc("djrs.rowUpdated: " + METHOD_NOT_IMPLEMENTED);
602   }
603
604   public boolean rowInserted() throws SQLException JavaDoc
605   {
606     throw new SQLException JavaDoc("djrs.rowInserted: " + METHOD_NOT_IMPLEMENTED);
607   }
608
609   public boolean rowDeleted() throws SQLException JavaDoc
610   {
611     throw new SQLException JavaDoc("djrs.rowDeleted: " + METHOD_NOT_IMPLEMENTED);
612   }
613
614   public void updateNull(int columnIndex) throws SQLException JavaDoc
615   {
616     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
617   }
618
619   public void updateBoolean(int columnIndex, boolean x) throws SQLException JavaDoc
620   {
621     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
622   }
623
624   public void updateByte(int columnIndex, byte x) throws SQLException JavaDoc
625   {
626     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
627   }
628
629   public void updateShort(int columnIndex, short x) throws SQLException JavaDoc
630   {
631     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
632   }
633
634   public void updateInt(int columnIndex, int x) throws SQLException JavaDoc
635   {
636     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
637   }
638
639   public void updateLong(int columnIndex, long x) throws SQLException JavaDoc
640   {
641     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
642   }
643
644   public void updateFloat(int columnIndex, float x) throws SQLException JavaDoc
645   {
646     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
647   }
648
649   public void updateDouble(int columnIndex, double x) throws SQLException JavaDoc
650   {
651     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
652   }
653
654   public void updateBigDecimal(int columnIndex, BigDecimal JavaDoc x) throws SQLException JavaDoc
655   {
656     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
657   }
658
659   public void updateString(int columnIndex, String JavaDoc x) throws SQLException JavaDoc
660   {
661     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
662   }
663
664   public void updateBytes(int columnIndex, byte[] x) throws SQLException JavaDoc
665   {
666     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
667   }
668
669   public void updateDate(int columnIndex, Date JavaDoc x) throws SQLException JavaDoc
670   {
671     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
672   }
673
674   public void updateTime(int columnIndex, Time JavaDoc x) throws SQLException JavaDoc
675   {
676     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
677   }
678
679   public void updateTimestamp(int columnIndex, Timestamp JavaDoc x) throws SQLException JavaDoc
680   {
681     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
682   }
683
684   public void updateAsciiStream(int columnIndex, InputStream JavaDoc x, int length) throws SQLException JavaDoc
685   {
686     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
687   }
688
689   public void updateBinaryStream(int columnIndex, InputStream JavaDoc x, int length) throws SQLException JavaDoc
690   {
691     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
692   }
693
694   public void updateCharacterStream(int columnIndex, Reader JavaDoc x, int length) throws SQLException JavaDoc
695   {
696     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
697   }
698
699   public void updateObject(int columnIndex, Object JavaDoc x, int scale) throws SQLException JavaDoc
700   {
701     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
702   }
703
704   public void updateObject(int columnIndex, Object JavaDoc x) throws SQLException JavaDoc
705   {
706     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
707   }
708
709   public void updateNull(String JavaDoc columnName) throws SQLException JavaDoc
710   {
711     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
712   }
713
714   public void updateBoolean(String JavaDoc columnName, boolean x) throws SQLException JavaDoc
715   {
716     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
717   }
718
719   public void updateByte(String JavaDoc columnName, byte x) throws SQLException JavaDoc
720   {
721     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
722   }
723
724   public void updateShort(String JavaDoc columnName, short x) throws SQLException JavaDoc
725   {
726     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
727   }
728
729   public void updateInt(String JavaDoc columnName, int x) throws SQLException JavaDoc
730   {
731     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
732   }
733
734   public void updateLong(String JavaDoc columnName, long x) throws SQLException JavaDoc
735   {
736     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
737   }
738
739   public void updateFloat(String JavaDoc columnName, float x) throws SQLException JavaDoc
740   {
741     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
742   }
743
744   public void updateDouble(String JavaDoc columnName, double x) throws SQLException JavaDoc
745   {
746     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
747   }
748
749   public void updateBigDecimal(String JavaDoc columnName, BigDecimal JavaDoc x) throws SQLException JavaDoc
750   {
751     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
752   }
753
754   public void updateString(String JavaDoc columnName, String JavaDoc x) throws SQLException JavaDoc
755   {
756     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
757   }
758
759   public void updateBytes(String JavaDoc columnName, byte[] x) throws SQLException JavaDoc
760   {
761     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
762   }
763
764   public void updateDate(String JavaDoc columnName, Date JavaDoc x) throws SQLException JavaDoc
765   {
766     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
767   }
768
769   public void updateTime(String JavaDoc columnName, Time JavaDoc x) throws SQLException JavaDoc
770   {
771     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
772   }
773
774   public void updateTimestamp(String JavaDoc columnName, Timestamp JavaDoc x) throws SQLException JavaDoc
775   {
776     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
777   }
778
779   public void updateAsciiStream(String JavaDoc columnName, InputStream JavaDoc x, int length) throws SQLException JavaDoc
780   {
781     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
782   }
783
784   public void updateBinaryStream(String JavaDoc columnName, InputStream JavaDoc x, int length) throws SQLException JavaDoc
785   {
786     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
787   }
788
789   public void updateCharacterStream(String JavaDoc columnName, Reader JavaDoc reader, int length) throws SQLException JavaDoc
790   {
791     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
792   }
793
794   public void updateObject(String JavaDoc columnName, Object JavaDoc x, int scale) throws SQLException JavaDoc
795   {
796     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
797   }
798
799   public void updateObject(String JavaDoc columnName, Object JavaDoc x) throws SQLException JavaDoc
800   {
801     throw new SQLException JavaDoc("djrs.updatexxx: " + METHOD_NOT_IMPLEMENTED);
802   }
803
804   public void insertRow() throws SQLException JavaDoc
805   {
806     throw new SQLException JavaDoc("djrs.insertRow: " + METHOD_NOT_IMPLEMENTED);
807   }
808
809   public void updateRow() throws SQLException JavaDoc
810   {
811     throw new SQLException JavaDoc("djrs.updateRow: " + METHOD_NOT_IMPLEMENTED);
812   }
813
814   public void deleteRow() throws SQLException JavaDoc
815   {
816     throw new SQLException JavaDoc("djrs.deleteRow: " + METHOD_NOT_IMPLEMENTED);
817   }
818
819   public void refreshRow() throws SQLException JavaDoc
820   {
821     throw new SQLException JavaDoc("djrs.refreshRow: " + METHOD_NOT_IMPLEMENTED);
822   }
823
824   public void cancelRowUpdates() throws SQLException JavaDoc
825   {
826     throw new SQLException JavaDoc("djrs.cancelRowUpdates: " + METHOD_NOT_IMPLEMENTED);
827   }
828
829   public void moveToInsertRow() throws SQLException JavaDoc
830   {
831     throw new SQLException JavaDoc("djrs.moveToInsertRow: " + METHOD_NOT_IMPLEMENTED);
832   }
833
834   public void moveToCurrentRow() throws SQLException JavaDoc
835   {
836     throw new SQLException JavaDoc("djrs.moveToCurrentRow: " + METHOD_NOT_IMPLEMENTED);
837   }
838
839   public Statement JavaDoc getStatement() throws SQLException JavaDoc
840   {
841     /** @todo: nog implementeren?? */
842     throw new SQLException JavaDoc("djrs.getStatement: " + METHOD_NOT_IMPLEMENTED);
843   }
844
845   public Object JavaDoc getObject(int i, Map JavaDoc map) throws SQLException JavaDoc
846   {
847     throw new SQLException JavaDoc("djrs.getObject: " + METHOD_NOT_IMPLEMENTED);
848   }
849
850   public Ref JavaDoc getRef(int i) throws SQLException JavaDoc
851   {
852     throw new SQLException JavaDoc("djrs.getRef: " + METHOD_NOT_IMPLEMENTED);
853   }
854
855   public Blob JavaDoc getBlob(int i) throws SQLException JavaDoc
856   {
857     throw new SQLException JavaDoc("djrs.getBlob: " + METHOD_NOT_IMPLEMENTED);
858   }
859
860   public Clob JavaDoc getClob(int i) throws SQLException JavaDoc
861   {
862     throw new SQLException JavaDoc("djrs.getClob: " + METHOD_NOT_IMPLEMENTED);
863   }
864
865   public Array JavaDoc getArray(int i) throws SQLException JavaDoc
866   {
867     throw new SQLException JavaDoc("djrs.getArray: " + METHOD_NOT_IMPLEMENTED);
868   }
869
870   public Object JavaDoc getObject(String JavaDoc colName, Map JavaDoc map) throws SQLException JavaDoc
871   {
872     throw new SQLException JavaDoc("djrs.getObject: " + METHOD_NOT_IMPLEMENTED);
873   }
874
875   public Ref JavaDoc getRef(String JavaDoc colName) throws SQLException JavaDoc
876   {
877     throw new SQLException JavaDoc("djrs.getRef: " + METHOD_NOT_IMPLEMENTED);
878   }
879
880   public Blob JavaDoc getBlob(String JavaDoc colName) throws SQLException JavaDoc
881   {
882     throw new SQLException JavaDoc("djrs.getBlob: " + METHOD_NOT_IMPLEMENTED);
883   }
884
885   public Clob JavaDoc getClob(String JavaDoc colName) throws SQLException JavaDoc
886   {
887     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
888   }
889
890   public Array JavaDoc getArray(String JavaDoc colName) throws SQLException JavaDoc
891   {
892     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
893   }
894
895   public Date JavaDoc getDate(int columnIndex, Calendar JavaDoc cal) throws SQLException JavaDoc
896   {
897     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
898   }
899
900   public Date JavaDoc getDate(String JavaDoc columnName, Calendar JavaDoc cal) throws SQLException JavaDoc
901   {
902     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
903   }
904
905   public Time JavaDoc getTime(int columnIndex, Calendar JavaDoc cal) throws SQLException JavaDoc
906   {
907     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
908   }
909
910   public Time JavaDoc getTime(String JavaDoc columnName, Calendar JavaDoc cal) throws SQLException JavaDoc
911   {
912     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
913   }
914
915   public Timestamp JavaDoc getTimestamp(int columnIndex, Calendar JavaDoc cal) throws SQLException JavaDoc
916   {
917     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
918   }
919
920   public Timestamp JavaDoc getTimestamp(String JavaDoc columnName, Calendar JavaDoc cal) throws SQLException JavaDoc
921   {
922     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
923   }
924
925   /*
926    * (non-Javadoc)
927    *
928    * @see java.sql.ResultSet#getURL(int)
929    */

930   public URL JavaDoc getURL(int arg0) throws SQLException JavaDoc
931   {
932     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
933   }
934
935   /*
936    * (non-Javadoc)
937    *
938    * @see java.sql.ResultSet#getURL(java.lang.String)
939    */

940   public URL JavaDoc getURL(String JavaDoc arg0) throws SQLException JavaDoc
941   {
942     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
943   }
944
945   /*
946    * (non-Javadoc)
947    *
948    * @see java.sql.ResultSet#updateArray(int, java.sql.Array)
949    */

950   public void updateArray(int arg0, Array JavaDoc arg1) throws SQLException JavaDoc
951   {
952     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
953   }
954
955   /*
956    * (non-Javadoc)
957    *
958    * @see java.sql.ResultSet#updateArray(java.lang.String, java.sql.Array)
959    */

960   public void updateArray(String JavaDoc arg0, Array JavaDoc arg1) throws SQLException JavaDoc
961   {
962     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
963   }
964
965   /*
966    * (non-Javadoc)
967    *
968    * @see java.sql.ResultSet#updateBlob(int, java.sql.Blob)
969    */

970   public void updateBlob(int arg0, Blob JavaDoc arg1) throws SQLException JavaDoc
971   {
972     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
973   }
974
975   /*
976    * (non-Javadoc)
977    *
978    * @see java.sql.ResultSet#updateBlob(java.lang.String, java.sql.Blob)
979    */

980   public void updateBlob(String JavaDoc arg0, Blob JavaDoc arg1) throws SQLException JavaDoc
981   {
982     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
983   }
984
985   /*
986    * (non-Javadoc)
987    *
988    * @see java.sql.ResultSet#updateClob(int, java.sql.Clob)
989    */

990   public void updateClob(int arg0, Clob JavaDoc arg1) throws SQLException JavaDoc
991   {
992     throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
993   }
994
995   /*
996    * (non-Javadoc)
997    *
998    * @see java.sql.ResultSet#updateClob(java.lang.String, java.sql.Clob)
999    */

1000  public void updateClob(String JavaDoc arg0, Clob JavaDoc arg1) throws SQLException JavaDoc
1001  {
1002    throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
1003  }
1004
1005  /*
1006   * (non-Javadoc)
1007   *
1008   * @see java.sql.ResultSet#updateRef(int, java.sql.Ref)
1009   */

1010  public void updateRef(int arg0, Ref JavaDoc arg1) throws SQLException JavaDoc
1011  {
1012    throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
1013  }
1014
1015  /*
1016   * (non-Javadoc)
1017   *
1018   * @see java.sql.ResultSet#updateRef(java.lang.String, java.sql.Ref)
1019   */

1020  public void updateRef(String JavaDoc arg0, Ref JavaDoc arg1) throws SQLException JavaDoc
1021  {
1022    throw new SQLException JavaDoc(METHOD_NOT_IMPLEMENTED);
1023  }
1024
1025}
Popular Tags