com.alibaba.druid.mock
类 MockPreparedStatement

java.lang.Object
  继承者 com.alibaba.druid.util.jdbc.StatementBase
      继承者 com.alibaba.druid.util.jdbc.PreparedStatementBase
          继承者 com.alibaba.druid.mock.MockPreparedStatement
所有已实现的接口:
MockStatementBase, PreparedStatement, Statement, Wrapper
直接已知子类:
MockCallableStatement

public class MockPreparedStatement
extends PreparedStatementBase
implements MockStatementBase, PreparedStatement


字段摘要
 
从接口 java.sql.Statement 继承的字段
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
构造方法摘要
MockPreparedStatement(MockConnection conn, String sql)
           
 
方法摘要
 boolean execute()
           
 ResultSet executeQuery()
           
 int executeUpdate()
           
 MockConnection getConnection()
           
 ResultSet getResultSet()
           
 String getSql()
           
 
从类 com.alibaba.druid.util.jdbc.PreparedStatementBase 继承的方法
addBatch, clearParameters, getMetaData, getParameterMetaData, getParameters, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
 
从类 com.alibaba.druid.util.jdbc.StatementBase 继承的方法
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getCursorName, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, 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 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 java.sql.PreparedStatement 继承的方法
addBatch, clearParameters, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
 
从接口 java.sql.Statement 继承的方法
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
 
从接口 java.sql.Wrapper 继承的方法
isWrapperFor, unwrap
 

构造方法详细信息

MockPreparedStatement

public MockPreparedStatement(MockConnection conn,
                             String sql)
方法详细信息

getSql

public String getSql()

getConnection

public MockConnection getConnection()
                             throws SQLException
指定者:
接口 MockStatementBase 中的 getConnection
指定者:
接口 Statement 中的 getConnection
覆盖:
StatementBase 中的 getConnection
抛出:
SQLException

executeQuery

public ResultSet executeQuery()
                       throws SQLException
指定者:
接口 PreparedStatement 中的 executeQuery
抛出:
SQLException

executeUpdate

public int executeUpdate()
                  throws SQLException
指定者:
接口 PreparedStatement 中的 executeUpdate
抛出:
SQLException

execute

public boolean execute()
                throws SQLException
指定者:
接口 PreparedStatement 中的 execute
抛出:
SQLException

getResultSet

public ResultSet getResultSet()
                       throws SQLException
指定者:
接口 Statement 中的 getResultSet
覆盖:
StatementBase 中的 getResultSet
抛出:
SQLException


Copyright © 2013 Alibaba Group. All Rights Reserved.