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, unwrap
addBatch, 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, setQueryTimeout
isWrapperFor, unwrap
public MockStatement(Connection connection)
public MockConnection getConnection()
getConnection
在接口中 MockStatementBase
getConnection
在接口中 Statement
getConnection
在类中 StatementBase
public void setFakeConnection(MockConnection fakeConnection)
public ResultSet executeQuery(String sql) throws SQLException
executeQuery
在接口中 Statement
executeQuery
在类中 StatementBase
SQLException
public int executeUpdate(String sql) throws SQLException
executeUpdate
在接口中 Statement
executeUpdate
在类中 StatementBase
SQLException
public boolean execute(String sql) throws SQLException
execute
在接口中 Statement
execute
在类中 StatementBase
SQLException
Copyright © 2012 Alibaba Group. All Rights Reserved.