类 MockStatement
java.lang.Object
com.alibaba.druid.util.jdbc.StatementBase
com.alibaba.druid.mock.MockStatement
- 所有已实现的接口:
MockStatementBase,AutoCloseable,Statement,Wrapper
-
字段概要
字段从类继承的字段 com.alibaba.druid.util.jdbc.StatementBase
closed, generatedKeys, resultSet -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidbooleanexecuteQuery(String sql) intexecuteUpdate(String sql) voidsetFakeConnection(MockConnection fakeConnection) 从类继承的方法 com.alibaba.druid.util.jdbc.StatementBase
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从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeUpdate, executeUpdate, executeUpdate, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout从接口继承的方法 java.sql.Wrapper
isWrapperFor, unwrap
-
字段详细资料
-
ERROR_SQL
- 另请参阅:
-
mockConnection
-
-
构造器详细资料
-
MockStatement
-
-
方法详细资料
-
checkOpen
- 覆盖:
checkOpen在类中StatementBase- 抛出:
SQLException
-
getConnection
- 指定者:
getConnection在接口中MockStatementBase- 指定者:
getConnection在接口中Statement- 覆盖:
getConnection在类中StatementBase
-
setFakeConnection
-
executeQuery
- 指定者:
executeQuery在接口中Statement- 覆盖:
executeQuery在类中StatementBase- 抛出:
SQLException
-
executeUpdate
- 指定者:
executeUpdate在接口中Statement- 覆盖:
executeUpdate在类中StatementBase- 抛出:
SQLException
-
execute
- 指定者:
execute在接口中Statement- 覆盖:
execute在类中StatementBase- 抛出:
SQLException
-