| 1 34 35 package com.sqlmagic.tinysql; 36 37 38 import java.sql.Date ; 39 import java.math.BigDecimal ; 40 import java.math.BigInteger ; 41 import java.sql.ResultSet ; 42 import java.sql.ResultSetMetaData ; 43 import java.sql.SQLException ; 44 import java.sql.SQLWarning ; 45 import java.sql.Statement ; 46 import java.sql.Blob ; 47 import java.sql.Clob ; 48 import java.sql.Ref ; 49 import java.sql.Array ; 50 import java.sql.Time ; 51 import java.sql.Timestamp ; 52 import java.sql.Types ; 53 import java.text.SimpleDateFormat ; 54 import java.util.Calendar ; 55 import java.util.Hashtable ; 56 import java.text.ParsePosition ; 57 58 72 public class tinySQLResultSet implements java.sql.ResultSet { 73 74 private tinySQLStatement statement=(tinySQLStatement)null; 76 private tinySQLPreparedStatement preparedStatement=(tinySQLPreparedStatement)null; 77 78 83 private tsResultSet result; 84 85 90 private tsRow current_row; 91 92 97 private int current_row_index = 0; 98 99 104 private tinySQLResultSetMetaData meta; 105 106 111 private Hashtable column_map = null; 112 113 119 public tinySQLResultSet(tsResultSet res, tinySQLStatement inputStatement) { 120 result = res; 121 this.statement = inputStatement; 122 } 123 public tinySQLResultSet(tsResultSet res, tinySQLPreparedStatement inputStatement) { 124 result = res; 125 this.preparedStatement = inputStatement; 126 } 127 128 136 public synchronized boolean next() throws SQLException { 137 138 try { 139 140 if( result.size() < 1 ) { 144 return false; 145 } 146 147 current_row_index++; 150 current_row = result.rowAt(current_row_index - 1); 154 155 if (current_row == null) 158 { 159 return false; 160 } 161 return true; 162 163 } catch( Exception e ) { 164 throw new SQLException (e.getMessage()); 165 } 166 167 } 168 169 176 public void close() throws SQLException { 177 } 178 179 187 public boolean wasNull() throws SQLException { 188 return false; 189 } 190 191 200 public String getString(int column) throws SQLException { 201 202 if ( current_row == (tsRow)null ) return (String )null; 208 tsColumn col = result.columnAtIndex(column-1); 209 210 return current_row.columnAsString(col); 213 } 214 215 223 public byte getByte(int column) throws SQLException { 224 225 String str = getString(column); 228 229 if( str.equals("") ) { 234 return 0; 235 } else { 236 return (byte)str.charAt(0); 237 } 238 239 } 240 241 249 public boolean getBoolean(int column) throws SQLException { 250 251 try { 252 253 String str = getString(column); 256 257 if( str.equals("") ) return false; 260 261 if( str.equals("0") ) return false; 264 265 return true; 268 269 } catch( Exception e ) { 270 throw new SQLException (e.getMessage()); 271 } 272 } 273 274 283 public short getShort(int column) 284 throws SQLException  285 { 286 287 String str = getString(column); 290 291 if( str == null ) return 0; 294 295 try 298 { 299 return ( short )( Integer.valueOf( str.trim( )).intValue( )); 300 } 301 catch( NumberFormatException e ) 302 { 303 throw new SQLException ( "tinySQL invalid short Number: " + e.getMessage( )); 304 } 305 } 306 307 316 public int getInt(int column) 317 throws SQLException  318 { 319 int dotAt; 320 321 String str = getString(column); 324 325 if( str == null ) return Integer.MIN_VALUE; 328 329 dotAt = str.indexOf("."); 332 if ( dotAt > -1 ) str = str.substring(0,dotAt); 333 try 334 { 335 return Integer.valueOf( str.trim( )).intValue( ); 336 } 337 catch( NumberFormatException e ) 338 { 339 return Integer.MIN_VALUE; 340 } 341 } 342 343 352 public long getLong(int column) 353 throws SQLException  354 { 355 356 String str = getString(column); 359 360 if( str == null ) return 0; 362 363 try 366 { 367 return Long.valueOf( str.trim( )).longValue( ); 368 } 369 catch( NumberFormatException e ) 370 { 371 throw new SQLException ( "tinySQL invalid Long Number: " + e.getMessage( )); 372 } 373 } 374 375 384 public float getFloat(int column) 385 throws SQLException  386 { 387 388 String str = getString(column); 391 392 if( str == null ) return 0; 395 396 try 399 { 400 return Float.valueOf( str.trim( )).floatValue( ); 401 } 402 catch( NumberFormatException e ) 403 { 404 throw new SQLException ( "Invalid Number: " + e.getMessage( )); 405 } 406 } 407 408 417 public double getDouble(int column) 418 throws SQLException  419 { 420 421 String str = getString(column); 424 425 if( str == null ) return 0; 428 429 try 432 { 433 return Double.valueOf( str.trim( )).doubleValue( ); 434 } 435 catch( NumberFormatException e ) 436 { 437 throw new SQLException ( "tinySQL invalid double Number: " + e.getMessage( )); 438 } 439 } 440 441 451 public BigDecimal getBigDecimal(int column, int scale) 452 throws SQLException  453 { 454 455 String str = getString(column); 458 459 if( str == null ) 462 return new BigDecimal (new BigInteger ("0"), scale); 463 else 464 return new BigDecimal ( new BigInteger ( str.trim( )), scale ); 465 } 466 467 476 public byte[] getBytes(int column) throws SQLException { 477 478 String str = getString(column); 481 482 if( str == null ) return null; 483 try { 484 return str.getBytes(str); 485 } 486 catch( java.io.UnsupportedEncodingException e ) { 487 throw new java.sql.SQLException ("Bad bytes!: " + e.getMessage()); 488 } 489 490 } 491 492 501 public java.sql.Date getDate(int column) 502 throws SQLException { 503 504 String str = getString(column); 507 508 if( str == null ) return null; 511 512 518 try { 519 SimpleDateFormat fmt = new SimpleDateFormat ("yyyyMMdd"); 520 java.util.Date d = fmt.parse(str, new ParsePosition (0)); 521 522 return new java.sql.Date (d.getTime()); 523 524 } catch( Exception e ) { 525 throw new SQLException ("Date format error: " + e.getMessage()); 526 } 527 528 } 529 530 540 public java.sql.Time getTime(int column) 541 throws SQLException { 542 543 String str = getString(column); 546 547 if( str == null ) return null; 550 551 try { 555 556 SimpleDateFormat fmt = new SimpleDateFormat ("EEE MMM dd hh:mm:ss z yyyy"); 557 java.util.Date d = fmt.parse(str, new ParsePosition (0)); 558 559 return new java.sql.Time (d.getTime()); 560 561 } catch( Exception e ) { 562 throw new SQLException ("Data format error: " + e.getMessage()); 563 } 564 } 565 566 573 public java.sql.Timestamp getTimestamp(int column) 574 throws SQLException { 575 576 String str = getString(column); 579 580 if( str == null ) return null; 583 584 try { 588 589 SimpleDateFormat fmt = new SimpleDateFormat ("EEE MMM dd hh:mm:ss z yyyy"); 590 java.util.Date d = fmt.parse(str, new ParsePosition (0)); 591 592 return new java.sql.Timestamp (d.getTime()); 593 594 } catch( Exception e ) { 595 throw new SQLException ("Data format error: " + e.getMessage()); 596 } 597 598 } 599 600 605 public java.io.InputStream getAsciiStream(int column) 606 throws SQLException { 607 return null; 608 } 609 610 616 public java.io.InputStream getUnicodeStream(int column) 617 throws SQLException { 618 return null; 619 } 620 621 626 public java.io.InputStream getBinaryStream(int column) 627 throws SQLException { 628 return null; 629 } 630 631 632 640 public String getCursorName() throws SQLException { 641 return ""; 642 } 643 644 652 public ResultSetMetaData getMetaData() 653 throws SQLException { 654 655 if( meta == null ) { 661 meta = new tinySQLResultSetMetaData(result); 662 } 663 664 return meta; 667 } 668 669 680 public Object getObject(int column, int type, int scale) 681 throws SQLException { 682 683 switch(type) { 684 case Types.BIT: 685 return new Boolean (getBoolean(column)); 686 687 case Types.TINYINT: 688 return new Character ((char)getInt(column)); 689 690 case Types.SMALLINT: 691 return new Integer (getShort(column)); 692 693 case Types.INTEGER: 694 return new Integer (getInt(column)); 695 696 case Types.BIGINT: 697 return new Long (getLong(column)); 698 699 case Types.FLOAT: 700 return new Float (getFloat(column)); 701 702 case Types.REAL: 703 return new Float (getFloat(column)); 704 705 case Types.DOUBLE: 706 return new Double (getDouble(column)); 707 708 case Types.NUMERIC: 709 return getBigDecimal(column, scale); 710 711 case Types.DECIMAL: 712 return getBigDecimal(column, scale); 713 714 case Types.CHAR: 715 return getString(column); 716 717 case Types.VARCHAR: 718 return getString(column); 719 720 case Types.LONGVARCHAR: 721 return getString(column); 722 723 case Types.DATE: 724 return getDate(column); 725 726 case Types.TIME: 727 return getTime(column); 728 729 case Types.TIMESTAMP: 730 return getTimestamp(column); 731 732 case Types.BINARY: 733 return getBytes(column); 734 735 case Types.VARBINARY: 736 return getBytes(column); 737 738 case Types.LONGVARBINARY: 739 return getBytes(column); 740 741 default: 742 return null; 743 } 744 } 745 746 751 public Object getObject(int column, int type) 752 throws SQLException { 753 return getObject(column, type, 0); 754 } 755 756 761 public Object getObject(int column) throws SQLException { 762 ResultSetMetaData meta = getMetaData(); 763 int type = meta.getColumnType(column); 764 765 return getObject(column, type); 766 } 767 768 777 public String getString(String name) throws SQLException { 778 779 return getString(findColumn(name)); 780 781 } 782 783 788 public byte getByte(String columnName) throws SQLException { 789 790 return getByte(findColumn(columnName)); 791 792 } 793 794 801 public boolean getBoolean(String columnName) throws SQLException { 802 803 return getBoolean(findColumn(columnName)); 804 805 } 806 807 814 public short getShort(String columnName) throws SQLException { 815 816 return getShort(findColumn(columnName)); 817 818 } 819 820 827 public int getInt(String columnName) throws SQLException { 828 829 return getInt(findColumn(columnName)); 830 831 } 832 833 840 public long getLong(String columnName) throws SQLException { 841 842 return getLong(findColumn(columnName)); 843 844 } 845 846 853 public float getFloat(String columnName) throws SQLException { 854 855 return getFloat(findColumn(columnName)); 856 857 } 858 859 866 public double getDouble(String columnName) throws SQLException { 867 868 return getDouble(findColumn(columnName)); 869 870 } 871 872 879 public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException { 880 881 return getBigDecimal(findColumn(columnName), scale); 882 883 } 884 885 892 public byte[] getBytes(String columnName) throws SQLException { 893 894 return getBytes(findColumn(columnName)); 895 896 } 897 898 905 public java.sql.Date getDate(String columnName) throws SQLException { 906 907 return getDate(findColumn(columnName)); 908 909 } 910 911 918 public java.sql.Time getTime(String columnName) throws SQLException { 919 920 return getTime(findColumn(columnName)); 921 922 } 923 924 931 public java.sql.Timestamp getTimestamp(String columnName) 932 throws SQLException { 933 934 return getTimestamp(findColumn(columnName)); 935 936 } 937 938 944 public java.io.InputStream getAsciiStream(String columnName) 945 throws SQLException { 946 947 return getAsciiStream(findColumn(columnName)); 948 949 } 950 951 958 public java.io.InputStream getUnicodeStream(String columnName) 959 throws SQLException { 960 961 return getUnicodeStream(findColumn(columnName)); 962 963 } 964 965 971 public java.io.InputStream getBinaryStream(String columnName) 972 throws SQLException { 973 974 return getBinaryStream(findColumn(columnName)); 975 976 } 977 978 986 public Object getObject(String columnName, int sqlType, int scale) 987 throws SQLException { 988 989 return getObject(findColumn(columnName), sqlType, scale); 990 991 } 992 993 998 public Object getObject(String columnName, int type) 999 throws SQLException { 1000 1001 return getObject(findColumn(columnName), type, 0); 1002 1003 } 1004 1005 1010 public Object getObject(String columnName) throws SQLException { 1011 return getObject(findColumn(columnName)); 1012 } 1013 1014 1026 public int findColumn(String name) throws SQLException { 1027 1028 Integer num; 1029 1030 if( column_map == null ) { 1033 1034 int i, maxi; 1035 String columnIndexName; 1036 1037 column_map = new Hashtable (maxi = result.numcols()); 1042 1043 for(i=0; i<maxi; i++) { 1046 tsColumn tsc = result.columnAtIndex(i); 1047 columnIndexName = tsc.name; 1048 if ( tsc.alias != (String )null ) columnIndexName = tsc.alias; 1049 column_map.put(columnIndexName, new Integer (i)); 1050 } 1051 } 1052 1053 1057 num = (Integer )column_map.get(name); 1061 if( num == null ) { 1062 throw new SQLException ("Invalid column name: " + name); 1063 } 1064 1065 return num.intValue() + 1; 1068 1069 } 1070 1071 1078 public SQLWarning getWarnings() throws SQLException { 1079 return null; 1080 } 1081 1082 1089 public void clearWarnings() throws SQLException { 1090 } 1091 1092 1093 1095 1099 1105 public java.io.Reader getCharacterStream(int columnIndex) throws SQLException { 1106 return null; 1107 } 1108 1109 1116 public java.io.Reader getCharacterStream(String columnName) throws SQLException { 1117 return null; 1118 } 1119 1120 1131 public BigDecimal getBigDecimal(int columnIndex) throws SQLException { 1132 return null; 1133 } 1134 1135 1146 public BigDecimal getBigDecimal(String columnName) throws SQLException { 1147 return null; 1148 } 1149 1150 1154 1164 public boolean isBeforeFirst() throws SQLException { 1165 return false; 1166 } 1167 1168 1178 public boolean isAfterLast() throws SQLException { 1179 return false; 1180 } 1181 1182 1190 public boolean isFirst() throws SQLException { 1191 return false; 1192 } 1193 1194 1206 public boolean isLast() throws SQLException { 1207 return false; 1208 } 1209 1210 1219 public void beforeFirst() throws SQLException { 1220 return ; 1221 } 1222 1223 1232 public void afterLast() throws SQLException { 1233 return ; 1234 } 1235 1236 1246 public boolean first() throws SQLException { 1247 return false; 1248 } 1249 1250 1260 public boolean last() throws SQLException { 1261 return false; 1262 } 1263 1264 1273 public int getRow() throws SQLException { 1274 return 0; 1275 } 1276 1277 1306 public boolean absolute( int row ) throws SQLException { 1307 return false; 1308 } 1309 1310 1329 public boolean relative( int rows ) throws SQLException { 1330 return false; 1331 } 1332 1333 1346 public boolean previous() throws SQLException { 1347 return false; 1348 } 1349 1350 1354 1360 int FETCH_FORWARD = 1000; 1361 1362 1368 int FETCH_REVERSE = 1001; 1369 1370 1375 int FETCH_UNKNOWN = 1002; 1376 1377 1389 public void setFetchDirection(int direction) throws SQLException { 1390 return ; 1391 } 1392 1393 1401 public int getFetchDirection() throws SQLException { 1402 return FETCH_FORWARD; 1403 } 1404 1405 1420 public void setFetchSize(int rows) throws SQLException { 1421 if (rows <= 0) 1422 throw new SQLException ("Condition 0 <= rows <= this.getMaxRows() is not satisfied"); 1423 1424 result.setFetchSize (rows); 1425 } 1426 1427 1435 public int getFetchSize() throws SQLException { 1436 return result.getFetchSize (); 1437 } 1438 1439 1444 int TYPE_FORWARD_ONLY = 1003; 1445 1446 1452 int TYPE_SCROLL_INSENSITIVE = 1004; 1453 1454 1459 int TYPE_SCROLL_SENSITIVE = 1005; 1460 1461 1471 public int getType() throws SQLException { 1472 return result.getType (); 1473 } 1474 1475 1481 int CONCUR_READ_ONLY = 1007; 1482 1483 1489 int CONCUR_UPDATABLE = 1008; 1490 1491 1500 public int getConcurrency() throws SQLException { 1501 return CONCUR_READ_ONLY; 1502 } 1503 1504 1508 1520 public boolean rowUpdated() throws SQLException { 1521 return false; 1522 } 1523 1524 1535 public boolean rowInserted() throws SQLException { 1536 return false; 1537 } 1538 1539 1552 public boolean rowDeleted() throws SQLException { 1553 return false; 1554 } 1555 1556 1569 public void updateNull(int columnIndex) throws SQLException { 1570 throw new SQLException ("tinySQL does not support updateNull."); 1571 } 1572 1573 1587 public void updateBoolean(int columnIndex, boolean x) throws SQLException { 1588 throw new SQLException ("tinySQL does not support updateBoolean."); 1589 } 1590 1591 1605 public void updateByte(int columnIndex, byte x) throws SQLException { 1606 throw new SQLException ("tinySQL does not support updateByte."); 1607 } 1608 1609 1623 public void updateShort(int columnIndex, short x) throws SQLException { 1624 throw new SQLException ("tinySQL does not support updateShort."); 1625 } 1626 1627 1641 public void updateInt(int columnIndex, int x) throws SQLException { 1642 throw new SQLException ("tinySQL does not support updateInt."); 1643 } 1644 1645 1659 public void updateLong(int columnIndex, long x) throws SQLException { 1660 throw new SQLException ("tinySQL does not support updateLong."); 1661 } 1662 1663 1677 public void updateFloat(int columnIndex, float x) throws SQLException { 1678 throw new SQLException ("tinySQL does not support updateFloat."); 1679 } 1680 1681 1695 public void updateDouble(int columnIndex, double x) throws SQLException { 1696 throw new SQLException ("tinySQL does not support updateDouble."); 1697 } 1698 1699 1713 public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException { 1714 throw new SQLException ("tinySQL does not support updateBigDecimal."); 1715 } 1716 1717 1731 public void updateString(int columnIndex, String x) throws SQLException { 1732 throw new SQLException ("tinySQL does not support updateString."); 1733 } 1734 1735 1749 public void updateBytes(int columnIndex, byte x[]) throws SQLException { 1750 throw new SQLException ("tinySQL does not support updateBytes."); 1751 } 1752 1753 1767 public void updateDate(int columnIndex, java.sql.Date x) throws SQLException { 1768 throw new SQLException ("tinySQL does not support updateDate."); 1769 } 1770 1771 1785 public void updateTime(int columnIndex, java.sql.Time x) throws SQLException { 1786 throw new SQLException ("tinySQL does not support updateTime."); 1787 } 1788 1789 1803 public void updateTimestamp(int columnIndex, java.sql.Timestamp x) 1804 throws SQLException { 1805 throw new SQLException ("tinySQL does not support updateTimestamp."); 1806 } 1807 1808 1823 public void updateAsciiStream(int columnIndex, 1824 java.io.InputStream x, 1825 int length) throws SQLException { 1826 throw new SQLException ("tinySQL does not support updateAsciiStream."); 1827 } 1828 1829 1844 public void updateBinaryStream(int columnIndex, 1845 java.io.InputStream x, 1846 int length) throws SQLException { 1847 throw new SQLException ("tinySQL does not support updateBinaryStream."); 1848 } 1849 1850 1865 public void updateCharacterStream(int columnIndex, 1866 java.io.Reader x, 1867 int length) throws SQLException { 1868 throw new SQLException ("tinySQL does not support updateCharacterStream."); 1869 } 1870 1871 1888 public void updateObject(int columnIndex, Object x, int scale) 1889 throws SQLException { 1890 throw new SQLException ("tinySQL does not support updateObject."); 1891 } 1892 1893 1907 public void updateObject(int columnIndex, Object x) throws SQLException { 1908 throw new SQLException ("tinySQL does not support updateObject."); 1909 } 1910 1911 1924 public void updateNull(String columnName) throws SQLException { 1925 throw new SQLException ("tinySQL does not support updateNull."); 1926 } 1927 1928 1942 public void updateBoolean(String columnName, boolean x) throws SQLException { 1943 throw new SQLException ("tinySQL does not support updateBoolean."); 1944 } 1945 1946 1960 public void updateByte(String columnName, byte x) throws SQLException { 1961 throw new SQLException ("tinySQL does not support updateByte."); 1962 } 1963 1964 1978 public void updateShort(String columnName, short x) throws SQLException { 1979 throw new SQLException ("tinySQL does not support updateShort."); 1980 } 1981 1982 1996 public void updateInt(String columnName, int x) throws SQLException { 1997 throw new SQLException ("tinySQL does not support updateInt."); 1998 } 1999 2000 2014 public void updateLong(String columnName, long x) throws SQLException { 2015 throw new SQLException ("tinySQL does not support updateLong."); 2016 } 2017 2018 2032 public void updateFloat(String columnName, float x) throws SQLException { 2033 throw new SQLException ("tinySQL does not support updateFloat."); 2034 } 2035 2036 2050 public void updateDouble(String columnName, double x) throws SQLException { 2051 throw new SQLException ("tinySQL does not support updateDouble."); 2052 } 2053 2054 2068 public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException { 2069 throw new SQLException ("tinySQL does not support updateDecimal."); 2070 } 2071 2072 2086 public void updateString(String columnName, String x) throws SQLException { 2087 throw new SQLException ("tinySQL does not support updateString."); 2088 } 2089 2090 2104 public void updateBytes(String columnName, byte x[]) throws SQLException { 2105 throw new SQLException ("tinySQL does not support updateBytes."); 2106 } 2107 2108 2122 public void updateDate(String columnName, java.sql.Date x) throws SQLException { 2123 throw new SQLException ("tinySQL does not support updateDate."); 2124 } 2125 2126 2140 public void updateTime(String columnName, java.sql.Time x) throws SQLException { 2141 throw new SQLException ("tinySQL does not support updateTime."); 2142 } 2143 2144 2158 public void updateTimestamp(String columnName, java.sql.Timestamp x) 2159 throws SQLException { 2160 throw new SQLException ("tinySQL does not support updateTimestamp."); 2161 } 2162 2163 2178 public void updateAsciiStream(String columnName, 2179 java.io.InputStream x, 2180 int length) throws SQLException { 2181 throw new SQLException ("tinySQL does not support updateAsciiStream."); 2182 } 2183 2184 2199 public void updateBinaryStream(String columnName, 2200 java.io.InputStream x, 2201 int length) throws SQLException { 2202 throw new SQLException ("tinySQL does not support updateBinaryStream."); 2203 } 2204 2205 2220 public void updateCharacterStream(String columnName, 2221 java.io.Reader reader, 2222 int length) throws SQLException { 2223 throw new SQLException ("tinySQL does not support updateCharacter."); 2224 } 2225 2226 2243 public void updateObject(String columnName, Object x, int scale) 2244 throws SQLException { 2245 throw new SQLException ("tinySQL does not support updateObject."); 2246 } 2247 2248 2262 public void updateObject(String columnName, Object x) throws SQLException { 2263 throw new SQLException ("tinySQL does not support updateObject."); 2264 } 2265 2266 2276 public void insertRow() throws SQLException { 2277 throw new SQLException ("tinySQL does not support insertRow."); 2278 } 2279 2280 2289 public void updateRow() throws SQLException { 2290 throw new SQLException ("tinySQL does not support updateRow."); 2291 } 2292 2293 2302 public void deleteRow() throws SQLException { 2303 throw new SQLException ("tinySQL does not support deleteRow."); 2304 } 2305 2306 2329 public void refreshRow() throws SQLException { 2330 throw new SQLException ("tinySQL does not support RefreshRow."); 2331 } 2332 2333 2347 public void cancelRowUpdates() throws SQLException { 2348 throw new SQLException ("tinySQL does not support cancelRowUpdate."); 2349 } 2350 2351 2373 public void moveToInsertRow() throws SQLException { 2374 throw new SQLException ("tinySQL does not support moveToInsertRow."); 2375 } 2376 2377 2387 public void moveToCurrentRow() throws SQLException { 2388 throw new SQLException ("tinySQL does not support moveToCurrentRow."); 2389 } 2390 2391 2402 public Statement getStatement() throws SQLException { 2403 return statement; 2404 } 2405 2406 2418 public Object getObject(int i, java.util.Map map) throws SQLException { 2419 throw new SQLException ("tinySQL does not support getObject."); 2420 } 2421 2422 2430 public Ref getRef(int i) throws SQLException { 2431 throw new SQLException ("tinySQL does not support getRef."); 2432 } 2433 2434 2443 public Blob getBlob(int i) throws SQLException { 2444 throw new SQLException ("tinySQL does not support getBlob."); 2445 } 2446 2447 2456 public Clob getClob(int i) throws SQLException { 2457 throw new SQLException ("tinySQL does not support getClob."); 2458 } 2459 2460 2469 public Array getArray(int i) throws SQLException { 2470 throw new SQLException ("tinySQL does not support getArray."); 2471 } 2472 2473 2484 public Object getObject(String colName, java.util.Map map) throws SQLException { 2485 throw new SQLException ("tinySQL does not support getObject."); 2486 } 2487 2488 2497 public Ref getRef(String colName) throws SQLException { 2498 throw new SQLException ("tinySQL does not support getRef."); 2499 } 2500 2501 2510 public Blob getBlob(String colName) throws SQLException { 2511 throw new SQLException ("tinySQL does not support getBlob."); 2512 } 2513 2514 2523 public Clob getClob(String colName) throws SQLException { 2524 throw new SQLException ("tinySQL does not support getClob."); 2525 } 2526 2527 2536 public Array getArray(String colName) throws SQLException { 2537 throw new SQLException ("tinySQL does not support getArray."); 2538 } 2539 2540 2553 public java.sql.Date getDate(int columnIndex, Calendar cal) throws SQLException { 2554 throw new SQLException ("tinySQL does not support getDate."); 2555 } 2556 2557 2568 public java.sql.Date getDate(String columnName, Calendar cal) throws SQLException { 2569 throw new SQLException ("tinySQL does not support getDate."); 2570 } 2571 2572 2583 public java.sql.Time getTime(int columnIndex, Calendar cal) throws SQLException { 2584 throw new SQLException ("tinySQL does not support getTime."); 2585 } 2586 2587 2598 public java.sql.Time getTime(String columnName, Calendar cal) throws SQLException { 2599 throw new SQLException ("tinySQL does not support getTime."); 2600 } 2601 2602 2613 public java.sql.Timestamp getTimestamp(int columnIndex, Calendar cal) 2614 throws SQLException { 2615 throw new SQLException ("tinySQL does not support getTimestamp."); 2616 } 2617 2618 2629 public java.sql.Timestamp getTimestamp(String columnName, Calendar cal) 2630 throws SQLException { 2631 throw new SQLException ("tinySQL does not support getTimestamp."); 2632 } 2633 2634} 2635 | Popular Tags |