/bonecp-jdk-compat/src/main/java/java/sql/Connection.java
http://github.com/wwadge/bonecp · Java · 110 lines · 83 code · 5 blank · 22 comment · 0 complexity · de041d1486382c710990471cf4916c07 MD5 · raw file
- /**
- * Copyright 2010 Wallace Wadge
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- /**
- *
- */
- package java.sql;
- /**
- * @author wwadge
- *
- */
- import java.util.Properties;
- import java.util.concurrent.Executor;
- public interface Connection{
- int TRANSACTION_NONE = 0;
- int TRANSACTION_READ_UNCOMMITTED = 1;
- int TRANSACTION_READ_COMMITTED = 2;
- int TRANSACTION_REPEATABLE_READ = 4;
- int TRANSACTION_SERIALIZABLE = 8;
- Statement createStatement() throws SQLException;
- PreparedStatement prepareStatement(String sql)
- throws SQLException;
- CallableStatement prepareCall(String sql) throws SQLException;
- String nativeSQL(String sql) throws SQLException;
- void setAutoCommit(boolean autoCommit) throws SQLException;
- boolean getAutoCommit() throws SQLException;
- void commit() throws SQLException;
- void rollback() throws SQLException;
- void close() throws SQLException;
- boolean isClosed() throws SQLException;
- DatabaseMetaData getMetaData() throws SQLException;
- void setReadOnly(boolean readOnly) throws SQLException;
- boolean isReadOnly() throws SQLException;
- void setCatalog(String catalog) throws SQLException;
- String getCatalog() throws SQLException;
- void setTransactionIsolation(int level) throws SQLException;
- int getTransactionIsolation() throws SQLException;
- SQLWarning getWarnings() throws SQLException;
- void clearWarnings() throws SQLException;
- Statement createStatement(int resultSetType, int resultSetConcurrency)
- throws SQLException;
- PreparedStatement prepareStatement(String sql, int resultSetType,
- int resultSetConcurrency)
- throws SQLException;
- CallableStatement prepareCall(String sql, int resultSetType,
- int resultSetConcurrency) throws SQLException;
- java.util.Map<String,Class<?>> getTypeMap() throws SQLException;
- void setTypeMap(java.util.Map<String,Class<?>> map) throws SQLException;
- void setHoldability(int holdability) throws SQLException;
- int getHoldability() throws SQLException;
- Savepoint setSavepoint() throws SQLException;
- Savepoint setSavepoint(String name) throws SQLException;
- void rollback(Savepoint savepoint) throws SQLException;
- void releaseSavepoint(Savepoint savepoint) throws SQLException;
- Statement createStatement(int resultSetType, int resultSetConcurrency,
- int resultSetHoldability) throws SQLException;
- PreparedStatement prepareStatement(String sql, int resultSetType,
- int resultSetConcurrency, int resultSetHoldability)
- throws SQLException;
- CallableStatement prepareCall(String sql, int resultSetType,
- int resultSetConcurrency,
- int resultSetHoldability) throws SQLException;
- PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
- throws SQLException;
- PreparedStatement prepareStatement(String sql, int columnIndexes[])
- throws SQLException;
- PreparedStatement prepareStatement(String sql, String columnNames[])
- throws SQLException;
- Clob createClob() throws SQLException;
- Blob createBlob() throws SQLException;
- NClob createNClob() throws SQLException;
- SQLXML createSQLXML() throws SQLException;
- boolean isValid(int timeout) throws SQLException;
- void setClientInfo(String name, String value)
- throws SQLClientInfoException;
- void setClientInfo(Properties properties)
- throws SQLClientInfoException;
- String getClientInfo(String name)
- throws SQLException;
- Properties getClientInfo()
- throws SQLException;
- Array createArrayOf(String typeName, Object[] elements) throws
- SQLException;
- Struct createStruct(String typeName, Object[] attributes)
- throws SQLException;
- void setSchema(String schema) throws SQLException;
- String getSchema() throws SQLException;
- void abort(Executor executor) throws SQLException;
- void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException;
- int getNetworkTimeout() throws SQLException;
- boolean isWrapperFor(Class<?> iface) throws SQLException;
- <T> T unwrap(Class<T> iface) throws SQLException;
- }