public class MockConnection extends ConnectionBase implements Connection
| 构造器和说明 |
|---|
MockConnection() |
MockConnection(MockDriver driver,
String url,
Properties connectProperties) |
clearWarnings, getAutoCommit, getCatalog, getConnectProperties, getHoldability, getTransactionIsolation, getUrl, getWarnings, isReadOnly, setCatalog, setHoldability, setReadOnly, setTransactionIsolation, setWaringspublic MockConnection()
public MockConnection(MockDriver driver, String url, Properties connectProperties)
public long getLastActiveTimeMillis()
public void setLastActiveTimeMillis(long lastActiveTimeMillis)
public long getCreatedTimeMillis()
public long getId()
public MockDriver getDriver()
public void setDriver(MockDriver driver)
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap 在接口中 WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor 在接口中 WrapperSQLExceptionpublic Statement createStatement() throws SQLException
createStatement 在接口中 ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql) throws SQLException
prepareStatement 在接口中 ConnectionSQLExceptionpublic CallableStatement prepareCall(String sql) throws SQLException
prepareCall 在接口中 ConnectionSQLExceptionpublic String nativeSQL(String sql) throws SQLException
nativeSQL 在接口中 ConnectionSQLExceptionpublic void setAutoCommit(boolean autoCommit)
throws SQLException
setAutoCommit 在接口中 ConnectionsetAutoCommit 在类中 ConnectionBaseSQLExceptionpublic void commit()
throws SQLException
commit 在接口中 ConnectionSQLExceptionpublic void rollback()
throws SQLException
rollback 在接口中 ConnectionSQLExceptionpublic void close()
throws SQLException
close 在接口中 AutoCloseableclose 在接口中 ConnectionSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed 在接口中 ConnectionSQLExceptionpublic DatabaseMetaData getMetaData() throws SQLException
getMetaData 在接口中 ConnectionSQLExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
createStatement 在接口中 ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareStatement 在接口中 ConnectionSQLExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareCall 在接口中 ConnectionSQLExceptionpublic Map<String,Class<?>> getTypeMap() throws SQLException
getTypeMap 在接口中 ConnectiongetTypeMap 在类中 ConnectionBaseSQLExceptionpublic void setTypeMap(Map<String,Class<?>> map) throws SQLException
setTypeMap 在接口中 ConnectionsetTypeMap 在类中 ConnectionBaseSQLExceptionpublic Savepoint setSavepoint() throws SQLException
setSavepoint 在接口中 ConnectionSQLExceptionpublic Savepoint setSavepoint(String name) throws SQLException
setSavepoint 在接口中 ConnectionSQLExceptionpublic void rollback(Savepoint savepoint) throws SQLException
rollback 在接口中 ConnectionSQLExceptionpublic void releaseSavepoint(Savepoint savepoint) throws SQLException
releaseSavepoint 在接口中 ConnectionSQLExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
createStatement 在接口中 ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareStatement 在接口中 ConnectionSQLExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareCall 在接口中 ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
prepareStatement 在接口中 ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
prepareStatement 在接口中 ConnectionSQLExceptionpublic PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
prepareStatement 在接口中 ConnectionSQLExceptionpublic Clob createClob() throws SQLException
createClob 在接口中 ConnectionSQLExceptionpublic Blob createBlob() throws SQLException
createBlob 在接口中 ConnectionSQLExceptionpublic NClob createNClob() throws SQLException
createNClob 在接口中 ConnectionSQLExceptionpublic SQLXML createSQLXML() throws SQLException
createSQLXML 在接口中 ConnectionSQLExceptionpublic boolean isValid(int timeout)
throws SQLException
isValid 在接口中 ConnectionSQLExceptionpublic void setClientInfo(String name, String value) throws SQLClientInfoException
setClientInfo 在接口中 ConnectionSQLClientInfoExceptionpublic void setClientInfo(Properties properties) throws SQLClientInfoException
setClientInfo 在接口中 ConnectionSQLClientInfoExceptionpublic String getClientInfo(String name) throws SQLException
getClientInfo 在接口中 ConnectionSQLExceptionpublic Properties getClientInfo() throws SQLException
getClientInfo 在接口中 ConnectionSQLExceptionpublic Array createArrayOf(String typeName, Object[] elements) throws SQLException
createArrayOf 在接口中 ConnectionSQLExceptionpublic Struct createStruct(String typeName, Object[] attributes) throws SQLException
createStruct 在接口中 ConnectionSQLExceptionpublic void setSchema(String schema) throws SQLException
setSchema 在接口中 ConnectionSQLExceptionpublic String getSchema() throws SQLException
getSchema 在接口中 ConnectionSQLExceptionpublic void abort(Executor executor) throws SQLException
abort 在接口中 ConnectionSQLExceptionpublic void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException
setNetworkTimeout 在接口中 ConnectionSQLExceptionpublic int getNetworkTimeout()
throws SQLException
getNetworkTimeout 在接口中 ConnectionSQLExceptionpublic void handleSleep()
Copyright © 2012 Alibaba Group. All Rights Reserved.