T - the type parameterpublic class StatementProxy<T extends Statement> extends AbstractStatementProxy<T>
connectionProxy, scrollableGeneratedKeysCache, targetSQL, targetStatementCLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
StatementProxy(AbstractConnectionProxy connectionWrapper,
T targetStatement)
Instantiates a new Statement proxy.
|
StatementProxy(AbstractConnectionProxy connectionWrapper,
T targetStatement,
String targetSQL)
Instantiates a new Statement proxy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(String sql) |
boolean |
execute(String sql) |
boolean |
execute(String sql,
int autoGeneratedKeys) |
boolean |
execute(String sql,
int[] columnIndexes) |
boolean |
execute(String sql,
String[] columnNames) |
int[] |
executeBatch() |
ResultSet |
executeQuery(String sql) |
int |
executeUpdate(String sql) |
int |
executeUpdate(String sql,
int autoGeneratedKeys) |
int |
executeUpdate(String sql,
int[] columnIndexes) |
int |
executeUpdate(String sql,
String[] columnNames) |
ConnectionProxy |
getConnectionProxy()
Gets connection proxy.
|
cancel, clearBatch, clearWarnings, close, closeOnCompletion, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getTargetSQL, getTargetStatement, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRowspublic StatementProxy(AbstractConnectionProxy connectionWrapper, T targetStatement, String targetSQL) throws SQLException
connectionWrapper - the connection wrappertargetStatement - the target statementtargetSQL - the target sqlSQLException - the sql exceptionpublic StatementProxy(AbstractConnectionProxy connectionWrapper, T targetStatement) throws SQLException
connectionWrapper - the connection wrappertargetStatement - the target statementSQLException - the sql exceptionpublic ConnectionProxy getConnectionProxy()
AbstractStatementProxygetConnectionProxy in class AbstractStatementProxy<T extends Statement>public ResultSet executeQuery(String sql) throws SQLException
SQLExceptionpublic int executeUpdate(String sql) throws SQLException
SQLExceptionpublic boolean execute(String sql) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, int[] columnIndexes) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, String[] columnNames) throws SQLException
SQLExceptionpublic boolean execute(String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionpublic boolean execute(String sql, int[] columnIndexes) throws SQLException
SQLExceptionpublic boolean execute(String sql, String[] columnNames) throws SQLException
SQLExceptionpublic void addBatch(String sql) throws SQLException
addBatch in interface StatementaddBatch in class AbstractStatementProxy<T extends Statement>SQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch in interface StatementexecuteBatch in class AbstractStatementProxy<T extends Statement>SQLExceptionCopyright © 2024 Apache. All rights reserved.