00001
00025
package java.sql;
00026
00030 public interface
Statement
00031 {
00044 ResultSet executeQuery(String sql)
throws SQLException;
00045
00060
int executeUpdate(String sql)
throws SQLException;
00061
00078
void close()
throws SQLException;
00079
00080
00081
00096
int getMaxFieldSize()
throws SQLException;
00097
00112
void setMaxFieldSize(
int max)
throws SQLException;
00113
00125
int getMaxRows()
throws SQLException;
00126
00137
void setMaxRows(
int max)
throws SQLException;
00138
00150
void setEscapeProcessing(
boolean enable)
throws SQLException;
00151
00162
int getQueryTimeout()
throws SQLException;
00163
00175
void setQueryTimeout(
int seconds)
throws SQLException;
00176
00184
void cancel()
throws SQLException;
00185
00206 SQLWarning getWarnings()
throws SQLException;
00207
00216
void clearWarnings()
throws SQLException;
00217
00238
void setCursorName(String name)
throws SQLException;
00239
00240
00241
00264
boolean execute(String sql)
throws SQLException;
00265
00276 ResultSet getResultSet()
throws SQLException;
00277
00288
int getUpdateCount()
throws SQLException;
00289
00308
boolean getMoreResults()
throws SQLException;
00309
00310
00311
00330
void setFetchDirection(
int direction)
throws SQLException;
00331
00345
int getFetchDirection()
throws SQLException;
00346
00362
void setFetchSize(
int rows)
throws SQLException;
00363
00377
int getFetchSize()
throws SQLException;
00378
00388
int getResultSetConcurrency()
throws SQLException;
00389
00400
int getResultSetType()
throws SQLException;
00401
00416
void addBatch(String sql)
throws SQLException;
00417
00429
void clearBatch()
throws SQLException;
00430
00479
int[] executeBatch()
throws SQLException;
00480
00489 Connection getConnection()
throws SQLException;
00490
00491
00492
00499 int CLOSE_CURRENT_RESULT = 1;
00500
00507 int KEEP_CURRENT_RESULT = 2;
00508
00516 int CLOSE_ALL_RESULTS = 3;
00517
00524 int SUCCESS_NO_INFO = -2;
00525
00532 int EXECUTE_FAILED = -3;
00533
00540 int RETURN_GENERATED_KEYS = 1;
00541
00548 int NO_GENERATED_KEYS = 2;
00549
00575
boolean getMoreResults(
int current)
throws SQLException;
00576
00589 ResultSet getGeneratedKeys() throws SQLException;
00590
00611
int executeUpdate(String sql,
int autoGeneratedKeys) throws SQLException;
00612
00631
int executeUpdate(String sql,
int columnIndexes[]) throws SQLException;
00632
00650
int executeUpdate(String sql, String columnNames[]) throws SQLException;
00651
00685
boolean execute(String sql,
int autoGeneratedKeys) throws SQLException;
00686
00720
boolean execute(String sql,
int columnIndexes[]) throws SQLException;
00721
00755
boolean execute(String sql, String columnNames[]) throws SQLException;
00756
00766
int getResultSetHoldability() throws SQLException;
00767
00768 }