T - the type parameterpublic class StatementProxy<T extends Statement> extends AbstractStatementProxy<T>
connectionProxy, scrollableGeneratedKeysCache, targetSQL, targetStatement| 构造器和说明 |
|---|
StatementProxy(AbstractConnectionProxy connectionWrapper,
T targetStatement)
Instantiates a new Statement proxy.
|
StatementProxy(AbstractConnectionProxy connectionWrapper,
T targetStatement,
String targetSQL)
Instantiates a new Statement proxy.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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, unwrappublic 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 在类中 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 在接口中 StatementaddBatch 在类中 AbstractStatementProxy<T extends Statement>SQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch 在接口中 StatementexecuteBatch 在类中 AbstractStatementProxy<T extends Statement>SQLExceptionCopyright © 2022 Seata. All rights reserved.