1 18 19 package org.webdocwf.util.xml; 20 21 import java.io.ByteArrayInputStream ; 22 import java.io.IOException ; 23 import java.io.InputStream ; 24 import java.io.Reader ; 25 import java.io.StringReader ; 26 import java.math.BigDecimal ; 27 import java.net.URL ; 28 import java.sql.*; 29 import java.util.ArrayList ; 30 import java.util.Map ; 31 import java.util.Calendar ; 32 33 38 public class XmlResultSet implements ResultSet { 39 40 41 protected ResultSetMetaData resultSetMetaData; 42 43 44 protected Statement statement; 45 46 47 protected XmlReader reader; 48 49 50 protected String tableName; 51 52 53 protected String [] columnNames; 54 55 56 protected String [] columnValues; 57 58 protected String [] whereColumnNames; 59 60 protected String [] whereColumnValues; 61 62 63 64 protected int lastIndexRead = -1; 65 66 67 protected InputStream is; 68 69 79 protected XmlResultSet(Statement statement, XmlReader reader , String tableName , String [] columnNames 80 , String [] whereColumnNames , String [] whereColumnValues ) { 81 this.statement = statement; 82 this.reader = reader; 83 this.tableName = tableName; 84 this.columnNames = columnNames; 85 this.whereColumnNames = whereColumnNames; 86 this.whereColumnValues = whereColumnValues; 87 } 88 89 90 public void select() throws SQLException { 91 reader.select( tableName , columnNames , whereColumnNames , whereColumnValues); 92 this.rset = reader.getResultSet(); 93 } 94 95 public void selectTableNames() throws SQLException { 96 reader.selectTableNames(); 97 this.rset = reader.getResultSet(); 98 } 99 public void close() { 100 } 101 102 private int index = 0; 103 private ArrayList rset = new ArrayList (); 104 111 public boolean next() throws SQLException { 112 boolean retVal = false; 113 try { 114 if( !(rset.size() <= index) ) { 115 this.columnValues = (String [])rset.get( index ); 116 index++; 117 retVal = true; 118 } else { 119 index = 0; 120 rset = new ArrayList (); 121 this.columnValues = new String [0]; 122 retVal = false; 123 } 124 }catch( Exception e ) { throw new SQLException("Error in ResultSet.next() : "+e.getMessage()); } 125 return retVal; 126 } 127 128 public String getString(int i) throws SQLException { 129 try { 130 return this.columnValues[i-1].toString(); 131 }catch(Exception e) { throw new SQLException("Error ResultSet.getString( index ) : "+e.getMessage()); } 132 } 133 134 146 public boolean wasNull() throws SQLException { 147 if(lastIndexRead >= 0) { 148 return getString(lastIndexRead) == null; 149 } else { 150 throw new SQLException("No previous getter method called"); 151 } 152 } 153 154 158 159 169 public boolean getBoolean(int columnIndex) throws SQLException { 170 String str = getString(columnIndex); 171 return (str == null) ? false : Boolean.valueOf(str).booleanValue(); 172 } 173 174 184 public byte getByte(int columnIndex) throws SQLException { 185 String str = getString(columnIndex); 186 return (str == null) ? 0 : Byte.parseByte(str); 187 } 188 189 199 public short getShort(int columnIndex) throws SQLException { 200 String str = getString(columnIndex); 201 return (str == null) ? 0 : Short.parseShort(str); 202 } 203 204 214 public int getInt(int columnIndex) throws SQLException { 215 String str = getString(columnIndex); 216 return (str == null) ? 0 : Integer.parseInt(str); 217 } 218 219 229 public long getLong(int columnIndex) throws SQLException { 230 String str = getString(columnIndex); 231 return (str == null) ? 0L : Long.parseLong(str); 232 } 233 234 244 public float getFloat(int columnIndex) throws SQLException { 245 String str = getString(columnIndex); 246 return (str == null) ? 0F : Float.parseFloat(str); 247 } 248 249 259 public double getDouble(int columnIndex) throws SQLException { 260 String str = getString(columnIndex); 261 return (str == null) ? 0D : Double.parseDouble(str); 262 } 263 264 276 public BigDecimal getBigDecimal(int columnIndex, int scale) 277 throws SQLException { 278 return getBigDecimal(columnIndex); 280 } 281 282 293 public byte[] getBytes(int columnIndex) throws SQLException { 294 String str = getString(columnIndex); 295 return (str == null) ? null : Utils.hexStringToBytes(str); 296 } 297 298 308 public Date getDate(int columnIndex) throws SQLException { 309 String str = getString(columnIndex); 310 return (str == null) ? null : Date.valueOf(str); 311 } 312 313 323 public Time getTime(int columnIndex) throws SQLException { 324 String str = getString(columnIndex); 325 return (str == null) ? null : Time.valueOf(str); 326 } 327 328 338 public Timestamp getTimestamp(int columnIndex) throws SQLException { 339 String str = getString(columnIndex); 340 return (str == null) ? null : Timestamp.valueOf(str); 341 } 342 343 365 public InputStream getAsciiStream(int columnIndex) throws SQLException { 366 String str = getString(columnIndex); 367 is = new ByteArrayInputStream (str.getBytes()); 368 return (str == null) ? null : is; 369 } 370 371 400 public InputStream getUnicodeStream(int columnIndex) throws SQLException { 401 return getAsciiStream(columnIndex); 403 } 404 405 426 public InputStream getBinaryStream(int columnIndex) throws SQLException { 427 return getAsciiStream(columnIndex); 429 } 430 431 435 445 public String getString(String columnName) throws SQLException { 446 int colIndex = -1; 447 for( int i = 0; i < this.columnNames.length; i++ ) { 448 if(columnName.equalsIgnoreCase( this.columnNames[i] )) 449 colIndex = i; 450 } 451 if( colIndex == -1 ) 452 throw new SQLException("Column "+columnName+" not found."); 453 return this.columnValues[colIndex]; 454 } 455 456 466 public boolean getBoolean(String columnName) throws SQLException { 467 String str = getString(columnName); 468 return (str == null) ? false : Boolean.valueOf(str).booleanValue(); 469 } 470 471 481 public byte getByte(String columnName) throws SQLException { 482 String str = getString(columnName); 483 return (str == null) ? 0 : Byte.parseByte(str); 484 } 485 486 496 public short getShort(String columnName) throws SQLException { 497 String str = getString(columnName); 498 return (str == null) ? 0 : Short.parseShort(str); 499 } 500 501 511 public int getInt(String columnName) throws SQLException { 512 String str = getString(columnName); 513 return (str == null) ? 0 : Integer.parseInt(str); 514 } 515 516 526 public long getLong(String columnName) throws SQLException { 527 String str = getString(columnName); 528 return (str == null) ? 0L : Long.parseLong(str); 529 } 530 531 541 public float getFloat(String columnName) throws SQLException { 542 String str = getString(columnName); 543 return (str == null) ? 0F : Float.parseFloat(str); 544 } 545 546 556 public double getDouble(String columnName) throws SQLException { 557 String str = getString(columnName); 558 return (str == null) ? 0D : Double.parseDouble(str); 559 } 560 561 573 public BigDecimal getBigDecimal(String columnName, int scale) 574 throws SQLException { 575 return getBigDecimal(columnName); 577 } 578 579 590 public byte[] getBytes(String columnName) throws SQLException { 591 String str = getString(columnName); 592 return (str == null) ? null : str.getBytes(); 593 } 594 595 605 public Date getDate(String columnName) throws SQLException { 606 String str = getString(columnName); 607 return (str == null) ? null : Date.valueOf(str); 608 } 609 610 621 public Time getTime(String columnName) throws SQLException { 622 String str = getString(columnName); 623 return (str == null) ? null : Time.valueOf(str); 624 } 625 626 636 public Timestamp getTimestamp(String columnName) throws SQLException { 637 String str = getString(columnName); 638 return (str == null) ? null : Timestamp.valueOf(str); 639 } 640 641 663 public InputStream getAsciiStream(String columnName) throws SQLException { 664 String str = getString(columnName); 665 is = new ByteArrayInputStream (str.getBytes()); 666 return (str == null) ? null : is; 667 } 668 669 696 public InputStream getUnicodeStream(String columnName) throws SQLException { 697 return getAsciiStream(columnName); 699 } 700 701 722 public InputStream getBinaryStream(String columnName) throws SQLException { 723 return getAsciiStream(columnName); 725 } 726 727 731 754 public SQLWarning getWarnings() throws SQLException { 755 throw new UnsupportedOperationException ( 756 "ResultSet.getWarnings() unsupported"); 757 } 758 759 767 public void clearWarnings() throws SQLException { 768 throw new UnsupportedOperationException ( 769 "ResultSet.clearWarnings() unsupported"); 770 } 771 772 795 public String getCursorName() throws SQLException { 796 throw new UnsupportedOperationException ( 797 "ResultSet.getCursorName() unsupported"); 798 } 799 800 807 public ResultSetMetaData getMetaData() throws SQLException { 808 if (resultSetMetaData == null) { 809 resultSetMetaData = new XmlResultSetMetaData(tableName, columnNames); 810 } 811 return resultSetMetaData; 812 813 } 814 815 841 public Object getObject(int columnIndex) throws SQLException { 842 return getString(columnIndex); 845 } 846 872 public Object getObject(String columnName) throws SQLException { 873 return getString(columnName); 876 } 877 878 887 public int findColumn(String columnName) throws SQLException { 888 throw new UnsupportedOperationException ( 889 "ResultSet.findColumn(String) unsupported"); 890 } 891 892 894 898 909 public Reader getCharacterStream(int columnIndex) throws SQLException { 910 String str = getString(columnIndex); 911 return (str == null) ? null : new StringReader (str); 912 } 913 914 925 public Reader getCharacterStream(String columnName) throws SQLException { 926 String str = getString(columnName); 927 return (str == null) ? null : new StringReader (str); 928 } 929 930 941 public BigDecimal getBigDecimal(int columnIndex) throws SQLException { 942 BigDecimal retval = null; 943 String str = getString(columnIndex); 944 if(str != null) { 945 try { 946 retval = new BigDecimal (str); 947 } 948 catch (NumberFormatException e) { 949 throw new SQLException("Could not convert '" + str + "' to " + 950 "a java.math.BigDecimal object"); 951 } 952 } 953 return retval; 954 } 955 956 967 public BigDecimal getBigDecimal(String columnName) throws SQLException { 968 BigDecimal retval = null; 969 String str = getString(columnName); 970 if(str != null) { 971 try { 972 retval = new BigDecimal (str); 973 } 974 catch (NumberFormatException e) { 975 throw new SQLException("Could not convert '" + str + "' to " + 976 "a java.math.BigDecimal object"); 977 } 978 } 979 return retval; 980 } 981 982 986 995 public boolean isBeforeFirst() throws SQLException { 996 throw new UnsupportedOperationException ( 997 "ResultSet.isBeforeFirst() unsupported"); 998 } 999 1000 1009public boolean isAfterLast() throws SQLException { 1010 throw new UnsupportedOperationException ( 1011 "ResultSet.isAfterLast() unsupported"); 1012} 1013 1014 1022public boolean isFirst() throws SQLException { 1023 throw new UnsupportedOperationException ( 1024 "ResultSet.isFirst() unsupported"); 1025} 1026 1027 1039public boolean isLast() throws SQLException { 1040 throw new UnsupportedOperationException ( 1041 "ResultSet.isLast() unsupported"); 1042} 1043 1044 1052public void beforeFirst() throws SQLException { 1053 throw new UnsupportedOperationException ( 1054 "ResultSet.beforeFirst() unsupported"); 1055} 1056 1057 1064public void afterLast() throws SQLException { 1065 throw new UnsupportedOperationException ( 1066 "ResultSet.afterLast() unsupported"); 1067} 1068 1069 1078public boolean first() throws SQLException { 1079 throw new UnsupportedOperationException ( 1080 "ResultSet.first() unsupported"); 1081} 1082 1083 1092public boolean last() throws SQLException { 1093 throw new UnsupportedOperationException ("ResultSet.last() unsupported"); 1094} 1095 1096 1103public int getRow() throws SQLException { 1104 throw new UnsupportedOperationException ( 1105 "ResultSet.getRow() unsupported"); 1106} 1107 1108 1141public boolean absolute(int row) throws SQLException { 1142 throw new UnsupportedOperationException ( 1143 "ResultSet.absolute() unsupported"); 1144} 1145 1146 1167public boolean relative(int rows) throws SQLException { 1168 throw new UnsupportedOperationException ( 1169 "ResultSet.relative() unsupported"); 1170} 1171 1172 1181public boolean previous() throws SQLException { 1182 throw new UnsupportedOperationException ( 1183 "ResultSet.previous() unsupported"); 1184} 1185 1186 1190 1205public void setFetchDirection(int direction) throws SQLException { 1206 throw new UnsupportedOperationException ( 1207 "ResultSet.setFetchDirection(int) unsupported"); 1208} 1209 1210 1219public int getFetchDirection() throws SQLException { 1220 throw new UnsupportedOperationException ( 1221 "ResultSet.getFetchDirection() unsupported"); 1222} 1223 1224 1237public void setFetchSize(int rows) throws SQLException { 1238 throw new UnsupportedOperationException ( 1239 "ResultSet.setFetchSize(int) unsupported"); 1240} 1241 1242 1250public int getFetchSize() throws SQLException { 1251 throw new UnsupportedOperationException ( 1252 "ResultSet.getFetchSize() unsupported"); 1253} 1254 1255 1265public int getType() throws SQLException { 1266 throw new UnsupportedOperationException ( 1267 "ResultSet.getType() unsupported"); 1268} 1269 1270 1280public int getConcurrency() throws SQLException { 1281 return CONCUR_READ_ONLY; 1282} 1283 1284 1288 1297public boolean rowUpdated() throws SQLException { 1298 throw new UnsupportedOperationException ( 1299 "ResultSet.rowUpdated() unsupported"); 1300} 1301 1302 1313public boolean rowInserted() throws SQLException { 1314 throw new UnsupportedOperationException ( 1315 "ResultSet.rowInserted() unsupported"); 1316} 1317 1318 1330public boolean rowDeleted() throws SQLException { 1331 throw new UnsupportedOperationException ( 1332 "ResultSet.rowDeleted() unsupported"); 1333} 1334 1335 1346public void updateNull(int columnIndex) throws SQLException { 1347 throw new UnsupportedOperationException ( 1348 "ResultSet.updateNull() unsupported"); 1349} 1350 1351 1362public void updateBoolean(int columnIndex, boolean x) throws SQLException { 1363 throw new UnsupportedOperationException ( 1364 "ResultSet.updateBoolean() unsupported"); 1365} 1366 1367 1379public void updateByte(int columnIndex, byte x) throws SQLException { 1380 throw new UnsupportedOperationException ( 1381 "ResultSet.updateByte() unsupported"); 1382} 1383 1384 1395public void updateShort(int columnIndex, short x) throws SQLException { 1396 throw new UnsupportedOperationException ( 1397 "ResultSet.updateShort() unsupported"); 1398} 1399 1400 1411public void updateInt(int columnIndex, int x) throws SQLException { 1412 throw new UnsupportedOperationException ( 1413 "ResultSet.updateInt() unsupported"); 1414} 1415 1416 1427public void updateLong(int columnIndex, long x) throws SQLException { 1428 throw new UnsupportedOperationException ( 1429 "ResultSet.updateLong(int, long) unsupported"); 1430} 1431 1432 1443public void updateFloat(int columnIndex, float x) throws SQLException { 1444 throw new UnsupportedOperationException ( 1445 "ResultSet.updateFloat(int, float) unsupported"); 1446} 1447 1448 1459public void updateDouble(int columnIndex, double x) throws SQLException { 1460 throw new UnsupportedOperationException ( 1461 "ResultSet.updateDouble(int, double) unsupported"); 1462} 1463 1464 1476public void updateBigDecimal(int columnIndex, BigDecimal x) 1477 throws SQLException { 1478 throw new UnsupportedOperationException ( 1479 "ResultSet.updateBigDecimal(int, BigDecimal) unsupported"); 1480} 1481 1482 1493public void updateString(int columnIndex, String x) throws SQLException { 1494 throw new UnsupportedOperationException ( 1495 "ResultSet.updateString(int, String) unsupported"); 1496} 1497 1498 1509public void updateBytes(int columnIndex, byte[] x) throws SQLException { 1510 throw new UnsupportedOperationException ( 1511 "ResultSet.updateBytes(int, byte[]) unsupported"); 1512} 1513 1514 1525public void updateDate(int columnIndex, Date x) throws SQLException { 1526 throw new UnsupportedOperationException ( 1527 "ResultSet.updateDate(int, Date) unsupported"); 1528} 1529 1530 1541public void updateTime(int columnIndex, Time x) throws SQLException { 1542 throw new UnsupportedOperationException ( 1543 "ResultSet.updateTime(int, Time) unsupported"); 1544} 1545 1546 1558public void updateTimestamp(int columnIndex, Timestamp x) 1559 throws SQLException { 1560 throw new UnsupportedOperationException ( 1561 "ResultSet.updateTimestamp(int, Timestamp) unsupported"); 1562} 1563 1564 1576public void updateAsciiStream(int columnIndex, InputStream x, int length) 1577 throws SQLException { 1578 throw new UnsupportedOperationException ("ResultSet.updateAsciiStream " + 1579 "(int, InputStream, int) unsupported"); 1580} 1581 1582 1594public void updateBinaryStream(int columnIndex, InputStream x, int length) 1595 throws SQLException { 1596 throw new UnsupportedOperationException ("ResultSet.updateBinaryStream" + 1597 "(int, InputStream, int) unsupported"); 1598} 1599 1600 1612public void updateCharacterStream(int columnIndex, Reader x, int length) 1613 throws SQLException { 1614 throw new UnsupportedOperationException ("ResultSet.updateCharacterStr" + 1615 "eam(int, Reader, int) unsupported"); 1616} 1617 1618 1633public void updateObject(int columnIndex, Object x, int scale) 1634 throws SQLException { 1635 throw new UnsupportedOperationException ( 1636 "ResultSet.udpateObject(int, Object) unsupported"); 1637} 1638 1639 1650public void updateObject(int columnIndex, Object x) throws SQLException { 1651 throw new UnsupportedOperationException ( 1652 "ResultSet.updateObject(int, Object, int) unsupported"); 1653} 1654 1655 1665public void updateNull(String columnName) throws SQLException { 1666 throw new UnsupportedOperationException ( 1667 "ResultSet.updateNull(String) unsupported"); 1668} 1669 1670 1681public void updateBoolean(String columnName, boolean x) 1682 throws SQLException { 1683 throw new UnsupportedOperationException ( 1684 "ResultSet.updateBoolean(String, boolean) unsupported"); 1685} 1686 1687 1698public void updateByte(String columnName, byte x) throws SQLException { 1699 throw new UnsupportedOperationException ( 1700 "ResultSet.updateByte(String, byte) unsupported"); 1701} 1702 1703 1714public void updateShort(String columnName, short x) throws SQLException { 1715 throw new UnsupportedOperationException ( 1716 "ResultSet.updateShort(String, short) unsupported"); 1717} 1718 1719 1730public void updateInt(String columnName, int x) throws SQLException { 1731 throw new UnsupportedOperationException ( 1732 "ResultSet.updateInt(String, int) unsupported"); 1733} 1734 1735 1746public void updateLong(String columnName, long x) throws SQLException { 1747 throw new UnsupportedOperationException ( 1748 "ResultSet.updateLong(String, long) unsupported"); 1749} 1750 1751 1762public void updateFloat(String columnName, float x) throws SQLException { 1763 throw new UnsupportedOperationException ( 1764 "ResultSet.updateFloat(String, float) unsupported"); 1765} 1766 1767 1778public void updateDouble(String columnName, double x) throws SQLException { 1779 throw new UnsupportedOperationException ( 1780 "ResultSet.updateDouble(String, double) unsupported"); 1781} 1782 1783 1795public void updateBigDecimal(String columnName, BigDecimal x) 1796 throws SQLException { 1797 throw new UnsupportedOperationException ( 1798 "ResultSet.updateBigDecimal(String, BigDecimal) unsupported"); 1799} 1800 1801 1812public void updateString(String columnName, String x) throws SQLException { 1813 throw new UnsupportedOperationException ( 1814 "ResultSet.updateString(String, String) unsupported"); 1815} 1816 1817 1829public void updateBytes(String columnName, byte[] x) throws SQLException { 1830 throw new UnsupportedOperationException ( 1831 "ResultSet.updateBytes(String, byte[]) unsupported"); 1832} 1833 1834 1845public void updateDate(String columnName, Date x) throws SQLException { 1846 throw new UnsupportedOperationException ( 1847 "ResultSet.updateDate(String, Date) unsupported"); 1848} 1849 1850 1861public void updateTime(String columnName, Time x) throws SQLException { 1862 throw new UnsupportedOperationException ( 1863 "ResultSet.updateTime(String, Time) unsupported"); 1864} 1865 1866 1878public void updateTimestamp(String columnName, Timestamp x) 1879 throws SQLException { 1880 throw new UnsupportedOperationException ( 1881 "ResultSet.updateTimestamp(String, Timestamp) unsupported"); 1882} 1883 1884 1896public void updateAsciiStream(String columnName, InputStream x, int length) 1897 throws SQLException { 1898 throw new UnsupportedOperationException ("ResultSet.updateAsciiStream" + 1899 "(String, InputStream, int) unsupported"); 1900} 1901 1902 1914public void updateBinaryStream(String columnName, InputStream x, int length) 1915 throws SQLException { 1916 throw new UnsupportedOperationException ("ResultSet.updateBinaryStream" + 1917 "(String, InputStream, int) unsupported"); 1918} 1919 1920 1933public void updateCharacterStream(String columnName, Reader reader, 1934 int length) throws SQLException { 1935 throw new UnsupportedOperationException ("ResultSet.updateCharacterStr" + 1936 "eam(String, Reader, int) unsupported"); 1937} 1938 1939 1954public void updateObject(String columnName, Object x, int scale) 1955 throws SQLException { 1956 throw new UnsupportedOperationException ( 1957 "ResultSet.updateObject(String, Object, int) unsupported"); 1958} 1959 1960 1971public void updateObject(String columnName, Object x) throws SQLException { 1972 throw new UnsupportedOperationException ( 1973 "ResultSet.updateObject(String, Object) unsupported"); 1974} 1975 1976 1986public void insertRow() throws SQLException { 1987 throw new UnsupportedOperationException ( 1988 "ResultSet.insertRow() unsupported"); 1989} 1990 1991 1999public void updateRow() throws SQLException { 2000 throw new UnsupportedOperationException ( 2001 "ResultSet.updateRow() unsupported"); 2002} 2003 2004 2012public void deleteRow() throws SQLException { 2013 throw new UnsupportedOperationException ( 2014 "ResultSet.deleteRow() unsupported"); 2015} 2016 2017 2041public void refreshRow() throws SQLException { 2042 throw new UnsupportedOperationException ( 2043 "ResultSet.refreshRow() unsupported"); 2044} 2045 2046 2060public void cancelRowUpdates() throws SQLException { 2061 throw new UnsupportedOperationException ( 2062 "ResultSet.cancelRowUpdates() unsupported"); 2063} 2064 2065 2085public void moveToInsertRow() throws SQLException { 2086 throw new UnsupportedOperationException ( 2087 "ResultSet.moveToInsertRow() unsupported"); 2088} 2089 2090 2098public void moveToCurrentRow() throws SQLException { 2099 throw new UnsupportedOperationException ( 2100 "ResultSet.moveToeCurrentRow() unsupported"); 2101} 2102 2103 2115public Statement getStatement() throws SQLException { 2116 return statement; 2117} 2118 2119 2136public Object getObject(int i, Map map) throws SQLException { 2137 throw new UnsupportedOperationException ( 2138 "ResultSet.getObject(int, Map) unsupported"); 2139} 2140 2141 2151public Ref getRef(int i) throws SQLException { 2152 throw new UnsupportedOperationException ( 2153 "ResultSet.getRef(int) unsupported"); 2154} 2155 2156 2166public Blob getBlob(int i) throws SQLException { 2167 throw new UnsupportedOperationException ( 2168 "ResultSet.getBlob(int) unsupported"); 2169} 2170 2171 2181public Clob getClob(int i) throws SQLException { 2182 throw new UnsupportedOperationException ( 2183 "ResultSet.getClob(int) unsupported"); 2184} 2185 2186 2196public Array getArray(int i) throws SQLException { 2197 throw new UnsupportedOperationException ( 2198 "ResultSet.getArray(int) unsupported"); 2199} 2200 2201 2217public Object getObject(String colName, Map map) throws SQLException { 2218 throw new UnsupportedOperationException ( 2219 "ResultSet.getObject(String, Map) unsupported"); 2220} 2221 2222 2232public Ref getRef(String colName) throws SQLException { 2233 throw new UnsupportedOperationException ( 2234 "ResultSet.getRef(String) unsupported"); 2235} 2236 2237 2247public Blob getBlob(String colName) throws SQLException { 2248 throw new UnsupportedOperationException ( 2249 "ResultSet.getBlob(String) unsupported"); 2250} 2251 2252 2262public Clob getClob(String colName) throws SQLException { 2263 throw new UnsupportedOperationException ( 2264 "ResultSet.getClob(String) unsupported"); 2265} 2266 2267 2277public Array getArray(String colName) throws SQLException { 2278 throw new UnsupportedOperationException ( 2279 "ResultSet.getArray(String) unsupported"); 2280} 2281 2282 2298public Date getDate(int columnIndex, Calendar cal) throws SQLException { 2299 throw new UnsupportedOperationException ( 2300 "ResultSet.getDate(int, Calendar) unsupported"); 2301} 2302 2303 2320public Date getDate(String columnName, Calendar cal) throws SQLException { 2321 throw new UnsupportedOperationException ( 2322 "ResultSet.getDate(String, Calendar) unsupported"); 2323} 2324 2325 2341public Time getTime(int columnIndex, Calendar cal) throws SQLException { 2342 throw new UnsupportedOperationException ( 2343 "ResultSet.getTime(int, Calendar) unsupported"); 2344} 2345 2346 2362public Time getTime(String columnName, Calendar cal) throws SQLException { 2363 throw new UnsupportedOperationException ( 2364 "ResultSet.getTime(String, Calendar) unsupported"); 2365} 2366 2367 2383public Timestamp getTimestamp(int columnIndex, Calendar cal) 2384 throws SQLException { 2385 throw new UnsupportedOperationException ( 2386 "ResultSet.getTimestamp(int, Calendar) unsupported"); 2387} 2388 2389 2405public Timestamp getTimestamp(String columnName, Calendar cal) 2406 throws SQLException { 2407 throw new UnsupportedOperationException ( 2408 "ResultSet.getTimestamp(String, Calendar) unsupported"); 2409} 2410 2411 2412 2413 2417 public URL getURL(int columnIndex) throws SQLException { 2418 throw new UnsupportedOperationException ("ResultSet.getURL(int) unsupported"); 2419 } 2420 2421 public URL getURL(String columnName) throws SQLException { 2422 throw new UnsupportedOperationException ("ResultSet.getURL(String) unsupported"); 2423 } 2424 2425 public void updateRef(int columnIndex, Ref x) throws SQLException { 2426 throw new UnsupportedOperationException ("ResultSet.updateRef(int,java.sql.Ref) unsupported"); 2427 } 2428 2429 public void updateRef(String columnName, Ref x) throws SQLException { 2430 throw new UnsupportedOperationException ("ResultSet.updateRef(String,java.sql.Ref) unsupported"); 2431 } 2432 2433 public void updateBlob(int columnIndex, Blob x) throws SQLException { 2434 throw new UnsupportedOperationException ("ResultSet.updateBlob(int,java.sql.Blob) unsupported"); 2435 } 2436 2437 public void updateBlob(String columnName, Blob x) throws SQLException { 2438 throw new UnsupportedOperationException ("ResultSet.updateBlob(String,java.sql.Blob) unsupported"); 2439 } 2440 2441 public void updateClob(int columnIndex, Clob x) throws SQLException { 2442 throw new UnsupportedOperationException ("ResultSet.updateClob(int,java.sql.Clob) unsupported"); 2443 } 2444 2445 public void updateClob(String columnName, Clob x) throws SQLException { 2446 throw new UnsupportedOperationException ("ResultSet.updateClob(String,java.sql.Clob) unsupported"); 2447 } 2448 2449 public void updateArray(int columnIndex, Array x) throws SQLException { 2450 throw new UnsupportedOperationException ("ResultSet.updateArray(int,java.sql.Array) unsupported"); 2451 } 2452 2453 public void updateArray(String columnName, Array x) throws SQLException { 2454 throw new UnsupportedOperationException ("ResultSet.updateArray(String,java.sql.Array) unsupported"); 2455 } 2456 2457 2459} 2460 | Popular Tags |