类 MockDriver
java.lang.Object
com.alibaba.druid.mock.MockDriver
- 所有已实现的接口:
MockDriverMBean,Driver
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanacceptsURL(String url) protected voidvoidconnect(String url, Properties info) protected BlobcreateBlob(MockConnection conn) protected ClobcreateClob(MockConnection conn) createMockCallableStatement(MockConnection conn, String sql) createMockConnection(MockDriver driver, String url, Properties connectProperties) createMockPreparedStatement(MockConnection conn, String sql) protected NClobcreateNClob(MockConnection conn) protected SQLXMLcreateSQLXML(MockConnection conn) executeQuery(MockStatementBase stmt, String sql) longlongintlongintintgetPropertyInfo(String url, Properties info) voidhandleSleep(MockConnection conn) protected voidbooleanbooleanstatic booleanregisterDriver(Driver driver) voidsetExecuteHandler(MockExecuteHandler executeHandler) voidsetIdleTimeCount(long idleTimeCount) voidsetLogExecuteQueryEnable(boolean logExecuteQueryEnable)
-
字段详细资料
-
DEFAULT_HANDLER
-
instance
-
-
构造器详细资料
-
MockDriver
public MockDriver()
-
-
方法详细资料
-
isLogExecuteQueryEnable
public boolean isLogExecuteQueryEnable()- 指定者:
isLogExecuteQueryEnable在接口中MockDriverMBean
-
setLogExecuteQueryEnable
public void setLogExecuteQueryEnable(boolean logExecuteQueryEnable) - 指定者:
setLogExecuteQueryEnable在接口中MockDriverMBean
-
getIdleTimeCount
public long getIdleTimeCount()- 指定者:
getIdleTimeCount在接口中MockDriverMBean
-
setIdleTimeCount
public void setIdleTimeCount(long idleTimeCount) - 指定者:
setIdleTimeCount在接口中MockDriverMBean
-
generateConnectionId
public long generateConnectionId() -
closeAllConnections
- 指定者:
closeAllConnections在接口中MockDriverMBean- 抛出:
SQLException
-
getConnectionsSize
public int getConnectionsSize()- 指定者:
getConnectionsSize在接口中MockDriverMBean
-
getConnections
-
incrementConnectionCloseCount
protected void incrementConnectionCloseCount() -
getConnectionCloseCount
public long getConnectionCloseCount()- 指定者:
getConnectionCloseCount在接口中MockDriverMBean
-
afterConnectionClose
-
registerDriver
-
getExecuteHandler
-
setExecuteHandler
-
connect
- 指定者:
connect在接口中Driver- 抛出:
SQLException
-
acceptsURL
- 指定者:
acceptsURL在接口中Driver- 指定者:
acceptsURL在接口中MockDriverMBean- 抛出:
SQLException
-
getPropertyInfo
- 指定者:
getPropertyInfo在接口中Driver- 抛出:
SQLException
-
getMajorVersion
public int getMajorVersion()- 指定者:
getMajorVersion在接口中Driver- 指定者:
getMajorVersion在接口中MockDriverMBean
-
getMinorVersion
public int getMinorVersion()- 指定者:
getMinorVersion在接口中Driver- 指定者:
getMinorVersion在接口中MockDriverMBean
-
jdbcCompliant
public boolean jdbcCompliant()- 指定者:
jdbcCompliant在接口中Driver- 指定者:
jdbcCompliant在接口中MockDriverMBean
-
createMockResultSet
-
executeQuery
- 抛出:
SQLException
-
handleSleep
-
createResultSet
-
createClob
- 抛出:
SQLException
-
createBlob
- 抛出:
SQLException
-
createNClob
- 抛出:
SQLException
-
createSQLXML
- 抛出:
SQLException
-
getParentLogger
- 指定者:
getParentLogger在接口中Driver- 抛出:
SQLFeatureNotSupportedException
-
createMockConnection
public MockConnection createMockConnection(MockDriver driver, String url, Properties connectProperties) -
createMockPreparedStatement
-
createMockStatement
-
createMockCallableStatement
-