public interface Statement
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(java.lang.String sql) |
void |
cancel() |
void |
clearBatch() |
void |
clearWarnings() |
void |
close() |
boolean |
execute(java.lang.String sql) |
int[] |
executeBatch() |
ResultSet |
executeQuery(java.lang.String sql) |
int |
executeUpdate(java.lang.String sql) |
Connection |
getConnection() |
int |
getFetchDirection() |
int |
getFetchSize() |
int |
getMaxRows() |
boolean |
getMoreResults() |
int |
getQueryTimeout() |
ResultSet |
getResultSet() |
int |
getResultSetConcurrency() |
int |
getResultSetType() |
int |
getUpdateCount() |
java.sql.SQLWarning |
getWarnings() |
void |
setCursorName(java.lang.String name) |
void |
setFetchDirection(int direction) |
void |
setFetchSize(int rows) |
void |
setMaxRows(int max) |
void |
setQueryTimeout(int seconds) |
ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
java.sql.SQLExceptionint executeUpdate(java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLExceptionvoid close()
throws java.sql.SQLException
close in interface java.lang.AutoCloseablejava.sql.SQLExceptionint getMaxRows()
throws java.sql.SQLException
java.sql.SQLExceptionvoid setMaxRows(int max)
throws java.sql.SQLException
java.sql.SQLExceptionint getQueryTimeout()
throws java.sql.SQLException
java.sql.SQLExceptionvoid setQueryTimeout(int seconds)
throws java.sql.SQLException
java.sql.SQLExceptionvoid cancel()
throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.SQLWarning getWarnings()
throws java.sql.SQLException
java.sql.SQLExceptionvoid clearWarnings()
throws java.sql.SQLException
java.sql.SQLExceptionvoid setCursorName(java.lang.String name)
throws java.sql.SQLException
java.sql.SQLExceptionboolean execute(java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLExceptionResultSet getResultSet() throws java.sql.SQLException
java.sql.SQLExceptionint getUpdateCount()
throws java.sql.SQLException
java.sql.SQLExceptionboolean getMoreResults()
throws java.sql.SQLException
java.sql.SQLExceptionvoid setFetchDirection(int direction)
throws java.sql.SQLException
java.sql.SQLExceptionint getFetchDirection()
throws java.sql.SQLException
java.sql.SQLExceptionvoid setFetchSize(int rows)
throws java.sql.SQLException
java.sql.SQLExceptionint getFetchSize()
throws java.sql.SQLException
java.sql.SQLExceptionint getResultSetConcurrency()
throws java.sql.SQLException
java.sql.SQLExceptionint getResultSetType()
throws java.sql.SQLException
java.sql.SQLExceptionvoid addBatch(java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLExceptionvoid clearBatch()
throws java.sql.SQLException
java.sql.SQLExceptionint[] executeBatch()
throws java.sql.SQLException
java.sql.SQLExceptionConnection getConnection() throws java.sql.SQLException
java.sql.SQLException