1 | package org.sqlorm.metadatadumper; |
2 | |
3 | import java.io.InputStream; |
4 | import java.io.Reader; |
5 | import java.math.BigDecimal; |
6 | import java.net.URL; |
7 | import java.sql.Array; |
8 | import java.sql.Blob; |
9 | import java.sql.Clob; |
10 | import java.sql.Date; |
11 | import java.sql.Ref; |
12 | import java.sql.ResultSet; |
13 | import java.sql.ResultSetMetaData; |
14 | import java.sql.SQLException; |
15 | import java.sql.SQLWarning; |
16 | import java.sql.Statement; |
17 | import java.sql.Time; |
18 | import java.sql.Timestamp; |
19 | import java.util.Calendar; |
20 | import java.util.Map; |
21 | |
22 | /** |
23 | * Helper class to make interactions with <code>java.sql.ResultSet</code> more natural when using the |
24 | * <code>package org.sqlorm.metadatadumper.ConstantsDump</code>. |
25 | * <p> |
26 | * All calls are simply redirected to the original ResultSet and {@link IColumnName} are simply translated to Strings. |
27 | * |
28 | * @author Kasper B. Graversen, (c) 2007-2008 |
29 | */ |
30 | public class ResultSetForMetaData { |
31 | private final ResultSet rs; |
32 | |
33 | public ResultSetForMetaData(ResultSet rs) { |
34 | this.rs = rs; |
35 | } |
36 | |
37 | /** |
38 | * @see java.sql.ResultSet#absolute(int) |
39 | */ |
40 | public boolean absolute(int row) throws SQLException { |
41 | return rs.absolute(row); |
42 | } |
43 | |
44 | /** |
45 | * @see java.sql.ResultSet#afterLast() |
46 | */ |
47 | public void afterLast() throws SQLException { |
48 | rs.afterLast(); |
49 | } |
50 | |
51 | /** |
52 | * @see java.sql.ResultSet#beforeFirst() |
53 | */ |
54 | public void beforeFirst() throws SQLException { |
55 | rs.beforeFirst(); |
56 | } |
57 | |
58 | /** |
59 | * @see java.sql.ResultSet#cancelRowUpdates() |
60 | */ |
61 | public void cancelRowUpdates() throws SQLException { |
62 | rs.cancelRowUpdates(); |
63 | } |
64 | |
65 | /** |
66 | * @see java.sql.ResultSet#clearWarnings() |
67 | */ |
68 | public void clearWarnings() throws SQLException { |
69 | rs.clearWarnings(); |
70 | } |
71 | |
72 | /** |
73 | * @see java.sql.ResultSet#close() |
74 | */ |
75 | public void close() throws SQLException { |
76 | rs.close(); |
77 | } |
78 | |
79 | /** |
80 | * @see java.sql.ResultSet#deleteRow() |
81 | */ |
82 | public void deleteRow() throws SQLException { |
83 | rs.deleteRow(); |
84 | } |
85 | |
86 | /** |
87 | * @see java.sql.ResultSet#findColumn(java.lang.String) |
88 | */ |
89 | public int findColumn(String columnName) throws SQLException { |
90 | return rs.findColumn(columnName); |
91 | } |
92 | |
93 | /** |
94 | * @see java.sql.ResultSet#first() |
95 | */ |
96 | public boolean first() throws SQLException { |
97 | return rs.first(); |
98 | } |
99 | |
100 | /** |
101 | * @param i |
102 | * @see java.sql.ResultSet#getArray(int) |
103 | */ |
104 | public Array getArray(int i) throws SQLException { |
105 | return rs.getArray(i); |
106 | } |
107 | |
108 | /** |
109 | * @param colName |
110 | * @see java.sql.ResultSet#getArray(java.lang.String) |
111 | */ |
112 | public Array getArray(String colName) throws SQLException { |
113 | return rs.getArray(colName); |
114 | } |
115 | |
116 | /** |
117 | * @see java.sql.ResultSet#getAsciiStream(int) |
118 | */ |
119 | public InputStream getAsciiStream(int columnIndex) throws SQLException { |
120 | return rs.getAsciiStream(columnIndex); |
121 | } |
122 | |
123 | /** |
124 | * @see java.sql.ResultSet#getAsciiStream(java.lang.String) |
125 | */ |
126 | public InputStream getAsciiStream(String columnName) throws SQLException { |
127 | return rs.getAsciiStream(columnName); |
128 | } |
129 | |
130 | /** |
131 | * @see java.sql.ResultSet#getAsciiStream(java.lang.String) |
132 | */ |
133 | public InputStream getAsciiStream(IColumnName columnName) throws SQLException { |
134 | return rs.getAsciiStream(columnName._()); |
135 | } |
136 | |
137 | /** |
138 | * @see java.sql.ResultSet#getBigDecimal(int) |
139 | */ |
140 | public BigDecimal getBigDecimal(int columnIndex) throws SQLException { |
141 | return rs.getBigDecimal(columnIndex); |
142 | } |
143 | |
144 | /** |
145 | * @see java.sql.ResultSet#getBigDecimal(java.lang.String) |
146 | */ |
147 | public BigDecimal getBigDecimal(String columnName) throws SQLException { |
148 | return rs.getBigDecimal(columnName); |
149 | } |
150 | |
151 | public BigDecimal getBigDecimal(IColumnName name) throws SQLException { |
152 | return rs.getBigDecimal(name._()); |
153 | } |
154 | |
155 | /** |
156 | * @see java.sql.ResultSet#getBinaryStream(int) |
157 | */ |
158 | public InputStream getBinaryStream(int columnIndex) throws SQLException { |
159 | return rs.getBinaryStream(columnIndex); |
160 | } |
161 | |
162 | /** |
163 | * @see java.sql.ResultSet#getBinaryStream(java.lang.String) |
164 | */ |
165 | public InputStream getBinaryStream(String columnName) throws SQLException { |
166 | return rs.getBinaryStream(columnName); |
167 | } |
168 | |
169 | public InputStream getBinaryStream(IColumnName columnName) throws SQLException { |
170 | return rs.getBinaryStream(columnName._()); |
171 | } |
172 | |
173 | /** |
174 | * @param i |
175 | * @see java.sql.ResultSet#getBlob(int) |
176 | */ |
177 | public Blob getBlob(int i) throws SQLException { |
178 | return rs.getBlob(i); |
179 | } |
180 | |
181 | /** |
182 | * @param colName |
183 | * @see java.sql.ResultSet#getBlob(java.lang.String) |
184 | */ |
185 | public Blob getBlob(String colName) throws SQLException { |
186 | return rs.getBlob(colName); |
187 | } |
188 | |
189 | public Blob getBlob(IColumnName colName) throws SQLException { |
190 | return rs.getBlob(colName._()); |
191 | } |
192 | |
193 | /** |
194 | * @see java.sql.ResultSet#getBoolean(int) |
195 | */ |
196 | public boolean getBoolean(int columnIndex) throws SQLException { |
197 | return rs.getBoolean(columnIndex); |
198 | } |
199 | |
200 | /** |
201 | * @see java.sql.ResultSet#getBoolean(java.lang.String) |
202 | */ |
203 | public boolean getBoolean(String columnName) throws SQLException { |
204 | return rs.getBoolean(columnName); |
205 | } |
206 | |
207 | public boolean getBoolean(IColumnName columnName) throws SQLException { |
208 | return rs.getBoolean(columnName._()); |
209 | } |
210 | |
211 | /** |
212 | * @see java.sql.ResultSet#getByte(int) |
213 | */ |
214 | public byte getByte(int columnIndex) throws SQLException { |
215 | return rs.getByte(columnIndex); |
216 | } |
217 | |
218 | /** |
219 | * @see java.sql.ResultSet#getByte(java.lang.String) |
220 | */ |
221 | public byte getByte(String columnName) throws SQLException { |
222 | return rs.getByte(columnName); |
223 | } |
224 | |
225 | public byte getByte(IColumnName columnName) throws SQLException { |
226 | return rs.getByte(columnName._()); |
227 | } |
228 | |
229 | /** |
230 | * @see java.sql.ResultSet#getBytes(int) |
231 | */ |
232 | public byte[] getBytes(int columnIndex) throws SQLException { |
233 | return rs.getBytes(columnIndex); |
234 | } |
235 | |
236 | /** |
237 | * @see java.sql.ResultSet#getBytes(java.lang.String) |
238 | */ |
239 | public byte[] getBytes(String columnName) throws SQLException { |
240 | return rs.getBytes(columnName); |
241 | } |
242 | |
243 | public byte[] getBytes(IColumnName columnName) throws SQLException { |
244 | return rs.getBytes(columnName._()); |
245 | } |
246 | |
247 | /** |
248 | * @see java.sql.ResultSet#getCharacterStream(int) |
249 | */ |
250 | public Reader getCharacterStream(int columnIndex) throws SQLException { |
251 | return rs.getCharacterStream(columnIndex); |
252 | } |
253 | |
254 | /** |
255 | * @see java.sql.ResultSet#getCharacterStream(java.lang.String) |
256 | */ |
257 | public Reader getCharacterStream(String columnName) throws SQLException { |
258 | return rs.getCharacterStream(columnName); |
259 | } |
260 | |
261 | /** |
262 | * @see java.sql.ResultSet#getCharacterStream(java.lang.String) |
263 | */ |
264 | public Reader getCharacterStream(IColumnName columnName) throws SQLException { |
265 | return rs.getCharacterStream(columnName._()); |
266 | } |
267 | |
268 | public Clob getClob(int i) throws SQLException { |
269 | return rs.getClob(i); |
270 | } |
271 | |
272 | /** |
273 | * @param colName |
274 | * @see java.sql.ResultSet#getClob(java.lang.String) |
275 | */ |
276 | public Clob getClob(String colName) throws SQLException { |
277 | return rs.getClob(colName); |
278 | } |
279 | |
280 | /** |
281 | * @param colName |
282 | * @see java.sql.ResultSet#getClob(java.lang.String) |
283 | */ |
284 | public Clob getClob(IColumnName colName) throws SQLException { |
285 | return rs.getClob(colName._()); |
286 | } |
287 | |
288 | /** |
289 | * @see java.sql.ResultSet#getConcurrency() |
290 | */ |
291 | public int getConcurrency() throws SQLException { |
292 | return rs.getConcurrency(); |
293 | } |
294 | |
295 | /** |
296 | * @see java.sql.ResultSet#getCursorName() |
297 | */ |
298 | public String getCursorName() throws SQLException { |
299 | return rs.getCursorName(); |
300 | } |
301 | |
302 | /** |
303 | * @see java.sql.ResultSet#getDate(int, java.util.Calendar) |
304 | */ |
305 | public Date getDate(int columnIndex, Calendar cal) throws SQLException { |
306 | return rs.getDate(columnIndex, cal); |
307 | } |
308 | |
309 | /** |
310 | * @see java.sql.ResultSet#getDate(int) |
311 | */ |
312 | public Date getDate(int columnIndex) throws SQLException { |
313 | return rs.getDate(columnIndex); |
314 | } |
315 | |
316 | /** |
317 | * @see java.sql.ResultSet#getDate(java.lang.String, java.util.Calendar) |
318 | */ |
319 | public Date getDate(String columnName, Calendar cal) throws SQLException { |
320 | return rs.getDate(columnName, cal); |
321 | } |
322 | |
323 | /** |
324 | * @see java.sql.ResultSet#getDate(java.lang.String, java.util.Calendar) |
325 | */ |
326 | public Date getDate(IColumnName columnName, Calendar cal) throws SQLException { |
327 | return rs.getDate(columnName._(), cal); |
328 | } |
329 | |
330 | /** |
331 | * @see java.sql.ResultSet#getDate(java.lang.String) |
332 | */ |
333 | public Date getDate(String columnName) throws SQLException { |
334 | return rs.getDate(columnName); |
335 | } |
336 | |
337 | /** |
338 | * @see java.sql.ResultSet#getDate(java.lang.String) |
339 | */ |
340 | public Date getDate(IColumnName columnName) throws SQLException { |
341 | return rs.getDate(columnName._()); |
342 | } |
343 | |
344 | /** |
345 | * @see java.sql.ResultSet#getDouble(int) |
346 | */ |
347 | public double getDouble(int columnIndex) throws SQLException { |
348 | return rs.getDouble(columnIndex); |
349 | } |
350 | |
351 | /** |
352 | * @see java.sql.ResultSet#getDouble(java.lang.String) |
353 | */ |
354 | public double getDouble(String columnName) throws SQLException { |
355 | return rs.getDouble(columnName); |
356 | } |
357 | |
358 | /** |
359 | * @see java.sql.ResultSet#getDouble(java.lang.String) |
360 | */ |
361 | public double getDouble(IColumnName columnName) throws SQLException { |
362 | return rs.getDouble(columnName._()); |
363 | } |
364 | |
365 | /** |
366 | * @see java.sql.ResultSet#getFetchDirection() |
367 | */ |
368 | public int getFetchDirection() throws SQLException { |
369 | return rs.getFetchDirection(); |
370 | } |
371 | |
372 | /** |
373 | * @see java.sql.ResultSet#getFetchSize() |
374 | */ |
375 | public int getFetchSize() throws SQLException { |
376 | return rs.getFetchSize(); |
377 | } |
378 | |
379 | /** |
380 | * @see java.sql.ResultSet#getFloat(int) |
381 | */ |
382 | public float getFloat(int columnIndex) throws SQLException { |
383 | return rs.getFloat(columnIndex); |
384 | } |
385 | |
386 | /** |
387 | * @see java.sql.ResultSet#getFloat(java.lang.String) |
388 | */ |
389 | public float getFloat(String columnName) throws SQLException { |
390 | return rs.getFloat(columnName); |
391 | } |
392 | |
393 | /** |
394 | * @see java.sql.ResultSet#getFloat(java.lang.String) |
395 | */ |
396 | public float getFloat(IColumnName columnName) throws SQLException { |
397 | return rs.getFloat(columnName._()); |
398 | } |
399 | |
400 | /** |
401 | * @see java.sql.ResultSet#getInt(int) |
402 | */ |
403 | public int getInt(int columnIndex) throws SQLException { |
404 | return rs.getInt(columnIndex); |
405 | } |
406 | |
407 | /** |
408 | * @see java.sql.ResultSet#getInt(java.lang.String) |
409 | */ |
410 | public int getInt(String columnName) throws SQLException { |
411 | return rs.getInt(columnName); |
412 | } |
413 | |
414 | /** |
415 | * @see java.sql.ResultSet#getInt(java.lang.String) |
416 | */ |
417 | public int getInt(IColumnName columnName) throws SQLException { |
418 | return rs.getInt(columnName._()); |
419 | } |
420 | |
421 | /** |
422 | * @see java.sql.ResultSet#getLong(int) |
423 | */ |
424 | public long getLong(int columnIndex) throws SQLException { |
425 | return rs.getLong(columnIndex); |
426 | } |
427 | |
428 | /** |
429 | * @see java.sql.ResultSet#getLong(java.lang.String) |
430 | */ |
431 | public long getLong(String columnName) throws SQLException { |
432 | return rs.getLong(columnName); |
433 | } |
434 | |
435 | /** |
436 | * @see java.sql.ResultSet#getLong(java.lang.String) |
437 | */ |
438 | public long getLong(IColumnName columnName) throws SQLException { |
439 | return rs.getLong(columnName._()); |
440 | } |
441 | |
442 | /** |
443 | * @see java.sql.ResultSet#getMetaData() |
444 | */ |
445 | public ResultSetMetaData getMetaData() throws SQLException { |
446 | return rs.getMetaData(); |
447 | } |
448 | |
449 | /** |
450 | * @param i |
451 | * @param map |
452 | * @see java.sql.ResultSet#getObject(int, java.util.Map) |
453 | */ |
454 | public Object getObject(int i, Map<String, Class<?>> map) throws SQLException { |
455 | return rs.getObject(i, map); |
456 | } |
457 | |
458 | /** |
459 | * @see java.sql.ResultSet#getObject(int) |
460 | */ |
461 | public Object getObject(int columnIndex) throws SQLException { |
462 | return rs.getObject(columnIndex); |
463 | } |
464 | |
465 | /** |
466 | * @see java.sql.ResultSet#getObject(java.lang.String, java.util.Map) |
467 | */ |
468 | public Object getObject(String colName, Map<String, Class<?>> map) throws SQLException { |
469 | return rs.getObject(colName, map); |
470 | } |
471 | |
472 | /** |
473 | * @see java.sql.ResultSet#getObject(java.lang.String, java.util.Map) |
474 | */ |
475 | public Object getObject(IColumnName colName, Map<String, Class<?>> map) throws SQLException { |
476 | return rs.getObject(colName._(), map); |
477 | } |
478 | |
479 | /** |
480 | * @see java.sql.ResultSet#getObject(java.lang.String) |
481 | */ |
482 | public Object getObject(String columnName) throws SQLException { |
483 | return rs.getObject(columnName); |
484 | } |
485 | |
486 | /** |
487 | * @see java.sql.ResultSet#getObject(java.lang.String) |
488 | */ |
489 | public Object getObject(IColumnName columnName) throws SQLException { |
490 | return rs.getObject(columnName._()); |
491 | } |
492 | |
493 | /** |
494 | * @see java.sql.ResultSet#getRef(int) |
495 | */ |
496 | public Ref getRef(int i) throws SQLException { |
497 | return rs.getRef(i); |
498 | } |
499 | |
500 | /** |
501 | * @see java.sql.ResultSet#getRef(java.lang.String) |
502 | */ |
503 | public Ref getRef(String colName) throws SQLException { |
504 | return rs.getRef(colName); |
505 | } |
506 | |
507 | /** |
508 | * @see java.sql.ResultSet#getRef(java.lang.String) |
509 | */ |
510 | public Ref getRef(IColumnName colName) throws SQLException { |
511 | return rs.getRef(colName._()); |
512 | } |
513 | |
514 | /** |
515 | * @see java.sql.ResultSet#getRow() |
516 | */ |
517 | public int getRow() throws SQLException { |
518 | return rs.getRow(); |
519 | } |
520 | |
521 | /** |
522 | * @see java.sql.ResultSet#getShort(int) |
523 | */ |
524 | public short getShort(int columnIndex) throws SQLException { |
525 | return rs.getShort(columnIndex); |
526 | } |
527 | |
528 | /** |
529 | * @see java.sql.ResultSet#getShort(java.lang.String) |
530 | */ |
531 | public short getShort(String columnName) throws SQLException { |
532 | return rs.getShort(columnName); |
533 | } |
534 | |
535 | /** |
536 | * @see java.sql.ResultSet#getShort(java.lang.String) |
537 | */ |
538 | public short getShort(IColumnName columnName) throws SQLException { |
539 | return rs.getShort(columnName._()); |
540 | } |
541 | |
542 | /** |
543 | * @see java.sql.ResultSet#getStatement() |
544 | */ |
545 | public Statement getStatement() throws SQLException { |
546 | return rs.getStatement(); |
547 | } |
548 | |
549 | /** |
550 | * @see java.sql.ResultSet#getString(int) |
551 | */ |
552 | public String getString(int columnIndex) throws SQLException { |
553 | return rs.getString(columnIndex); |
554 | } |
555 | |
556 | /** |
557 | * @see java.sql.ResultSet#getString(java.lang.String) |
558 | */ |
559 | public String getString(String columnName) throws SQLException { |
560 | return rs.getString(columnName); |
561 | } |
562 | |
563 | /** |
564 | * @see java.sql.ResultSet#getString(java.lang.String) |
565 | */ |
566 | public String getString(IColumnName columnName) throws SQLException { |
567 | return rs.getString(columnName._()); |
568 | } |
569 | |
570 | /** |
571 | * @see java.sql.ResultSet#getTime(int, java.util.Calendar) |
572 | */ |
573 | public Time getTime(int columnIndex, Calendar cal) throws SQLException { |
574 | return rs.getTime(columnIndex, cal); |
575 | } |
576 | |
577 | /** |
578 | * @see java.sql.ResultSet#getTime(int) |
579 | */ |
580 | public Time getTime(int columnIndex) throws SQLException { |
581 | return rs.getTime(columnIndex); |
582 | } |
583 | |
584 | /** |
585 | * @see java.sql.ResultSet#getTime(java.lang.String, java.util.Calendar) |
586 | */ |
587 | public Time getTime(String columnName, Calendar cal) throws SQLException { |
588 | return rs.getTime(columnName, cal); |
589 | } |
590 | |
591 | /** |
592 | * @see java.sql.ResultSet#getTime(java.lang.String) |
593 | */ |
594 | public Time getTime(String columnName) throws SQLException { |
595 | return rs.getTime(columnName); |
596 | } |
597 | |
598 | /** |
599 | * @see java.sql.ResultSet#getTime(java.lang.String, java.util.Calendar) |
600 | */ |
601 | public Time getTime(IColumnName columnName, Calendar cal) throws SQLException { |
602 | return rs.getTime(columnName._(), cal); |
603 | } |
604 | |
605 | /** |
606 | * @see java.sql.ResultSet#getTime(java.lang.String) |
607 | */ |
608 | public Time getTime(IColumnName columnName) throws SQLException { |
609 | return rs.getTime(columnName._()); |
610 | } |
611 | |
612 | /** |
613 | * @see java.sql.ResultSet#getTimestamp(int, java.util.Calendar) |
614 | */ |
615 | public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException { |
616 | return rs.getTimestamp(columnIndex, cal); |
617 | } |
618 | |
619 | /** |
620 | * @see java.sql.ResultSet#getTimestamp(int) |
621 | */ |
622 | public Timestamp getTimestamp(int columnIndex) throws SQLException { |
623 | return rs.getTimestamp(columnIndex); |
624 | } |
625 | |
626 | /** |
627 | * @see java.sql.ResultSet#getTimestamp(java.lang.String, java.util.Calendar) |
628 | */ |
629 | public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException { |
630 | return rs.getTimestamp(columnName, cal); |
631 | } |
632 | |
633 | /** |
634 | * @see java.sql.ResultSet#getTimestamp(java.lang.String) |
635 | */ |
636 | public Timestamp getTimestamp(String columnName) throws SQLException { |
637 | return rs.getTimestamp(columnName); |
638 | } |
639 | |
640 | /** |
641 | * @see java.sql.ResultSet#getTimestamp(java.lang.String, java.util.Calendar) |
642 | */ |
643 | public Timestamp getTimestamp(IColumnName columnName, Calendar cal) throws SQLException { |
644 | return rs.getTimestamp(columnName._(), cal); |
645 | } |
646 | |
647 | /** |
648 | * @see java.sql.ResultSet#getTimestamp(java.lang.String) |
649 | */ |
650 | public Timestamp getTimestamp(IColumnName columnName) throws SQLException { |
651 | return rs.getTimestamp(columnName._()); |
652 | } |
653 | |
654 | /** |
655 | * @see java.sql.ResultSet#getType() |
656 | */ |
657 | public int getType() throws SQLException { |
658 | return rs.getType(); |
659 | } |
660 | |
661 | /** |
662 | * @see java.sql.ResultSet#getURL(int) |
663 | */ |
664 | public URL getURL(int columnIndex) throws SQLException { |
665 | return rs.getURL(columnIndex); |
666 | } |
667 | |
668 | /** |
669 | * @see java.sql.ResultSet#getURL(java.lang.String) |
670 | */ |
671 | public URL getURL(String columnName) throws SQLException { |
672 | return rs.getURL(columnName); |
673 | } |
674 | |
675 | /** |
676 | * @see java.sql.ResultSet#getURL(java.lang.String) |
677 | */ |
678 | public URL getURL(IColumnName columnName) throws SQLException { |
679 | return rs.getURL(columnName._()); |
680 | } |
681 | |
682 | /** |
683 | * @see java.sql.ResultSet#getWarnings() |
684 | */ |
685 | public SQLWarning getWarnings() throws SQLException { |
686 | return rs.getWarnings(); |
687 | } |
688 | |
689 | /** |
690 | * @see java.sql.ResultSet#insertRow() |
691 | */ |
692 | public void insertRow() throws SQLException { |
693 | rs.insertRow(); |
694 | } |
695 | |
696 | /** |
697 | * @see java.sql.ResultSet#isAfterLast() |
698 | */ |
699 | public boolean isAfterLast() throws SQLException { |
700 | return rs.isAfterLast(); |
701 | } |
702 | |
703 | /** |
704 | * @see java.sql.ResultSet#isBeforeFirst() |
705 | */ |
706 | public boolean isBeforeFirst() throws SQLException { |
707 | return rs.isBeforeFirst(); |
708 | } |
709 | |
710 | /** |
711 | * @see java.sql.ResultSet#isFirst() |
712 | */ |
713 | public boolean isFirst() throws SQLException { |
714 | return rs.isFirst(); |
715 | } |
716 | |
717 | /** |
718 | * @see java.sql.ResultSet#isLast() |
719 | */ |
720 | public boolean isLast() throws SQLException { |
721 | return rs.isLast(); |
722 | } |
723 | |
724 | /** |
725 | * @see java.sql.ResultSet#last() |
726 | */ |
727 | public boolean last() throws SQLException { |
728 | return rs.last(); |
729 | } |
730 | |
731 | /** |
732 | * @see java.sql.ResultSet#moveToCurrentRow() |
733 | */ |
734 | public void moveToCurrentRow() throws SQLException { |
735 | rs.moveToCurrentRow(); |
736 | } |
737 | |
738 | /** |
739 | * @see java.sql.ResultSet#moveToInsertRow() |
740 | */ |
741 | public void moveToInsertRow() throws SQLException { |
742 | rs.moveToInsertRow(); |
743 | } |
744 | |
745 | /** |
746 | * @see java.sql.ResultSet#next() |
747 | */ |
748 | public boolean next() throws SQLException { |
749 | return rs.next(); |
750 | } |
751 | |
752 | /** |
753 | * @see java.sql.ResultSet#previous() |
754 | */ |
755 | public boolean previous() throws SQLException { |
756 | return rs.previous(); |
757 | } |
758 | |
759 | /** |
760 | * @see java.sql.ResultSet#refreshRow() |
761 | */ |
762 | public void refreshRow() throws SQLException { |
763 | rs.refreshRow(); |
764 | } |
765 | |
766 | /** |
767 | * s |
768 | * |
769 | * @see java.sql.ResultSet#relative(int) |
770 | */ |
771 | public boolean relative(int rows) throws SQLException { |
772 | return rs.relative(rows); |
773 | } |
774 | |
775 | /** |
776 | * @see java.sql.ResultSet#rowDeleted() |
777 | */ |
778 | public boolean rowDeleted() throws SQLException { |
779 | return rs.rowDeleted(); |
780 | } |
781 | |
782 | /** |
783 | * @see java.sql.ResultSet#rowInserted() |
784 | */ |
785 | public boolean rowInserted() throws SQLException { |
786 | return rs.rowInserted(); |
787 | } |
788 | |
789 | /** |
790 | * @see java.sql.ResultSet#rowUpdated() |
791 | */ |
792 | public boolean rowUpdated() throws SQLException { |
793 | return rs.rowUpdated(); |
794 | } |
795 | |
796 | /** |
797 | * @param direction |
798 | * @see java.sql.ResultSet#setFetchDirection(int) |
799 | */ |
800 | public void setFetchDirection(int direction) throws SQLException { |
801 | rs.setFetchDirection(direction); |
802 | } |
803 | |
804 | /** |
805 | * @see java.sql.ResultSet#setFetchSize(int) |
806 | */ |
807 | public void setFetchSize(int rows) throws SQLException { |
808 | rs.setFetchSize(rows); |
809 | } |
810 | |
811 | /** |
812 | * @see java.sql.ResultSet#updateArray(int, java.sql.Array) |
813 | */ |
814 | public void updateArray(int columnIndex, Array x) throws SQLException { |
815 | rs.updateArray(columnIndex, x); |
816 | } |
817 | |
818 | /** |
819 | * @see java.sql.ResultSet#updateArray(java.lang.String, java.sql.Array) |
820 | */ |
821 | public void updateArray(String columnName, Array x) throws SQLException { |
822 | rs.updateArray(columnName, x); |
823 | } |
824 | |
825 | /** |
826 | * @see java.sql.ResultSet#updateArray(java.lang.String, java.sql.Array) |
827 | */ |
828 | public void updateArray(IColumnName columnName, Array x) throws SQLException { |
829 | rs.updateArray(columnName._(), x); |
830 | } |
831 | |
832 | /** |
833 | * @see java.sql.ResultSet#updateAsciiStream(int, java.io.InputStream, int) |
834 | */ |
835 | public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException { |
836 | rs.updateAsciiStream(columnIndex, x, length); |
837 | } |
838 | |
839 | /** |
840 | * @see java.sql.ResultSet#updateAsciiStream(java.lang.String, java.io.InputStream, int) |
841 | */ |
842 | public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException { |
843 | rs.updateAsciiStream(columnName, x, length); |
844 | } |
845 | |
846 | /** |
847 | * @see java.sql.ResultSet#updateBigDecimal(int, java.math.BigDecimal) |
848 | */ |
849 | public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException { |
850 | rs.updateBigDecimal(columnIndex, x); |
851 | } |
852 | |
853 | /** |
854 | * @see java.sql.ResultSet#updateBigDecimal(java.lang.String, java.math.BigDecimal) |
855 | */ |
856 | public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException { |
857 | rs.updateBigDecimal(columnName, x); |
858 | } |
859 | |
860 | /** |
861 | * @see java.sql.ResultSet#updateBinaryStream(int, java.io.InputStream, int) |
862 | */ |
863 | public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException { |
864 | rs.updateBinaryStream(columnIndex, x, length); |
865 | } |
866 | |
867 | /** |
868 | * @see java.sql.ResultSet#updateBinaryStream(java.lang.String, java.io.InputStream, int) |
869 | */ |
870 | public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException { |
871 | rs.updateBinaryStream(columnName, x, length); |
872 | } |
873 | |
874 | /** |
875 | * @see java.sql.ResultSet#updateBlob(int, java.sql.Blob) |
876 | */ |
877 | public void updateBlob(int columnIndex, Blob x) throws SQLException { |
878 | rs.updateBlob(columnIndex, x); |
879 | } |
880 | |
881 | /** |
882 | * @see java.sql.ResultSet#updateBlob(java.lang.String, java.sql.Blob) |
883 | */ |
884 | public void updateBlob(String columnName, Blob x) throws SQLException { |
885 | rs.updateBlob(columnName, x); |
886 | } |
887 | |
888 | /** |
889 | * @see java.sql.ResultSet#updateBoolean(int, boolean) |
890 | */ |
891 | public void updateBoolean(int columnIndex, boolean x) throws SQLException { |
892 | rs.updateBoolean(columnIndex, x); |
893 | } |
894 | |
895 | /** |
896 | * @see java.sql.ResultSet#updateBoolean(java.lang.String, boolean) |
897 | */ |
898 | public void updateBoolean(String columnName, boolean x) throws SQLException { |
899 | rs.updateBoolean(columnName, x); |
900 | } |
901 | |
902 | /** |
903 | * @see java.sql.ResultSet#updateByte(int, byte) |
904 | */ |
905 | public void updateByte(int columnIndex, byte x) throws SQLException { |
906 | rs.updateByte(columnIndex, x); |
907 | } |
908 | |
909 | /** |
910 | * @see java.sql.ResultSet#updateByte(java.lang.String, byte) |
911 | */ |
912 | public void updateByte(String columnName, byte x) throws SQLException { |
913 | rs.updateByte(columnName, x); |
914 | } |
915 | |
916 | /** |
917 | * @see java.sql.ResultSet#updateBytes(int, byte[]) |
918 | */ |
919 | public void updateBytes(int columnIndex, byte[] x) throws SQLException { |
920 | rs.updateBytes(columnIndex, x); |
921 | } |
922 | |
923 | /** |
924 | * @see java.sql.ResultSet#updateBytes(java.lang.String, byte[]) |
925 | */ |
926 | public void updateBytes(String columnName, byte[] x) throws SQLException { |
927 | rs.updateBytes(columnName, x); |
928 | } |
929 | |
930 | /** |
931 | * @see java.sql.ResultSet#updateCharacterStream(int, java.io.Reader, int) |
932 | */ |
933 | public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException { |
934 | rs.updateCharacterStream(columnIndex, x, length); |
935 | } |
936 | |
937 | /** |
938 | * @see java.sql.ResultSet#updateCharacterStream(java.lang.String, java.io.Reader, int) |
939 | */ |
940 | public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException { |
941 | rs.updateCharacterStream(columnName, reader, length); |
942 | } |
943 | |
944 | /** |
945 | * @see java.sql.ResultSet#updateCharacterStream(java.lang.String, java.io.Reader, int) |
946 | */ |
947 | public void updateCharacterStream(IColumnName columnName, Reader reader, int length) throws SQLException { |
948 | rs.updateCharacterStream(columnName._(), reader, length); |
949 | } |
950 | |
951 | /** |
952 | * @see java.sql.ResultSet#updateClob(int, java.sql.Clob) |
953 | */ |
954 | public void updateClob(int columnIndex, Clob x) throws SQLException { |
955 | rs.updateClob(columnIndex, x); |
956 | } |
957 | |
958 | /** |
959 | * @see java.sql.ResultSet#updateClob(java.lang.String, java.sql.Clob) |
960 | */ |
961 | public void updateClob(String columnName, Clob x) throws SQLException { |
962 | rs.updateClob(columnName, x); |
963 | } |
964 | |
965 | /** |
966 | * @see java.sql.ResultSet#updateDate(int, java.sql.Date) |
967 | */ |
968 | public void updateDate(int columnIndex, Date x) throws SQLException { |
969 | rs.updateDate(columnIndex, x); |
970 | } |
971 | |
972 | /** |
973 | * @see java.sql.ResultSet#updateDate(java.lang.String, java.sql.Date) |
974 | */ |
975 | public void updateDate(String columnName, Date x) throws SQLException { |
976 | rs.updateDate(columnName, x); |
977 | } |
978 | |
979 | /** |
980 | * @see java.sql.ResultSet#updateDouble(int, double) |
981 | */ |
982 | public void updateDouble(int columnIndex, double x) throws SQLException { |
983 | rs.updateDouble(columnIndex, x); |
984 | } |
985 | |
986 | /** |
987 | * @see java.sql.ResultSet#updateDouble(java.lang.String, double) |
988 | */ |
989 | public void updateDouble(String columnName, double x) throws SQLException { |
990 | rs.updateDouble(columnName, x); |
991 | } |
992 | |
993 | /** |
994 | * @see java.sql.ResultSet#updateDouble(java.lang.String, double) |
995 | */ |
996 | public void updateDouble(IColumnName columnName, double x) throws SQLException { |
997 | rs.updateDouble(columnName._(), x); |
998 | } |
999 | |
1000 | /** |
1001 | * @see java.sql.ResultSet#updateFloat(int, float) |
1002 | */ |
1003 | public void updateFloat(int columnIndex, float x) throws SQLException { |
1004 | rs.updateFloat(columnIndex, x); |
1005 | } |
1006 | |
1007 | /** |
1008 | * @see java.sql.ResultSet#updateFloat(java.lang.String, float) |
1009 | */ |
1010 | public void updateFloat(String columnName, float x) throws SQLException { |
1011 | rs.updateFloat(columnName, x); |
1012 | } |
1013 | |
1014 | /** |
1015 | * @see java.sql.ResultSet#updateFloat(java.lang.String, float) |
1016 | */ |
1017 | public void updateFloat(IColumnName columnName, float x) throws SQLException { |
1018 | rs.updateFloat(columnName._(), x); |
1019 | } |
1020 | |
1021 | /** |
1022 | * @see java.sql.ResultSet#updateInt(int, int) |
1023 | */ |
1024 | public void updateInt(int columnIndex, int x) throws SQLException { |
1025 | rs.updateInt(columnIndex, x); |
1026 | } |
1027 | |
1028 | /** |
1029 | * @see java.sql.ResultSet#updateInt(java.lang.String, int) |
1030 | */ |
1031 | public void updateInt(String columnName, int x) throws SQLException { |
1032 | rs.updateInt(columnName, x); |
1033 | } |
1034 | |
1035 | /** |
1036 | * @see java.sql.ResultSet#updateInt(java.lang.String, int) |
1037 | */ |
1038 | public void updateInt(IColumnName columnName, int x) throws SQLException { |
1039 | rs.updateInt(columnName._(), x); |
1040 | } |
1041 | |
1042 | /** |
1043 | * @see java.sql.ResultSet#updateLong(int, long) |
1044 | */ |
1045 | public void updateLong(int columnIndex, long x) throws SQLException { |
1046 | rs.updateLong(columnIndex, x); |
1047 | } |
1048 | |
1049 | /** |
1050 | * @see java.sql.ResultSet#updateLong(java.lang.String, long) |
1051 | */ |
1052 | public void updateLong(String columnName, long x) throws SQLException { |
1053 | rs.updateLong(columnName, x); |
1054 | } |
1055 | |
1056 | /** |
1057 | * @see java.sql.ResultSet#updateLong(java.lang.String, long) |
1058 | */ |
1059 | public void updateLong(IColumnName columnName, long x) throws SQLException { |
1060 | rs.updateLong(columnName._(), x); |
1061 | } |
1062 | |
1063 | /** |
1064 | * @see java.sql.ResultSet#updateNull(int) |
1065 | */ |
1066 | public void updateNull(int columnIndex) throws SQLException { |
1067 | rs.updateNull(columnIndex); |
1068 | } |
1069 | |
1070 | /** |
1071 | * @see java.sql.ResultSet#updateNull(java.lang.String) |
1072 | */ |
1073 | public void updateNull(String columnName) throws SQLException { |
1074 | rs.updateNull(columnName); |
1075 | } |
1076 | |
1077 | /** |
1078 | * @see java.sql.ResultSet#updateObject(int, java.lang.Object, int) |
1079 | */ |
1080 | public void updateObject(int columnIndex, Object x, int scale) throws SQLException { |
1081 | rs.updateObject(columnIndex, x, scale); |
1082 | } |
1083 | |
1084 | /** |
1085 | * @see java.sql.ResultSet#updateObject(int, java.lang.Object) |
1086 | */ |
1087 | public void updateObject(int columnIndex, Object x) throws SQLException { |
1088 | rs.updateObject(columnIndex, x); |
1089 | } |
1090 | |
1091 | /** |
1092 | * @see java.sql.ResultSet#updateObject(java.lang.String, java.lang.Object, int) |
1093 | */ |
1094 | public void updateObject(String columnName, Object x, int scale) throws SQLException { |
1095 | rs.updateObject(columnName, x, scale); |
1096 | } |
1097 | |
1098 | /** |
1099 | * @see java.sql.ResultSet#updateObject(java.lang.String, java.lang.Object) |
1100 | */ |
1101 | public void updateObject(String columnName, Object x) throws SQLException { |
1102 | rs.updateObject(columnName, x); |
1103 | } |
1104 | |
1105 | /** |
1106 | * @see java.sql.ResultSet#updateRef(int, java.sql.Ref) |
1107 | */ |
1108 | public void updateRef(int columnIndex, Ref x) throws SQLException { |
1109 | rs.updateRef(columnIndex, x); |
1110 | } |
1111 | |
1112 | /** |
1113 | * @see java.sql.ResultSet#updateRef(java.lang.String, java.sql.Ref) |
1114 | */ |
1115 | public void updateRef(String columnName, Ref x) throws SQLException { |
1116 | rs.updateRef(columnName, x); |
1117 | } |
1118 | |
1119 | /** |
1120 | * @see java.sql.ResultSet#updateRow() |
1121 | */ |
1122 | public void updateRow() throws SQLException { |
1123 | rs.updateRow(); |
1124 | } |
1125 | |
1126 | /** |
1127 | * @see java.sql.ResultSet#updateShort(int, short) |
1128 | */ |
1129 | public void updateShort(int columnIndex, short x) throws SQLException { |
1130 | rs.updateShort(columnIndex, x); |
1131 | } |
1132 | |
1133 | /** |
1134 | * @see java.sql.ResultSet#updateShort(java.lang.String, short) |
1135 | */ |
1136 | public void updateShort(String columnName, short x) throws SQLException { |
1137 | rs.updateShort(columnName, x); |
1138 | } |
1139 | |
1140 | /** |
1141 | * @see java.sql.ResultSet#updateString(int, java.lang.String) |
1142 | */ |
1143 | public void updateString(int columnIndex, String x) throws SQLException { |
1144 | rs.updateString(columnIndex, x); |
1145 | } |
1146 | |
1147 | /** |
1148 | * @see java.sql.ResultSet#updateString(java.lang.String, java.lang.String) |
1149 | */ |
1150 | public void updateString(String columnName, String x) throws SQLException { |
1151 | rs.updateString(columnName, x); |
1152 | } |
1153 | |
1154 | /** |
1155 | * @see java.sql.ResultSet#updateTime(int, java.sql.Time) |
1156 | */ |
1157 | public void updateTime(int columnIndex, Time x) throws SQLException { |
1158 | rs.updateTime(columnIndex, x); |
1159 | } |
1160 | |
1161 | /** |
1162 | * @see java.sql.ResultSet#updateTime(java.lang.String, java.sql.Time) |
1163 | */ |
1164 | public void updateTime(String columnName, Time x) throws SQLException { |
1165 | rs.updateTime(columnName, x); |
1166 | } |
1167 | |
1168 | /** |
1169 | * @see java.sql.ResultSet#updateTimestamp(int, java.sql.Timestamp) |
1170 | */ |
1171 | public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException { |
1172 | rs.updateTimestamp(columnIndex, x); |
1173 | } |
1174 | |
1175 | /** |
1176 | * @see java.sql.ResultSet#updateTimestamp(java.lang.String, java.sql.Timestamp) |
1177 | */ |
1178 | public void updateTimestamp(String columnName, Timestamp x) throws SQLException { |
1179 | rs.updateTimestamp(columnName, x); |
1180 | } |
1181 | |
1182 | /** |
1183 | * @see java.sql.ResultSet#updateTimestamp(java.lang.String, java.sql.Timestamp) |
1184 | */ |
1185 | public void updateTimestamp(IColumnName columnName, Timestamp x) throws SQLException { |
1186 | rs.updateTimestamp(columnName._(), x); |
1187 | } |
1188 | |
1189 | /** |
1190 | * @see java.sql.ResultSet#wasNull() |
1191 | */ |
1192 | public boolean wasNull() throws SQLException { |
1193 | return rs.wasNull(); |
1194 | } |
1195 | } |