| 1 33 34 package com.internetcds.jdbc.tds; 35 36 37 import java.sql.*; 38 import java.math.BigDecimal ; 39 import java.util.Vector ; 40 import java.util.GregorianCalendar ; 42 import java.util.Calendar ; 43 import java.net.URL ; 44 45 46 47 public class ResultSet_2_0 48 extends com.internetcds.jdbc.tds.ResultSet_base 49 implements java.sql.ResultSet  50 { 51 public static final String cvsVersion = "$Id: ResultSet_2_0.java,v 1.1 2006/06/23 10:39:30 sinisa Exp $"; 52 53 54 public ResultSet_2_0(Tds tds_, 55 com.internetcds.jdbc.tds.Statement stmt_, 56 Columns columns_) 57 { 58 super(tds_, stmt_, columns_); 59 } 60 61 62 66 72 public java.io.Reader getCharacterStream(int columnIndex) throws SQLException 73 { 74 String val = getString(columnIndex); 75 if (val == null) 76 return null; 77 78 return new java.io.StringReader (val); 79 } 80 81 82 89 public java.io.Reader getCharacterStream(String columnName) throws SQLException 90 { 91 return getCharacterStream(findColumn(columnName)); 92 } 93 94 95 106 public BigDecimal getBigDecimal(int columnIndex) throws SQLException 107 { 108 return getBigDecimal(columnIndex, 0); 109 } 112 113 114 125 public BigDecimal getBigDecimal(String columnName) throws SQLException 126 { 127 128 return getBigDecimal(findColumn(columnName), 0); 129 } 132 133 134 138 149 public boolean isBeforeFirst() throws SQLException 150 { 151 NotImplemented(); 152 return false; 153 } 154 155 156 166 public boolean isAfterLast() throws SQLException 167 { 168 NotImplemented(); 169 return false; 170 } 171 172 173 181 public boolean isFirst() throws SQLException 182 { 183 NotImplemented(); 184 return false; 185 } 186 187 188 200 public boolean isLast() throws SQLException 201 { 202 NotImplemented(); 203 return false; 204 } 205 206 207 216 public void beforeFirst() throws SQLException 217 { 218 NotImplemented(); 219 } 220 221 222 231 public void afterLast() throws SQLException 232 { 233 NotImplemented(); 234 } 235 236 237 247 public boolean first() throws SQLException 248 { 249 NotImplemented(); 250 return false; 251 } 252 253 254 264 public boolean last() throws SQLException 265 { 266 NotImplemented(); 267 return false; 268 } 269 270 271 280 public int getRow() throws SQLException 281 { 282 NotImplemented(); 283 return 0; 284 } 285 286 287 316 public boolean absolute( int row ) throws SQLException 317 { 318 NotImplemented(); 319 return false; 320 } 321 322 323 342 public boolean relative( int rows ) throws SQLException 343 { 344 NotImplemented(); 345 return false; 346 } 347 348 349 362 public boolean previous() throws SQLException 363 { 364 NotImplemented(); 365 return false; 366 } 367 368 369 373 379 int FETCH_FORWARD = 1000; 380 381 387 int FETCH_REVERSE = 1001; 388 389 394 int FETCH_UNKNOWN = 1002; 395 396 408 public void setFetchDirection(int direction) throws SQLException 409 { 410 NotImplemented(); 411 } 412 413 414 422 public int getFetchDirection() throws SQLException 423 { 424 NotImplemented(); 425 return 0; 426 } 427 428 429 444 public void setFetchSize(int rows) throws SQLException 445 { 446 NotImplemented(); 447 } 448 449 450 458 public int getFetchSize() throws SQLException 459 { 460 NotImplemented(); 461 return 0; 462 } 463 464 465 470 int TYPE_FORWARD_ONLY = 1003; 471 472 478 int TYPE_SCROLL_INSENSITIVE = 1004; 479 480 485 int TYPE_SCROLL_SENSITIVE = 1005; 486 487 497 public int getType() throws SQLException 498 { 499 NotImplemented(); 500 return 0; 501 } 502 503 504 510 int CONCUR_READ_ONLY = 1007; 511 512 518 int CONCUR_UPDATABLE = 1008; 519 520 529 public int getConcurrency() throws SQLException 530 { 531 NotImplemented(); 532 return 0; 533 } 534 535 536 540 552 public boolean rowUpdated() throws SQLException 553 { 554 NotImplemented(); 555 return false; 556 } 557 558 559 570 public boolean rowInserted() throws SQLException 571 { 572 NotImplemented(); 573 return false; 574 } 575 576 577 590 public boolean rowDeleted() throws SQLException 591 { 592 NotImplemented(); 593 return false; 594 } 595 596 597 610 public void updateNull(int columnIndex) throws SQLException 611 { 612 NotImplemented(); 613 } 614 615 616 630 public void updateBoolean(int columnIndex, boolean x) throws SQLException 631 { 632 NotImplemented(); 633 } 634 635 636 650 public void updateByte(int columnIndex, byte x) throws SQLException 651 { 652 NotImplemented(); 653 } 654 655 656 670 public void updateShort(int columnIndex, short x) throws SQLException 671 { 672 NotImplemented(); 673 } 674 675 676 690 public void updateInt(int columnIndex, int x) throws SQLException 691 { 692 NotImplemented(); 693 } 694 695 696 710 public void updateLong(int columnIndex, long x) throws SQLException 711 { 712 NotImplemented(); 713 } 714 715 716 730 public void updateFloat(int columnIndex, float x) throws SQLException 731 { 732 NotImplemented(); 733 } 734 735 736 750 public void updateDouble(int columnIndex, double x) throws SQLException 751 { 752 NotImplemented(); 753 } 754 755 756 770 public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException 771 { 772 NotImplemented(); 773 } 774 775 776 790 public void updateString(int columnIndex, String x) throws SQLException 791 { 792 NotImplemented(); 793 } 794 795 796 810 public void updateBytes(int columnIndex, byte x[]) throws SQLException 811 { 812 NotImplemented(); 813 } 814 815 816 830 public void updateDate(int columnIndex, java.sql.Date x) throws SQLException 831 { 832 NotImplemented(); 833 } 834 835 836 850 public void updateTime(int columnIndex, java.sql.Time x) throws SQLException 851 { 852 NotImplemented(); 853 } 854 855 869 public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws SQLException 870 { 871 NotImplemented(); 872 } 873 874 875 890 public void updateAsciiStream(int columnIndex, 891 java.io.InputStream x, 892 int length) throws SQLException 893 { 894 NotImplemented(); 895 } 896 897 898 913 public void updateBinaryStream(int columnIndex, 914 java.io.InputStream x, 915 int length) throws SQLException 916 { 917 NotImplemented(); 918 } 919 920 921 936 public void updateCharacterStream(int columnIndex, 937 java.io.Reader x, 938 int length) throws SQLException 939 { 940 NotImplemented(); 941 } 942 943 960 public void updateObject(int columnIndex, Object x, int scale) throws SQLException 961 { 962 NotImplemented(); 963 } 964 965 966 980 public void updateObject(int columnIndex, Object x) throws SQLException 981 { 982 NotImplemented(); 983 } 984 985 986 999 public void updateNull(String columnName) throws SQLException 1000 { 1001 NotImplemented(); 1002 } 1003 1004 1005 1019 public void updateBoolean(String columnName, boolean x) throws SQLException 1020 { 1021 NotImplemented(); 1022 } 1023 1024 1025 1039 public void updateByte(String columnName, byte x) throws SQLException 1040 { 1041 NotImplemented(); 1042 } 1043 1044 1045 1059 public void updateShort(String columnName, short x) throws SQLException 1060 { 1061 NotImplemented(); 1062 } 1063 1064 1065 1079 public void updateInt(String columnName, int x) throws SQLException 1080 { 1081 NotImplemented(); 1082 } 1083 1084 1085 1099 public void updateLong(String columnName, long x) throws SQLException 1100 { 1101 NotImplemented(); 1102 } 1103 1104 1105 1119 public void updateFloat(String columnName, float x) throws SQLException 1120 { 1121 NotImplemented(); 1122 } 1123 1124 1125 |