1 5 package org.h2.tools; 6 7 import java.io.InputStream ; 8 import java.io.Reader ; 9 import java.math.BigDecimal ; 10 import java.net.URL ; 11 import java.sql.*; 12 import java.util.ArrayList ; 13 import java.util.Calendar ; 14 import java.util.Map ; 15 16 34 public class SimpleResultSet implements ResultSet, ResultSetMetaData { 35 36 private ArrayList rows; 37 private Object [] currentRow; 38 private int rowId = -1; 39 private boolean wasNull; 40 private SimpleRowSource source; 41 private ArrayList columns = new ArrayList (); 42 43 private static class Column { 44 String name; 45 int sqlType; 46 int precision; 47 int scale; 48 } 49 50 53 public SimpleResultSet() { 54 rows = new ArrayList (); 55 } 56 57 63 public SimpleResultSet(SimpleRowSource source) { 64 this.source = source; 65 } 66 67 76 public void addColumn(String name, int sqlType, int precision, int scale) throws SQLException { 77 if (rows != null && rows.size() > 0) { 78 throw new SQLException("Cannot add a column after adding rows", "21S02"); 79 } 80 if (name == null) { 81 name = "C" + (columns.size() + 1); 82 } 83 Column column = new Column(); 84 column.name = name; 85 column.sqlType = sqlType; 86 column.precision = precision; 87 column.scale = scale; 88 columns.add(column); 89 } 90 91 96 public void addRow(Object [] row) throws SQLException { 97 if(rows == null) { 98 throw new SQLException("Cannot add a row when using RowSource", "21S02"); 99 } 100 rows.add(row); 101 } 102 103 108 public int getConcurrency() throws SQLException { 109 return ResultSet.CONCUR_READ_ONLY; 110 } 111 112 117 public int getFetchDirection() throws SQLException { 118 return ResultSet.FETCH_FORWARD; 119 } 120 121 126 public int getFetchSize() throws SQLException { 127 return 0; 128 } 129 130 135 public int getRow() throws SQLException { 136 return rowId + 1; 137 } 138 139 144 public int getType() throws SQLException { 145 return ResultSet.TYPE_FORWARD_ONLY; 146 } 147 148 151 public void close() throws SQLException { 152 currentRow = null; 153 rows = null; 154 columns = null; 155 rowId = -1; 156 if(source != null) { 157 source.close(); 158 source = null; 159 } 160 } 161 162 167 public boolean next() throws SQLException { 168 if (source != null) { 169 rowId++; 170 currentRow = source.readRow(); 171 if(currentRow != null) { 172 return true; 173 } 174 } else if (rows != null && rowId < rows.size()) { 175 rowId++; 176 if (rowId < rows.size()) { 177 currentRow = (Object []) rows.get(rowId); 178 return true; 179 } 180 } 181 close(); 182 return false; 183 } 184 185 190 public void beforeFirst() throws SQLException { 191 rowId = -1; 192 if(source != null) { 193 source.reset(); 194 } 195 } 196 197 202 public boolean wasNull() throws SQLException { 203 return wasNull; 204 } 205 206 211 public byte getByte(int columnIndex) throws SQLException { 212 Number v = (Number ) get(columnIndex); 213 return v == null ? 0 : v.byteValue(); 214 } 215 216 221 public double getDouble(int columnIndex) throws SQLException { 222 Number v = (Number ) get(columnIndex); 223 return v == null ? 0 : v.doubleValue(); 224 } 225 226 231 public float getFloat(int columnIndex) throws SQLException { 232 Number v = (Number ) get(columnIndex); 233 return v == null ? 0 : v.floatValue(); 234 } 235 236 241 public int getInt(int columnIndex) throws SQLException { 242 Number v = (Number ) get(columnIndex); 243 return v == null ? 0 : v.intValue(); 244 } 245 246 251 public long getLong(int columnIndex) throws SQLException { 252 Number v = (Number ) get(columnIndex); 253 return v == null ? 0 : v.longValue(); 254 } 255 256 261 public short getShort(int columnIndex) throws SQLException { 262 Number v = (Number ) get(columnIndex); 263 return v == null ? 0 : v.shortValue(); 264 } 265 266 271 public boolean getBoolean(int columnIndex) throws SQLException { 272 Boolean v = (Boolean ) get(columnIndex); 273 return v == null ? false : v.booleanValue(); 274 } 275 276 281 public byte[] getBytes(int columnIndex) throws SQLException { 282 return (byte[]) get(columnIndex); 283 } 284 285 290 public Object getObject(int columnIndex) throws SQLException { 291 return get(columnIndex); 292 } 293 294 299 public String getString(int columnIndex) throws SQLException { 300 Object o = get(columnIndex); 301 return o == null ? null : o.toString(); 302 } 303 304 309 public byte getByte(String columnName) throws SQLException { 310 Number v = (Number ) get(columnName); 311 return v == null ? 0 : v.byteValue(); 312 } 313 314 319 public double getDouble(String columnName) throws SQLException { 320 Number v = (Number ) get(columnName); 321 return v == null ? 0 : v.doubleValue(); 322 } 323 324 329 public float getFloat(String columnName) throws SQLException { 330 Number v = (Number ) get(columnName); 331 return v == null ? 0 : v.floatValue(); 332 } 333 334 341 public int findColumn(String columnName) throws SQLException { 342 for (int i = 0; columnName != null && columns != null && i < columns.size(); i++) { 343 if (columnName.equalsIgnoreCase(getColumn(i).name)) { 344 return i + 1; 345 } 346 } 347 throw new SQLException("Column not found: " + columnName, "42S22"); 348 } 349 350 355 public int getInt(String columnName) throws SQLException { 356 Number v = (Number ) get(columnName); 357 return v == null ? 0 : v.intValue(); 358 } 359 360 365 public long getLong(String columnName) throws SQLException { 366 Number v = (Number ) get(columnName); 367 return v == null ? 0 : v.longValue(); 368 } 369 370 375 public short getShort(String columnName) throws SQLException { 376 Number v = (Number ) get(columnName); 377 return v == null ? 0 : v.shortValue(); 378 } 379 380 385 public boolean getBoolean(String columnName) throws SQLException { 386 Boolean v = (Boolean ) get(columnName); 387 return v == null ? false : v.booleanValue(); 388 } 389 390 395 public byte[] getBytes(String columnName) throws SQLException { 396 return (byte[]) get(columnName); 397 } 398 399 404 public BigDecimal getBigDecimal(int columnIndex) throws SQLException { 405 return (BigDecimal ) get(columnIndex); 406 } 407 408 413 public Date getDate(int columnIndex) throws SQLException { 414 return (Date) get(columnIndex); 415 } 416 417 422 public ResultSetMetaData getMetaData() throws SQLException { 423 return this; 424 } 425 426 431 public SQLWarning getWarnings() throws SQLException { 432 return null; 433 } 434 435 440 public Statement getStatement() throws SQLException { 441 return null; 442 } 443 444 449 public Time getTime(int columnIndex) throws SQLException { 450 return (Time) get(columnIndex); 451 } 452 453 458 public Timestamp getTimestamp(int columnIndex) throws SQLException { 459 return (Timestamp) get(columnIndex); 460 } 461 462 467 public Object getObject(String columnName) throws SQLException { 468 return get(columnName); 469 } 470 471 476 public String getString(String columnName) throws SQLException { 477 Object o = get(columnName); 478 return o == null ? null : o.toString(); 479 } 480 481 486 public BigDecimal getBigDecimal(String columnName) throws SQLException { 487 return (BigDecimal ) get(columnName); 488 } 489 490 495 public Date getDate(String columnName) throws SQLException { 496 return (Date) get(columnName); 497 } 498 499 504 public Time getTime(String columnName) throws SQLException { 505 return (Time) get(columnName); 506 } 507 508 513 public Timestamp getTimestamp(String columnName) throws SQLException { 514 return (Timestamp) get(columnName); 515 } 516 517 519 524 public int getColumnCount() throws SQLException { 525 return columns.size(); 526 } 527 528 533 public int getColumnDisplaySize(int columnIndex) throws SQLException { 534 return 15; 535 } 536 537 542 public int getColumnType(int columnIndex) throws SQLException { 543 return getColumn(columnIndex - 1).sqlType; 544 } 545 546 551 public int getPrecision(int columnIndex) throws SQLException { 552 return getColumn(columnIndex - 1).precision; 553 } 554 555 560 public int getScale(int columnIndex) throws SQLException { 561 return getColumn(columnIndex - 1).scale; 562 } 563 564 569 public int isNullable(int columnIndex) throws SQLException { 570 return ResultSetMetaData.columnNullableUnknown; 571 } 572 573 578 public boolean isAutoIncrement(int columnIndex) throws SQLException { 579 return false; 580 } 581 582 587 public boolean isCaseSensitive(int columnIndex) throws SQLException { 588 return true; 589 } 590 591 596 public boolean isCurrency(int columnIndex) throws SQLException { 597 return false; 598 } 599 600 605 public boolean isDefinitelyWritable(int columnIndex) throws SQLException { 606 return false; 607 } 608 609 614 public boolean isReadOnly(int columnIndex) throws SQLException { 615 return true; 616 } 617 618 623 public boolean isSearchable(int columnIndex) throws SQLException { 624 return true; 625 } 626 627 632 public boolean isSigned(int columnIndex) throws SQLException { 633 return true; 634 } 635 636 641 public boolean isWritable(int columnIndex) throws SQLException { 642 return false; 643 } 644 645 650 public String getCatalogName(int columnIndex) throws SQLException { 651 return null; 652 } 653 654 659 public String getColumnClassName(int columnIndex) throws SQLException { 660 return null; 661 } 662 663 668 public String getColumnLabel(int columnIndex) throws SQLException { 669 return getColumn(columnIndex - 1).name; 670 } 671 672 677 public String getColumnName(int columnIndex) throws SQLException { 678 return getColumnLabel(columnIndex); 679 } 680 681 686 public String getColumnTypeName(int columnIndex) throws SQLException { 687 return null; 688 } 689 690 695 public String getSchemaName(int columnIndex) throws SQLException { 696 return null; 697 } 698 699 704 public String getTableName(int columnIndex) throws SQLException { 705 return null; 706 } 707 708 710 711 public void clearWarnings() throws SQLException { 712 } 713 714 715 public void afterLast() throws SQLException { 716 throw getUnsupportedException(); 717 } 718 719 720 public void cancelRowUpdates() throws SQLException { 721 throw getUnsupportedException(); 722 } 723 724 725 public void updateNull(String columnName) throws SQLException { 726 throw getUnsupportedException(); 727 } 728 729 730 public void deleteRow() throws SQLException { 731 throw getUnsupportedException(); 732 } 733 734 735 public void insertRow() throws SQLException { 736 throw getUnsupportedException(); 737 } 738 739 740 public void moveToCurrentRow() throws SQLException { 741 throw getUnsupportedException(); 742 } 743 744 745 public void moveToInsertRow() throws SQLException { 746 throw getUnsupportedException(); 747 } 748 749 750 public void refreshRow() throws SQLException { 751 throw getUnsupportedException(); 752 } 753 754 755 public void updateRow() throws SQLException { 756 throw getUnsupportedException(); 757 } 758 759 760 public boolean first() throws SQLException { 761 throw getUnsupportedException(); 762 } 763 764 765 public boolean isAfterLast() throws SQLException { 766 throw getUnsupportedException(); 767 } 768 769 770 public boolean isBeforeFirst() throws SQLException { 771 throw getUnsupportedException(); 772 } 773 774 775 public boolean isFirst() throws SQLException { 776 throw getUnsupportedException(); 777 } 778 779 780 public boolean isLast() throws SQLException { 781 throw getUnsupportedException(); 782 } 783 784 785 public boolean last() throws SQLException { 786 throw getUnsupportedException(); 787 } 788 789 790 public boolean previous() throws SQLException { 791 throw getUnsupportedException(); 792 } 793 794 795 public boolean rowDeleted() throws SQLException { 796 throw getUnsupportedException(); 797 } 798 799 800 public boolean rowInserted() throws SQLException { 801 throw getUnsupportedException(); 802 } 803 804 805 public boolean rowUpdated() throws SQLException { 806 throw getUnsupportedException(); 807 } 808 809 810 public void setFetchDirection(int direction) throws SQLException { 811 throw getUnsupportedException(); 812 } 813 814 815 public void setFetchSize(int rows) throws SQLException { 816 throw getUnsupportedException(); 817 } 818 819 820 public void updateNull(int columnIndex) throws SQLException { 821 throw getUnsupportedException(); 822 } 823 824 825 public boolean absolute(int row) throws SQLException { 826 throw getUnsupportedException(); 827 } 828 829 830 public boolean relative(int rows) throws SQLException { 831 throw getUnsupportedException(); 832 } 833 834 835 public void updateByte(int columnIndex, byte x) throws SQLException { 836 throw getUnsupportedException(); 837 } 838 839 840 public void updateDouble(int columnIndex, double x) throws SQLException { 841 throw getUnsupportedException(); 842 } 843 844 845 public void updateFloat(int columnIndex, float x) throws SQLException { 846 throw getUnsupportedException(); 847 } 848 849 850 public void updateInt(int columnIndex, int x) throws SQLException { 851 throw getUnsupportedException(); 852 } 853 854 855 public void updateLong(int columnIndex, long x) throws SQLException { 856 throw getUnsupportedException(); 857 } 858 859 860 public void updateShort(int columnIndex, short x) throws SQLException { 861 throw getUnsupportedException(); 862 } 863 864 865 public void updateBoolean(int columnIndex, boolean x) throws SQLException { 866 throw getUnsupportedException(); 867 } 868 869 870 public void updateBytes(int columnIndex, byte[] x) throws SQLException { 871 throw getUnsupportedException(); 872 } 873 874 875 public InputStream getAsciiStream(int columnIndex) throws SQLException { 876 return null; 877 } 878 879 880 public InputStream getBinaryStream(int columnIndex) throws SQLException { 881 return null; 882 } 883 884 885 public InputStream getUnicodeStream(int columnIndex) throws SQLException { 886 return null; 887 } 888 889 890 public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException { 891 throw getUnsupportedException(); 892 } 893 894 895 public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException { 896 throw getUnsupportedException(); 897 } 898 899 900 public Reader getCharacterStream(int columnIndex) throws SQLException { 901 throw getUnsupportedException(); 902 } 903 904 905 public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException { 906 throw getUnsupportedException(); 907 } 908 909 910 public void updateObject(int columnIndex, Object x) throws SQLException { 911 throw getUnsupportedException(); 912 } 913 914 915 public void updateObject(int columnIndex, Object x, int scale) throws SQLException { 916 throw getUnsupportedException(); 917 } 918 919 920 public String getCursorName() throws SQLException { 921 throw getUnsupportedException(); 922 } 923 924 925 public void updateString(int columnIndex, String x) throws SQLException { 926 throw getUnsupportedException(); 927 } 928 929 930 public void updateByte(String columnName, byte x) throws SQLException { 931 throw getUnsupportedException(); 932 } 933 934 935 public void updateDouble(String columnName, double x) throws SQLException { 936 throw getUnsupportedException(); 937 } 938 939 940 public void updateFloat(String columnName, float x) throws SQLException { 941 throw getUnsupportedException(); 942 } 943 944 945 public void updateInt(String columnName, int x) throws SQLException { 946 throw getUnsupportedException(); 947 } 948 949 950 public void updateLong(String columnName, long x) throws SQLException { 951 throw getUnsupportedException(); 952 } 953 954 955 public void updateShort(String columnName, short x) throws SQLException { 956 throw getUnsupportedException(); 957 } 958 959 960 public void updateBoolean(String columnName, boolean x) throws SQLException { 961 throw getUnsupportedException(); 962 } 963 964 965 public void updateBytes(String columnName, byte[] x) throws SQLException { 966 throw getUnsupportedException(); 967 } 968 969 970 public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException { 971 throw getUnsupportedException(); 972 } 973 974 975 public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException { 976 throw getUnsupportedException(); 977 } 978 979 980 public URL getURL(int columnIndex) throws SQLException { 981 throw getUnsupportedException(); 982 } 983 984 985 public Array getArray(int i) throws SQLException { 986 throw getUnsupportedException(); 987 } 988 989 990 public void updateArray(int columnIndex, Array x) throws SQLException { 991 throw getUnsupportedException(); 992 } 993 994 995 public Blob getBlob(int i) throws SQLException { 996 throw getUnsupportedException(); 997 } 998 999 1000 public void updateBlob(int columnIndex, Blob x) throws SQLException { 1001 throw getUnsupportedException(); 1002 } 1003 1004 1005 public Clob getClob(int i) throws SQLException { 1006 throw getUnsupportedException(); 1007 } 1008 1009 1010 public void updateClob(int columnIndex, Clob x) throws SQLException { 1011 throw getUnsupportedException(); 1012 } 1013 1014 1015 public void updateDate(int columnIndex, Date x) throws SQLException { 1016 throw getUnsupportedException(); 1017 } 1018 1019 1020 public Ref getRef(int i) throws SQLException { 1021 throw getUnsupportedException(); 1022 } 1023 1024 1025 public void updateRef(int columnIndex, Ref x) throws SQLException { 1026 throw getUnsupportedException(); 1027 } 1028 1029 1030 public void updateTime(int columnIndex, Time x) throws SQLException { 1031 throw getUnsupportedException(); 1032 } 1033 1034 1035 public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException { 1036 throw getUnsupportedException(); 1037 } 1038 1039 1040 public InputStream getAsciiStream(String columnName) throws SQLException { 1041 throw getUnsupportedException(); 1042 } 1043 1044 1045 public InputStream getBinaryStream(String columnName) throws SQLException { 1046 throw getUnsupportedException(); 1047 } 1048 1049 1050 public InputStream getUnicodeStream(String columnName) throws SQLException { 1051 throw getUnsupportedException(); 1052 } 1053 1054 1055 public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException { 1056 throw getUnsupportedException(); 1057 } 1058 1059 1060 public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException { 1061 throw getUnsupportedException(); 1062 } 1063 1064 1065 public Reader getCharacterStream(String columnName) throws SQLException { 1066 throw getUnsupportedException(); 1067 } 1068 1069 1070 public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException { 1071 throw getUnsupportedException(); 1072 } 1073 1074 1075 public void updateObject(String columnName, Object x) throws SQLException { 1076 throw getUnsupportedException(); 1077 } 1078 1079 1080 public void updateObject(String columnName, Object x, int scale) throws SQLException { 1081 throw getUnsupportedException(); 1082 } 1083 1084 1085 public Object getObject(int i, Map map) throws SQLException { 1086 throw getUnsupportedException(); 1087 } 1088 1089 1090 public void updateString(String columnName, String x) throws SQLException { 1091 throw getUnsupportedException(); 1092 } 1093 1094 1095 public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException { 1096 throw getUnsupportedException(); 1097 } 1098 1099 1100 public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException { 1101 throw getUnsupportedException(); 1102 } 1103 1104 1105 public URL getURL(String columnName) throws SQLException { 1106 throw getUnsupportedException(); 1107 } 1108 1109 1110 public Array getArray(String colName) throws SQLException { 1111 throw getUnsupportedException(); 1112 } 1113 1114 1115 public void updateArray(String columnName, Array x) throws SQLException { 1116 throw getUnsupportedException(); 1117 } 1118 1119 1120 public Blob getBlob(String colName) throws SQLException { 1121 throw getUnsupportedException(); 1122 } 1123 1124 1125 public void updateBlob(String columnName, Blob x) throws SQLException { 1126 throw getUnsupportedException(); 1127 } 1128 1129 1130 public Clob getClob(String colName) throws SQLException { 1131 throw getUnsupportedException(); 1132 } 1133 1134 1135 public void updateClob(String columnName, Clob x) throws SQLException { 1136 throw getUnsupportedException(); 1137 } 1138 1139 1140 public void updateDate(String columnName, Date x) throws SQLException { 1141 throw getUnsupportedException(); 1142 } 1143 1144 1145 public Date getDate(int columnIndex, Calendar cal) throws SQLException { 1146 throw getUnsupportedException(); 1147 } 1148 1149 1150 public Ref getRef(String colName) throws SQLException { 1151 throw getUnsupportedException(); 1152 } 1153 1154 1155 public void updateRef(String columnName, Ref x) throws SQLException { 1156 throw getUnsupportedException(); 1157 } 1158 1159 1160 public void updateTime(String columnName, Time x) throws SQLException { 1161 throw getUnsupportedException(); 1162 } 1163 1164 1165 public Time getTime(int columnIndex, Calendar cal) throws SQLException { 1166 throw getUnsupportedException(); 1167 } 1168 1169 1170 public void updateTimestamp(String columnName, Timestamp x) throws SQLException { 1171 throw getUnsupportedException(); 1172 } 1173 1174 1175 public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException { 1176 throw getUnsupportedException(); 1177 } 1178 1179 1180 public Object getObject(String colName, Map map) throws SQLException { 1181 throw getUnsupportedException(); 1182 } 1183 1184 1185 public Date getDate(String columnName, Calendar cal) throws SQLException { 1186 throw getUnsupportedException(); 1187 } 1188 1189 1190 public Time getTime(String columnName, Calendar cal) throws SQLException { 1191 throw getUnsupportedException(); 1192 } 1193 1194 1195 public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException { 1196 throw getUnsupportedException(); 1197 } 1198 1199 1201 private SQLException getUnsupportedException() { 1202 return new SQLException("Feature not supported", "HYC00"); 1203 } 1204 1205 private Object get(String columnName) throws SQLException { 1206 return get(findColumn(columnName)); 1207 } 1208 1209 private void checkColumnIndex(int columnIndex) throws SQLException { 1210 if (columnIndex < 0 || columnIndex >= columns.size()) { 1211 throw new SQLException("Invalid column index " + (columnIndex + 1), "90009"); 1212 } 1213 } 1214 1215 private Object get(int columnIndex) throws SQLException { 1216 if (currentRow == null) { 1217 throw new SQLException("No data is available", "02000"); 1218 } 1219 columnIndex--; 1220 checkColumnIndex(columnIndex); 1221 Object o = columnIndex < currentRow.length ? currentRow[columnIndex] : null; 1222 wasNull = o == null; 1223 return o; 1224 } 1225 1226 private Column getColumn(int i) throws SQLException { 1227 checkColumnIndex(i); 1228 return (Column) columns.get(i); 1229 } 1230 1231 1237 1239 1245 1247 1248 1254 1256 1257 1263 1265 1270 public int getHoldability() { 1272 return ResultSet.HOLD_CURSORS_OVER_COMMIT; 1273 } 1274 1276 1281 public boolean isClosed() throws SQLException { 1282 return rows == null; 1283 } 1284 1285 1286 public void updateNString(int columnIndex, String nString) throws SQLException { 1287 throw getUnsupportedException(); 1288 } 1289 1290 1291 public void updateNString(String columnName, String nString) throws SQLException { 1292 throw getUnsupportedException(); 1293 } 1294 1295 1296 1302 1304 1305 1311 1313 1314 1320 1322 1323 1329 1331 1332 1338 1340 1341 1347 1349 1350 1356 1358 1359 1365 1367 1368 public String getNString(int columnIndex) throws SQLException { 1369 return getString(columnIndex); 1370 } 1371 1372 1373 public String getNString(String columnName) throws SQLException { 1374 return getString(columnName); 1375 } 1376 1377 1378 public Reader getNCharacterStream(int columnIndex) throws SQLException { 1379 throw getUnsupportedException(); 1380 } 1381 1382 1383 public Reader getNCharacterStream(String columnName) throws SQLException { 1384 throw getUnsupportedException(); 1385 } 1386 1387 1388 public void updateNCharacterStream(int columnIndex, Reader x, int length) throws SQLException { 1389 throw getUnsupportedException(); 1390 } 1391 1392 1393 public void updateNCharacterStream(String columnName, Reader x, int length) throws SQLException { 1394 throw getUnsupportedException(); 1395 } 1396 1397 1398 1404 1406 1407 1413 1415 1416 public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException { 1417 throw getUnsupportedException(); 1418 } 1419 1420 1421 public void updateAsciiStream(String columnName, InputStream x) throws SQLException { 1422 throw getUnsupportedException(); 1423 } 1424 1425 1426 public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException { 1427 throw getUnsupportedException(); 1428 } 1429 1430 1431 public void updateAsciiStream(String columnName, InputStream x, long length) throws SQLException { 1432 throw getUnsupportedException(); 1433 } 1434 1435 1436 public void updateBinaryStream(int columnName, InputStream x) throws SQLException { 1437 throw getUnsupportedException(); 1438 } 1439 1440 1441 public void updateBinaryStream(String columnName, InputStream x) throws SQLException { 1442 throw getUnsupportedException(); 1443 } 1444 1445 1446 public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException { 1447 throw getUnsupportedException(); 1448 } 1449 1450 1451 public void updateBinaryStream(String columnName, InputStream x, long length) throws SQLException { 1452 throw getUnsupportedException(); 1453 } 1454 1455 1456 public void updateBlob(int columnIndex, InputStream x) throws SQLException { 1457 throw getUnsupportedException(); 1458 } 1459 1460 1461 public void updateBlob(String columnName, InputStream x) throws SQLException { 1462 throw getUnsupportedException(); 1463 } 1464 1465 1466 public void updateBlob(int columnIndex, InputStream x, long length) throws SQLException { 1467 throw getUnsupportedException(); 1468 } 1469 1470 1471 public void updateBlob(String columnName, InputStream x, long length) throws SQLException { 1472 throw getUnsupportedException(); 1473 } 1474 1475 1476 public void updateCharacterStream(int columnIndex, Reader x) throws SQLException { 1477 throw getUnsupportedException(); 1478 } 1479 1480 1481 public void updateCharacterStream(String columnName, Reader x) throws SQLException { 1482 throw getUnsupportedException(); 1483 } 1484 1485 1486 public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException { 1487 throw getUnsupportedException(); 1488 } 1489 1490 1491 public void updateCharacterStream(String columnName, Reader x, long length) throws SQLException { 1492 throw getUnsupportedException(); 1493 } 1494 1495 1496 public void updateClob(int columnIndex, Reader x) throws SQLException { 1497 throw getUnsupportedException(); 1498 } 1499 1500 1501 public void updateClob(String columnName, Reader x) throws SQLException { 1502 throw getUnsupportedException(); 1503 } 1504 1505 1506 public void updateClob(int columnIndex, Reader x, long length) throws SQLException { 1507 throw getUnsupportedException(); 1508 } 1509 1510 1511 public void updateClob(String columnName, Reader x, long length) throws SQLException { 1512 throw getUnsupportedException(); 1513 } 1514 1515 1516 public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException { 1517 throw getUnsupportedException(); 1518 } 1519 1520 1521 public void updateNCharacterStream(String columnName, Reader x) throws SQLException { 1522 throw getUnsupportedException(); 1523 } 1524 1525 1526 public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException { 1527 throw getUnsupportedException(); 1528 } 1529 1530 1531 public void updateNCharacterStream(String columnName, Reader x, long length) throws SQLException { 1532 throw getUnsupportedException(); 1533 } 1534 1535 1536 public void updateNClob(int columnIndex, Reader x) throws SQLException { 1537 throw getUnsupportedException(); 1538 } 1539 1540 1541 public void updateNClob(String columnName, Reader x) throws SQLException { 1542 throw getUnsupportedException(); 1543 } 1544 1545 1546 public void updateNClob(int columnIndex, Reader x, long length) throws SQLException { 1547 throw getUnsupportedException(); 1548 } 1549 1550 1551 public void updateNClob(String columnName, Reader x, long length) throws SQLException { 1552 throw getUnsupportedException(); 1553 } 1554 1555} 1556 | Popular Tags |