Path: blob/master/test/jdk/java/sql/modules/luckydogdriver/luckydogtennis/StubConnection.java
41161 views
/*1* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/22package luckydogtennis;2324import java.sql.Array;25import java.sql.Blob;26import java.sql.CallableStatement;27import java.sql.Clob;28import java.sql.Connection;29import java.sql.DatabaseMetaData;30import java.sql.NClob;31import java.sql.PreparedStatement;32import java.sql.SQLClientInfoException;33import java.sql.SQLException;34import java.sql.SQLWarning;35import java.sql.SQLXML;36import java.sql.Savepoint;37import java.sql.Statement;38import java.sql.Struct;39import java.util.Map;40import java.util.Properties;41import java.util.concurrent.Executor;4243public class StubConnection implements Connection{4445@Override46public Statement createStatement() throws SQLException {47throw new UnsupportedOperationException("Not supported yet.");48}4950@Override51public PreparedStatement prepareStatement(String sql) throws SQLException {52throw new UnsupportedOperationException("Not supported yet.");53}5455@Override56public CallableStatement prepareCall(String sql) throws SQLException {57throw new UnsupportedOperationException("Not supported yet.");58}5960@Override61public String nativeSQL(String sql) throws SQLException {62throw new UnsupportedOperationException("Not supported yet.");63}6465@Override66public void setAutoCommit(boolean autoCommit) throws SQLException {67throw new UnsupportedOperationException("Not supported yet.");68}6970@Override71public boolean getAutoCommit() throws SQLException {72throw new UnsupportedOperationException("Not supported yet.");73}7475@Override76public void commit() throws SQLException {77throw new UnsupportedOperationException("Not supported yet.");78}7980@Override81public void rollback() throws SQLException {82throw new UnsupportedOperationException("Not supported yet.");83}8485@Override86public void close() throws SQLException {87throw new UnsupportedOperationException("Not supported yet.");88}8990@Override91public boolean isClosed() throws SQLException {92throw new UnsupportedOperationException("Not supported yet.");93}9495@Override96public DatabaseMetaData getMetaData() throws SQLException {97throw new UnsupportedOperationException("Not supported yet.");98}99100@Override101public void setReadOnly(boolean readOnly) throws SQLException {102throw new UnsupportedOperationException("Not supported yet.");103}104105@Override106public boolean isReadOnly() throws SQLException {107throw new UnsupportedOperationException("Not supported yet.");108}109110@Override111public void setCatalog(String catalog) throws SQLException {112throw new UnsupportedOperationException("Not supported yet.");113}114115@Override116public String getCatalog() throws SQLException {117throw new UnsupportedOperationException("Not supported yet.");118}119120@Override121public void setTransactionIsolation(int level) throws SQLException {122throw new UnsupportedOperationException("Not supported yet.");123}124125@Override126public int getTransactionIsolation() throws SQLException {127throw new UnsupportedOperationException("Not supported yet.");128}129130@Override131public SQLWarning getWarnings() throws SQLException {132throw new UnsupportedOperationException("Not supported yet.");133}134135@Override136public void clearWarnings() throws SQLException {137throw new UnsupportedOperationException("Not supported yet.");138}139140@Override141public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException {142throw new UnsupportedOperationException("Not supported yet.");143}144145@Override146public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {147throw new UnsupportedOperationException("Not supported yet.");148}149150@Override151public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {152throw new UnsupportedOperationException("Not supported yet.");153}154155@Override156public Map<String, Class<?>> getTypeMap() throws SQLException {157throw new UnsupportedOperationException("Not supported yet.");158}159160@Override161public void setTypeMap(Map<String, Class<?>> map) throws SQLException {162throw new UnsupportedOperationException("Not supported yet.");163}164165@Override166public void setHoldability(int holdability) throws SQLException {167throw new UnsupportedOperationException("Not supported yet.");168}169170@Override171public int getHoldability() throws SQLException {172throw new UnsupportedOperationException("Not supported yet.");173}174175@Override176public Savepoint setSavepoint() throws SQLException {177throw new UnsupportedOperationException("Not supported yet.");178}179180@Override181public Savepoint setSavepoint(String name) throws SQLException {182throw new UnsupportedOperationException("Not supported yet.");183}184185@Override186public void rollback(Savepoint savepoint) throws SQLException {187throw new UnsupportedOperationException("Not supported yet.");188}189190@Override191public void releaseSavepoint(Savepoint savepoint) throws SQLException {192throw new UnsupportedOperationException("Not supported yet.");193}194195@Override196public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {197throw new UnsupportedOperationException("Not supported yet.");198}199200@Override201public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {202throw new UnsupportedOperationException("Not supported yet.");203}204205@Override206public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {207throw new UnsupportedOperationException("Not supported yet.");208}209210@Override211public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException {212throw new UnsupportedOperationException("Not supported yet.");213}214215@Override216public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException {217throw new UnsupportedOperationException("Not supported yet.");218}219220@Override221public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException {222throw new UnsupportedOperationException("Not supported yet.");223}224225@Override226public Clob createClob() throws SQLException {227throw new UnsupportedOperationException("Not supported yet.");228}229230@Override231public Blob createBlob() throws SQLException {232throw new UnsupportedOperationException("Not supported yet.");233}234235@Override236public NClob createNClob() throws SQLException {237throw new UnsupportedOperationException("Not supported yet.");238}239240@Override241public SQLXML createSQLXML() throws SQLException {242throw new UnsupportedOperationException("Not supported yet.");243}244245@Override246public boolean isValid(int timeout) throws SQLException {247throw new UnsupportedOperationException("Not supported yet.");248}249250@Override251public void setClientInfo(String name, String value) throws SQLClientInfoException {252throw new UnsupportedOperationException("Not supported yet.");253}254255@Override256public void setClientInfo(Properties properties) throws SQLClientInfoException {257throw new UnsupportedOperationException("Not supported yet.");258}259260@Override261public String getClientInfo(String name) throws SQLException {262throw new UnsupportedOperationException("Not supported yet.");263}264265@Override266public Properties getClientInfo() throws SQLException {267throw new UnsupportedOperationException("Not supported yet.");268}269270@Override271public Array createArrayOf(String typeName, Object[] elements) throws SQLException {272throw new UnsupportedOperationException("Not supported yet.");273}274275@Override276public Struct createStruct(String typeName, Object[] attributes) throws SQLException {277throw new UnsupportedOperationException("Not supported yet.");278}279280@Override281public void setSchema(String schema) throws SQLException {282throw new UnsupportedOperationException("Not supported yet.");283}284285@Override286public String getSchema() throws SQLException {287throw new UnsupportedOperationException("Not supported yet.");288}289290@Override291public void abort(Executor executor) throws SQLException {292throw new UnsupportedOperationException("Not supported yet.");293}294295@Override296public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {297throw new UnsupportedOperationException("Not supported yet.");298}299300@Override301public int getNetworkTimeout() throws SQLException {302throw new UnsupportedOperationException("Not supported yet.");303}304305@Override306public <T> T unwrap(Class<T> iface) throws SQLException {307throw new UnsupportedOperationException("Not supported yet.");308}309310@Override311public boolean isWrapperFor(Class<?> iface) throws SQLException {312throw new UnsupportedOperationException("Not supported yet.");313}314}315316317