public class MockStatement extends StatementBase implements MockStatementBase, Statement
| 构造器和说明 |
|---|
MockStatement(Connection connection) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
execute(String sql) |
ResultSet |
executeQuery(String sql) |
int |
executeUpdate(String sql) |
MockConnection |
getConnection() |
void |
setFakeConnection(MockConnection fakeConnection) |
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, executeUpdate, getCursorName, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isEscapeProcessing, isPoolable, isWrapperFor, setConnection, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setGeneratedKeys, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, setResultSet, setResultSetConcurrency, setResultSetHoldability, setResultSetType, setUpdateCount, setWarning, setWarnings, unwrapaddBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, executeUpdate, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutisWrapperFor, unwrappublic MockStatement(Connection connection)
public MockConnection getConnection()
getConnection 在接口中 MockStatementBasegetConnection 在接口中 StatementgetConnection 在类中 StatementBasepublic void setFakeConnection(MockConnection fakeConnection)
public ResultSet executeQuery(String sql) throws SQLException
executeQuery 在接口中 StatementexecuteQuery 在类中 StatementBaseSQLExceptionpublic int executeUpdate(String sql) throws SQLException
executeUpdate 在接口中 StatementexecuteUpdate 在类中 StatementBaseSQLExceptionpublic boolean execute(String sql) throws SQLException
execute 在接口中 Statementexecute 在类中 StatementBaseSQLExceptionCopyright © 2012 Alibaba Group. All Rights Reserved.