1 7 8 package java.sql; 9 10 25 public interface Statement { 26 27 39 ResultSet executeQuery(String sql) throws SQLException ; 40 41 54 int executeUpdate(String sql) throws SQLException ; 55 56 74 void close() throws SQLException ; 75 76 78 93 int getMaxFieldSize() throws SQLException ; 94 95 110 void setMaxFieldSize(int max) throws SQLException ; 111 112 124 int getMaxRows() throws SQLException ; 125 126 137 void setMaxRows(int max) throws SQLException ; 138 139 152 void setEscapeProcessing(boolean enable) throws SQLException ; 153 154 164 int getQueryTimeout() throws SQLException ; 165 166 177 void setQueryTimeout(int seconds) throws SQLException ; 178 179 187 void cancel() throws SQLException ; 188 189 209 SQLWarning getWarnings() throws SQLException ; 210 211 220 void clearWarnings() throws SQLException ; 221 222 243 void setCursorName(String name) throws SQLException ; 244 245 247 270 boolean execute(String sql) throws SQLException ; 271 272 281 ResultSet getResultSet() throws SQLException ; 282 283 293 int getUpdateCount() throws SQLException ; 294 295 313 boolean getMoreResults() throws SQLException ; 314 315 316 318 319 338 void setFetchDirection(int direction) throws SQLException ; 339 340 354 int getFetchDirection() throws SQLException ; 355 356 370 void setFetchSize(int rows) throws SQLException ; 371 372 386 int getFetchSize() throws SQLException ; 387 388 397 int getResultSetConcurrency() throws SQLException ; 398 399 409 int getResultSetType() throws SQLException ; 410 411 425 void addBatch( String sql ) throws SQLException ; 426 427 438 void clearBatch() throws SQLException ; 439 440 488 int[] executeBatch() throws SQLException ; 489 490 497 Connection getConnection() throws SQLException ; 498 499 501 507 int CLOSE_CURRENT_RESULT = 1; 508 509 515 int KEEP_CURRENT_RESULT = 2; 516 517 524 int CLOSE_ALL_RESULTS = 3; 525 526 532 int SUCCESS_NO_INFO = -2; 533 534 540 int EXECUTE_FAILED = -3; 541 542 548 int RETURN_GENERATED_KEYS = 1; 549 550 556 int NO_GENERATED_KEYS = 2; 557 558 588 boolean getMoreResults(int current) throws SQLException ; 589 590 601 ResultSet getGeneratedKeys() throws SQLException ; 602 603 625 int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException ; 626 627 647 int executeUpdate(String sql, int columnIndexes[]) throws SQLException ; 648 649 669 int executeUpdate(String sql, String columnNames[]) throws SQLException ; 670 671 710 boolean execute(String sql, int autoGeneratedKeys) throws SQLException ; 711 712 749 boolean execute(String sql, int columnIndexes[]) throws SQLException ; 750 751 789 boolean execute(String sql, String columnNames[]) throws SQLException ; 790 791 801 int getResultSetHoldability() throws SQLException ; 802 803 } 804 | Popular Tags |