1/* 2 * Licensed to the Apache Software Foundation (ASF) under one or more 3 * contributor license agreements. See the NOTICE file distributed with 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 7 * the License. You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18package org.apache.harmony.sql.tests.java.sql; 19 20import java.sql.Array; 21import java.sql.Blob; 22import java.sql.CallableStatement; 23import java.sql.Clob; 24import java.sql.Connection; 25import java.sql.DatabaseMetaData; 26import java.sql.NClob; 27import java.sql.PreparedStatement; 28import java.sql.SQLClientInfoException; 29import java.sql.SQLException; 30import java.sql.SQLWarning; 31import java.sql.SQLXML; 32import java.sql.Savepoint; 33import java.sql.Statement; 34import java.sql.Struct; 35import java.util.Map; 36import java.util.Properties; 37 38/** 39 * Helper class for the java.sql tests - a skeleton class which implements the 40 * java.sql.Connection interface 41 */ 42public class TestHelper_Connection1 implements Connection { 43 public void clearWarnings() throws SQLException { 44 } 45 46 public void close() throws SQLException { 47 } 48 49 public void commit() throws SQLException { 50 } 51 52 public Statement createStatement() throws SQLException { 53 return null; 54 } 55 56 public Statement createStatement(int resultSetType, 57 int resultSetConcurrency, int resultSetHoldability) 58 throws SQLException { 59 return null; 60 } 61 62 public Statement createStatement(int resultSetType, int resultSetConcurrency) 63 throws SQLException { 64 return null; 65 } 66 67 public boolean getAutoCommit() throws SQLException { 68 return false; 69 } 70 71 public String getCatalog() throws SQLException { 72 return null; 73 } 74 75 public int getHoldability() throws SQLException { 76 return 0; 77 } 78 79 public DatabaseMetaData getMetaData() throws SQLException { 80 return null; 81 } 82 83 public int getTransactionIsolation() throws SQLException { 84 return 0; 85 } 86 87 public Map<String, Class<?>> getTypeMap() throws SQLException { 88 return null; 89 } 90 91 public SQLWarning getWarnings() throws SQLException { 92 return null; 93 } 94 95 public boolean isClosed() throws SQLException { 96 return false; 97 } 98 99 public boolean isReadOnly() throws SQLException { 100 return false; 101 } 102 103 public String nativeSQL(String sql) throws SQLException { 104 return null; 105 } 106 107 public CallableStatement prepareCall(String sql, int resultSetType, 108 int resultSetConcurrency, int resultSetHoldability) 109 throws SQLException { 110 return null; 111 } 112 113 public CallableStatement prepareCall(String sql, int resultSetType, 114 int resultSetConcurrency) throws SQLException { 115 return null; 116 } 117 118 public CallableStatement prepareCall(String sql) throws SQLException { 119 return null; 120 } 121 122 public PreparedStatement prepareStatement(String sql, int resultSetType, 123 int resultSetConcurrency, int resultSetHoldability) 124 throws SQLException { 125 return null; 126 } 127 128 public PreparedStatement prepareStatement(String sql, int resultSetType, 129 int resultSetConcurrency) throws SQLException { 130 return null; 131 } 132 133 public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) 134 throws SQLException { 135 return null; 136 } 137 138 public PreparedStatement prepareStatement(String sql, int[] columnIndexes) 139 throws SQLException { 140 return null; 141 } 142 143 public PreparedStatement prepareStatement(String sql, String[] columnNames) 144 throws SQLException { 145 return null; 146 } 147 148 public PreparedStatement prepareStatement(String sql) throws SQLException { 149 return null; 150 } 151 152 public void releaseSavepoint(Savepoint savepoint) throws SQLException { 153 } 154 155 public void rollback() throws SQLException { 156 } 157 158 public void rollback(Savepoint savepoint) throws SQLException { 159 } 160 161 public void setAutoCommit(boolean autoCommit) throws SQLException { 162 } 163 164 public void setCatalog(String catalog) throws SQLException { 165 } 166 167 public void setHoldability(int holdability) throws SQLException { 168 } 169 170 public void setReadOnly(boolean readOnly) throws SQLException { 171 } 172 173 public Savepoint setSavepoint() throws SQLException { 174 return null; 175 } 176 177 public Savepoint setSavepoint(String name) throws SQLException { 178 return null; 179 } 180 181 public void setTransactionIsolation(int level) throws SQLException { 182 } 183 184 public void setTypeMap(Map<String, Class<?>> map) throws SQLException { 185 } 186 187 public boolean isWrapperFor(Class<?> iface) throws SQLException { 188 return false; 189 } 190 191 public <T> T unwrap(Class<T> iface) throws SQLException { 192 return null; 193 } 194 195 public Array createArrayOf(String typeName, Object[] elements) 196 throws SQLException { 197 return null; 198 } 199 200 public Blob createBlob() throws SQLException { 201 return null; 202 } 203 204 public Clob createClob() throws SQLException { 205 return null; 206 } 207 208 public NClob createNClob() throws SQLException { 209 return null; 210 } 211 212 public SQLXML createSQLXML() throws SQLException { 213 return null; 214 } 215 216 public Struct createStruct(String typeName, Object[] attributes) 217 throws SQLException { 218 return null; 219 } 220 221 public String getClientInfo(String name) throws SQLException { 222 return null; 223 } 224 225 public Properties getClientInfo() throws SQLException { 226 return null; 227 } 228 229 public boolean isValid(int timeout) throws SQLException { 230 return false; 231 } 232 233 public void setClientInfo(String name, String value) 234 throws SQLClientInfoException { 235 236 } 237 238 public void setClientInfo(Properties properties) 239 throws SQLClientInfoException { 240 241 } 242} 243