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 1139 public void updateDouble(String columnName, double x) throws SQLException 1140 { 1141 NotImplemented(); 1142 } 1143 1144 1145 1159 public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException 1160 { 1161 NotImplemented(); 1162 } 1163 1164 1165 1179 public void updateString(String columnName, String x) throws SQLException 1180 { 1181 NotImplemented(); 1182 } 1183 1184 1185 1199 public void updateBytes(String columnName, byte x[]) throws SQLException 1200 { 1201 NotImplemented(); 1202 } 1203 1204 1205 1219 public void updateDate(String columnName, java.sql.Date x) throws SQLException 1220 { 1221 NotImplemented(); 1222 } 1223 1224 1225 1239 public void updateTime(String columnName, java.sql.Time x) throws SQLException 1240 { 1241 NotImplemented(); 1242 } 1243 1244 1245 1259 public void updateTimestamp(String columnName, java.sql.Timestamp x) throws SQLException 1260 { 1261 NotImplemented(); 1262 } 1263 1264 1265 1280 public void updateAsciiStream(String columnName, 1281 java.io.InputStream x, 1282 int length) throws SQLException 1283 { 1284 NotImplemented(); 1285 } 1286 1287 1288 1303 public void updateBinaryStream(String columnName, 1304 java.io.InputStream x, 1305 int length) throws SQLException 1306 { 1307 NotImplemented(); 1308 } 1309 1310 1311 1326 public void updateCharacterStream(String columnName, 1327 java.io.Reader reader, 1328 int length) throws SQLException 1329 { 1330 NotImplemented(); 1331 } 1332 1333 1334 1351 public void updateObject(String columnName, Object x, int scale) throws SQLException 1352 { 1353 NotImplemented(); 1354 } 1355 1356 1357 1371 public void updateObject(String columnName, Object x) throws SQLException 1372 { 1373 NotImplemented(); 1374 } 1375 1376 1377 1387 public void insertRow() throws SQLException 1388 { 1389 NotImplemented(); 1390 } 1391 1392 1393 1402 public void updateRow() throws SQLException 1403 { 1404 NotImplemented(); 1405 } 1406 1407 1408 1417 public void deleteRow() throws SQLException 1418 { 1419 NotImplemented(); 1420 } 1421 1422 1423 1446 public void refreshRow() throws SQLException 1447 { 1448 NotImplemented(); 1449 } 1450 1451 1452 1466 public void cancelRowUpdates() throws SQLException 1467 { 1468 NotImplemented(); 1469 } 1470 1471 1472 1494 public void moveToInsertRow() throws SQLException 1495 { 1496 NotImplemented(); 1497 } 1498 1499 1500 1510 public void moveToCurrentRow() throws SQLException 1511 { 1512 NotImplemented(); 1513 } 1514 1515 1516 1527 public java.sql.Statement getStatement() throws SQLException 1528 { 1529 return stmt; 1530 } 1531 1532 1533 1545 public Object getObject(int i, java.util.Map map) throws SQLException 1546 { 1547 NotImplemented(); 1548 return null; 1549 } 1550 1551 1552 1560 public Ref getRef(int i) throws SQLException 1561 { 1562 NotImplemented(); 1563 return null; 1564 } 1565 1566 1567 1576 public Blob getBlob(int i) throws SQLException 1577 { 1578 NotImplemented(); 1579 return null; 1580 } 1581 1582 1583 1592 public Clob getClob(int i) throws SQLException 1593 { 1594 NotImplemented(); 1595 return null; 1596 } 1597 1598 1599 1608 public Array getArray(int i) throws SQLException 1609 { 1610 NotImplemented(); 1611 return null; 1612 } 1613 1614 1615 1626 public Object getObject(String colName, java.util.Map map) throws SQLException 1627 { 1628 NotImplemented(); 1629 return null; 1630 } 1631 1632 1633 1642 public Ref getRef(String colName) throws SQLException 1643 { 1644 NotImplemented(); 1645 return null; 1646 } 1647 1648 1649 1658 public Blob getBlob(String colName) throws SQLException 1659 { 1660 NotImplemented(); 1661 return null; 1662 } 1663 1664 1665 1674 public Clob getClob(String colName) throws SQLException 1675 { 1676 NotImplemented(); 1677 return null; 1678 } 1679 1680 1681 1690 public Array getArray(String colName) throws SQLException 1691 { 1692 NotImplemented(); 1693 return null; 1694 } 1695 1696 1697 1698 1709 public java.sql.Timestamp getTimestamp(int columnIndex, Calendar cal) 1710 throws SQLException 1711 { 1712 NotImplemented(); 1713 return null; 1714 } 1715 1716 1717 1728 public java.sql.Timestamp getTimestamp(String columnName, Calendar cal) 1729 throws SQLException 1730 { 1731 NotImplemented(); 1732 return null; 1733 } 1734 1735 1736 1737 1750 public java.sql.Date getDate(int columnIndex, Calendar cal) throws SQLException 1751 { 1752 NotImplemented(); 1753 return null; 1754 } 1755 1756 1757 1768 public java.sql.Date getDate(String columnName, Calendar cal) throws SQLException 1769 { 1770 NotImplemented(); 1771 return null; 1772 } 1773 1774 1775 1786 public java.sql.Time getTime(int columnIndex, Calendar cal) 1787 throws SQLException 1788 { 1789 NotImplemented(); 1790 return null; 1791 } 1792 1793 1794 1806 public java.sql.Time getTime(String columnName, Calendar cal) 1807 throws SQLException 1808 { 1809 NotImplemented(); 1810 return null; 1811 } 1812 1813 1817 public URL getURL(int columnIndex) throws SQLException { 1818 throw new UnsupportedOperationException ("ResultSet.getURL(int) unsupported"); 1819 } 1820 1821 public URL getURL(String columnName) throws SQLException { 1822 throw new UnsupportedOperationException ("ResultSet.getURL(String) unsupported"); 1823 } 1824 1825 public void updateRef(int columnIndex, Ref x) throws SQLException { 1826 throw new UnsupportedOperationException ("ResultSet.updateRef(int,java.sql.Ref) unsupported"); 1827 } 1828 1829 public void updateRef(String columnName, Ref x) throws SQLException { 1830 throw new UnsupportedOperationException ("ResultSet.updateRef(String,java.sql.Ref) unsupported"); 1831 } 1832 1833 public void updateBlob(int columnIndex, Blob x) throws SQLException { 1834 throw new UnsupportedOperationException ("ResultSet.updateBlob(int,java.sql.Blob) unsupported"); 1835 } 1836 1837 public void updateBlob(String columnName, Blob x) throws SQLException { 1838 throw new UnsupportedOperationException ("ResultSet.updateBlob(String,java.sql.Blob) unsupported"); 1839 } 1840 1841 public void updateClob(int columnIndex, Clob x) throws SQLException { 1842 throw new UnsupportedOperationException ("ResultSet.updateClob(int,java.sql.Clob) unsupported"); 1843 } 1844 1845 public void updateClob(String columnName, Clob x) throws SQLException { 1846 throw new UnsupportedOperationException ("ResultSet.updateClob(String,java.sql.Clob) unsupported"); 1847 } 1848 1849 public void updateArray(int columnIndex, Array x) throws SQLException { 1850 throw new UnsupportedOperationException ("ResultSet.updateArray(int,java.sql.Array) unsupported"); 1851 } 1852 1853 public void updateArray(String columnName, Array x) throws SQLException { 1854 throw new UnsupportedOperationException ("ResultSet.updateArray(String,java.sql.Array) unsupported"); 1855 } 1856 1857 1858 1859 1860} 1861 | Popular Tags |