public class ConnectionAdapter extends Object implements Connection
Title: 常用代码打包
Description: An adapter for the connection interface. This is necessary so that other classes that we create that implement the Connection interface will compile with JDK 1.3 or JDK 1.4
Copyright: Copyright (c) 2006
Company: www.justdos.net
| 限定符和类型 | 字段和说明 |
|---|---|
protected Connection |
connection |
| 构造器和说明 |
|---|
ConnectionAdapter(Connection connection) |
protected Connection connection
public ConnectionAdapter(Connection connection)
public void close()
throws SQLException
close 在接口中 AutoCloseableclose 在接口中 ConnectionSQLExceptionpublic 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 在接口中 ConnectionSQLExceptionpublic boolean getAutoCommit()
throws SQLException
getAutoCommit 在接口中 ConnectionSQLExceptionpublic void commit()
throws SQLException
commit 在接口中 ConnectionSQLExceptionpublic void rollback()
throws SQLException
rollback 在接口中 ConnectionSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed 在接口中 ConnectionSQLExceptionpublic DatabaseMetaData getMetaData() throws SQLException
getMetaData 在接口中 ConnectionSQLExceptionpublic void setReadOnly(boolean readOnly)
throws SQLException
setReadOnly 在接口中 ConnectionSQLExceptionpublic boolean isReadOnly()
throws SQLException
isReadOnly 在接口中 ConnectionSQLExceptionpublic void setCatalog(String catalog) throws SQLException
setCatalog 在接口中 ConnectionSQLExceptionpublic String getCatalog() throws SQLException
getCatalog 在接口中 ConnectionSQLExceptionpublic void setTransactionIsolation(int level)
throws SQLException
setTransactionIsolation 在接口中 ConnectionSQLExceptionpublic int getTransactionIsolation()
throws SQLException
getTransactionIsolation 在接口中 ConnectionSQLExceptionpublic SQLWarning getWarnings() throws SQLException
getWarnings 在接口中 ConnectionSQLExceptionpublic void clearWarnings()
throws SQLException
clearWarnings 在接口中 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 getTypeMap() throws SQLException
getTypeMap 在接口中 ConnectionSQLExceptionpublic void setHoldability(int int0)
setHoldability 在接口中 Connectionpublic int getHoldability()
getHoldability 在接口中 Connectionpublic Savepoint setSavepoint()
setSavepoint 在接口中 Connectionpublic Savepoint setSavepoint(String string)
setSavepoint 在接口中 Connectionpublic void rollback(Savepoint savepoint)
rollback 在接口中 Connectionpublic void releaseSavepoint(Savepoint savepoint)
releaseSavepoint 在接口中 Connectionpublic Statement createStatement(int int0, int int1, int int2)
createStatement 在接口中 Connectionpublic PreparedStatement prepareStatement(String string, int int1, int int2, int int3)
prepareStatement 在接口中 Connectionpublic CallableStatement prepareCall(String string, int int1, int int2, int int3)
prepareCall 在接口中 Connectionpublic PreparedStatement prepareStatement(String string, int int1)
prepareStatement 在接口中 Connectionpublic PreparedStatement prepareStatement(String string, int[] intArray)
prepareStatement 在接口中 Connectionpublic PreparedStatement prepareStatement(String string, String[] stringArray)
prepareStatement 在接口中 Connectionpublic Array createArrayOf(String typeName, Object[] elements) throws SQLException
createArrayOf 在接口中 ConnectionSQLExceptionpublic Blob createBlob() throws SQLException
createBlob 在接口中 ConnectionSQLExceptionpublic Clob createClob() throws SQLException
createClob 在接口中 ConnectionSQLExceptionpublic Struct createStruct(String typeName, Object[] attributes) throws SQLException
createStruct 在接口中 ConnectionSQLExceptionpublic Properties getClientInfo() throws SQLException
getClientInfo 在接口中 ConnectionSQLExceptionpublic String getClientInfo(String name) throws SQLException
getClientInfo 在接口中 ConnectionSQLExceptionpublic boolean isValid(int timeout)
throws SQLException
isValid 在接口中 ConnectionSQLExceptionpublic void setTypeMap(Map<String,Class<?>> arg0) throws SQLException
setTypeMap 在接口中 ConnectionSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor 在接口中 WrapperSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap 在接口中 WrapperSQLExceptionpublic NClob createNClob() throws SQLException
createNClob 在接口中 ConnectionSQLExceptionpublic SQLXML createSQLXML() throws SQLException
createSQLXML 在接口中 ConnectionSQLExceptionpublic void setClientInfo(Properties properties) throws SQLClientInfoException
setClientInfo 在接口中 ConnectionSQLClientInfoExceptionpublic void setClientInfo(String name, String value) throws SQLClientInfoException
setClientInfo 在接口中 ConnectionSQLClientInfoExceptionpublic void abort(Executor executor) throws SQLException
abort 在接口中 ConnectionSQLExceptionpublic int getNetworkTimeout()
throws SQLException
getNetworkTimeout 在接口中 ConnectionSQLExceptionpublic String getSchema() throws SQLException
getSchema 在接口中 ConnectionSQLExceptionpublic void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException
setNetworkTimeout 在接口中 ConnectionSQLExceptionpublic void setSchema(String schema) throws SQLException
setSchema 在接口中 ConnectionSQLExceptionCopyright © 2023 onecode. All rights reserved.