1 7 8 package java.sql; 9 10 import java.math.BigDecimal ; 11 import java.util.Calendar ; 12 13 127 128 public interface ResultSet { 129 130 146 boolean next() throws SQLException ; 147 148 149 164 void close() throws SQLException ; 165 166 178 boolean wasNull() throws SQLException ; 179 180 184 194 String getString(int columnIndex) throws SQLException ; 195 196 206 boolean getBoolean(int columnIndex) throws SQLException ; 207 208 218 byte getByte(int columnIndex) throws SQLException ; 219 220 230 short getShort(int columnIndex) throws SQLException ; 231 232 242 int getInt(int columnIndex) throws SQLException ; 243 244 254 long getLong(int columnIndex) throws SQLException ; 255 256 266 float getFloat(int columnIndex) throws SQLException ; 267 268 278 double getDouble(int columnIndex) throws SQLException ; 279 280 292 @Deprecated 293 BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException ; 294 295 306 byte[] getBytes(int columnIndex) throws SQLException ; 307 308 318 java.sql.Date getDate(int columnIndex) throws SQLException ; 319 320 330 java.sql.Time getTime(int columnIndex) throws SQLException ; 331 332 342 java.sql.Timestamp getTimestamp(int columnIndex) throws SQLException ; 343 344 367 java.io.InputStream getAsciiStream(int columnIndex) throws SQLException ; 368 369 398 @Deprecated 399 java.io.InputStream getUnicodeStream(int columnIndex) throws SQLException ; 400 401 422 java.io.InputStream getBinaryStream(int columnIndex) 423 throws SQLException ; 424 425 426 430 440 String getString(String columnName) throws SQLException ; 441 442 452 boolean getBoolean(String columnName) throws SQLException ; 453 454 464 byte getByte(String columnName) throws SQLException ; 465 466 476 short getShort(String columnName) throws SQLException ; 477 478 488 int getInt(String columnName) throws SQLException ; 489 490 500 long getLong(String columnName) throws SQLException ; 501 502 512 float getFloat(String columnName) throws SQLException ; 513 514 524 double getDouble(String columnName) throws SQLException ; 525 526 538 @Deprecated 539 BigDecimal getBigDecimal(String columnName, int scale) throws SQLException ; 540 541 552 byte[] getBytes(String columnName) throws SQLException ; 553 554 564 java.sql.Date getDate(String columnName) throws SQLException ; 565 566 577 java.sql.Time getTime(String columnName) throws SQLException ; 578 579 589 java.sql.Timestamp getTimestamp(String columnName) throws SQLException ; 590 591 613 java.io.InputStream getAsciiStream(String columnName) throws SQLException ; 614 615 642 @Deprecated 643 java.io.InputStream getUnicodeStream(String columnName) throws SQLException ; 644 645 666 java.io.InputStream getBinaryStream(String columnName) 667 throws SQLException ; 668 669 670 674 697 SQLWarning getWarnings() throws SQLException ; 698 699 707 void clearWarnings() throws SQLException ; 708 709 732 String getCursorName() throws SQLException ; 733 734 741 ResultSetMetaData getMetaData() throws SQLException ; 742 743 769 Object getObject(int columnIndex) throws SQLException ; 770 771 797 Object getObject(String columnName) throws SQLException ; 798 799 801 810 int findColumn(String columnName) throws SQLException ; 811 812 813 815 819 830 java.io.Reader getCharacterStream(int columnIndex) throws SQLException ; 831 832 844 java.io.Reader getCharacterStream(String columnName) throws SQLException ; 845 846 858 BigDecimal getBigDecimal(int columnIndex) throws SQLException ; 859 860 873 BigDecimal getBigDecimal(String columnName) throws SQLException ; 874 875 879 889 boolean isBeforeFirst() throws SQLException ; 890 891 901 boolean isAfterLast() throws SQLException ; 902 903 912 boolean isFirst() throws SQLException ; 913 914 927 boolean isLast() throws SQLException ; 928 929 938 void beforeFirst() throws SQLException ; 939 940 948 void afterLast() throws SQLException ; 949 950 960 boolean first() throws SQLException ; 961 962 972 boolean last() throws SQLException ; 973 974 982 int getRow() throws SQLException ; 983 984 1018 boolean absolute( int row ) throws SQLException ; 1019 1020 1042 boolean relative( int rows ) throws SQLException ; 1043 1044 1054 boolean previous() throws SQLException ; 1055 1056 1060 1067 int FETCH_FORWARD = 1000; 1068 1069 1076 int FETCH_REVERSE = 1001; 1077 1078 1084 int FETCH_UNKNOWN = 1002; 1085 1086 1105 void setFetchDirection(int direction) throws SQLException ; 1106 1107 1116 int getFetchDirection() throws SQLException ; 1117 1118 1134 void setFetchSize(int rows) throws SQLException ; 1135 1136 1145 int getFetchSize() throws SQLException ; 1146 1147 1152 int TYPE_FORWARD_ONLY = 1003; 1153 1154 1159 int TYPE_SCROLL_INSENSITIVE = 1004; 1160 1161 1166 int TYPE_SCROLL_SENSITIVE = 1005; 1167 1168 1179 int getType() throws SQLException ; 1180 1181 1186 int CONCUR_READ_ONLY = 1007; 1187 1188 1193 int CONCUR_UPDATABLE = 1008; 1194 1195 1206 int getConcurrency() throws SQLException ; 1207 1208 1212 1222 boolean rowUpdated() throws SQLException ; 1223 1224 1236 boolean rowInserted() throws SQLException ; 1237 1238 1251 boolean rowDeleted() throws SQLException ; 1252 1253 1265 void updateNull(int columnIndex) throws SQLException ; 1266 1267 1279 void updateBoolean(int columnIndex, boolean x) throws SQLException ; 1280 1281 1294 void updateByte(int columnIndex, byte x) throws SQLException ; 1295 1296 1308 void updateShort(int columnIndex, short x) throws SQLException ; 1309 1310 1322 void updateInt(int columnIndex, int x) throws SQLException ; 1323 1324 1336 void updateLong(int columnIndex, long x) throws SQLException ; 1337 1338 1350 void updateFloat(int columnIndex, float x) throws SQLException ; 1351 1352 1364 void updateDouble(int columnIndex, double x) throws SQLException ; 1365 1366 1379 void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException ; 1380 1381 1393 void updateString(int columnIndex, String x) throws SQLException ; 1394 1395 1407 void updateBytes(int columnIndex, byte x[]) throws SQLException ; 1408 1409 1421 void updateDate(int columnIndex, java.sql.Date x) throws SQLException ; 1422 1423 1435 void updateTime(int columnIndex, java.sql.Time x) throws SQLException ; 1436 1437 1450 void updateTimestamp(int columnIndex, java.sql.Timestamp x) 1451 throws SQLException ; 1452 1453 1466 void updateAsciiStream(int columnIndex, 1467 java.io.InputStream x, 1468 int length) throws SQLException ; 1469 1470 1483 void updateBinaryStream(int columnIndex, 1484 java.io.InputStream x, 1485 int length) throws SQLException ; 1486 1487 1500 void updateCharacterStream(int columnIndex, 1501 java.io.Reader x, 1502 int length) throws SQLException ; 1503 1504 1520 void updateObject(int columnIndex, Object x, int scale) 1521 throws SQLException ; 1522 1523 1535 void updateObject(int columnIndex, Object x) throws SQLException ; 1536 1537 1548 void updateNull(String columnName) throws SQLException ; 1549 1550 1562 void updateBoolean(String columnName, boolean x) throws SQLException ; 1563 1564 1576 void updateByte(String columnName, byte x) throws SQLException ; 1577 1578 1590 void updateShort(String columnName, short x) throws SQLException ; 1591 1592 1604 void updateInt(String columnName, int x) throws SQLException ; 1605 1606 1618 void updateLong(String columnName, long x) throws SQLException ; 1619 1620 1632 void updateFloat(String columnName, float x) throws SQLException ; 1633 1634 1646 void updateDouble(String columnName, double x) throws SQLException ; 1647 1648 1661 void updateBigDecimal(String columnName, BigDecimal x) throws SQLException ; 1662 1663 1675 void updateString(String columnName, String x) throws SQLException ; 1676 1677 1690 void updateBytes(String columnName, byte x[]) throws SQLException ; 1691 1692 1704 void updateDate(String columnName, java.sql.Date x) throws SQLException ; 1705 1706 1718 void updateTime(String columnName, java.sql.Time x) throws SQLException ; 1719 1720 1733 void updateTimestamp(String columnName, java.sql.Timestamp x) 1734 throws SQLException ; 1735 1736 1749 void updateAsciiStream(String columnName, 1750 java.io.InputStream x, 1751 int length) throws SQLException ; 1752 1753 1766 void updateBinaryStream(String columnName, 1767 java.io.InputStream x, 1768 int length) throws SQLException ; 1769 1770 1784 void updateCharacterStream(String columnName, 1785 java.io.Reader reader, 1786 int length) throws SQLException ; 1787 1788 1804 void updateObject(String columnName, Object x, int scale) 1805 throws SQLException ; 1806 1807 1819 void updateObject(String columnName, Object x) throws SQLException ; 1820 1821 1832 void insertRow() throws SQLException ; 1833 1834 1843 void updateRow() throws SQLException ; 1844 1845 1854 void deleteRow() throws SQLException ; 1855 1856 1881 void refreshRow() throws SQLException ; 1882 1883 1898 void cancelRowUpdates() throws SQLException ; 1899 1900 1921 void moveToInsertRow() throws SQLException ; 1922 1923 1932 void moveToCurrentRow() throws SQLException ; 1933 1934 1947 Statement getStatement() throws SQLException ; 1948 1949 1967 Object getObject(int i, java.util.Map <String ,Class <?>> map) 1968 throws SQLException ; 1969 1970 1981 Ref getRef(int i) throws SQLException ; 1982 1983 1994 Blob getBlob(int i) throws SQLException ; 1995 1996 2007 Clob getClob(int i) throws SQLException ; 2008 2009 2020 Array getArray(int i) throws SQLException ; 2021 2022 2039 Object getObject(String colName, java.util.Map <String ,Class <?>> map) 2040 throws SQLException ; 2041 2042 2053 Ref getRef(String colName) throws SQLException ; 2054 2055 2066 Blob getBlob(String colName) throws SQLException ; 2067 2068 2079 Clob getClob(String colName) throws SQLException ; 2080 2081 2092 Array getArray(String colName) throws SQLException ; 2093 2094 2111 java.sql.Date getDate(int columnIndex, Calendar cal) throws SQLException ; 2112 2113 2130 java.sql.Date getDate(String columnName, Calendar cal) throws SQLException ; 2131 2132 2149 java.sql.Time getTime(int columnIndex, Calendar cal) throws SQLException ; 2150 2151 2168 java.sql.Time getTime(String columnName, Calendar cal) throws SQLException ; 2169 2170 2187 java.sql.Timestamp getTimestamp(int columnIndex, Calendar cal) 2188 throws SQLException ; 2189 2190 2207 java.sql.Timestamp getTimestamp(String columnName, Calendar cal) 2208 throws SQLException ; 2209 2210 2212 2218 int HOLD_CURSORS_OVER_COMMIT = 1; 2219 2220 2226 int CLOSE_CURSORS_AT_COMMIT = 2; 2227 2228 2241 java.net.URL getURL(int columnIndex) throws SQLException ; 2242 2243 2256 java.net.URL getURL(String columnName) throws SQLException ; 2257 2258 2270 void updateRef(int columnIndex, java.sql.Ref x) throws SQLException ; 2271 2272 2284 void updateRef(String columnName, java.sql.Ref x) throws SQLException ; 2285 2286 2298 void updateBlob(int columnIndex, java.sql.Blob x) throws SQLException ; 2299 2300 2312 void updateBlob(String columnName, java.sql.Blob x) throws SQLException ; 2313 2314 2326 void updateClob(int columnIndex, java.sql.Clob x) throws SQLException ; 2327 2328 2340 void updateClob(String columnName, java.sql.Clob x) throws SQLException ; 2341 2342 2354 void updateArray(int columnIndex, java.sql.Array x) throws SQLException ; 2355 2356 2368 void updateArray(String columnName, java.sql.Array x) throws SQLException ; 2369} 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 | Popular Tags |