001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: package org.apache.harmony.sql.tests.java.sql;
019:
020: import java.sql.CallableStatement;
021: import java.sql.Connection;
022: import java.sql.DatabaseMetaData;
023: import java.sql.PreparedStatement;
024: import java.sql.SQLException;
025: import java.sql.SQLWarning;
026: import java.sql.Savepoint;
027: import java.sql.Statement;
028: import java.util.Map;
029:
030: /**
031: * Helper class for the java.sql tests - a skeleton class which implements the
032: * java.sql.Connection interface
033: *
034: */
035: public class TestHelper_Connection1 implements Connection {
036: public void clearWarnings() throws SQLException {
037: }
038:
039: public void close() throws SQLException {
040: }
041:
042: public void commit() throws SQLException {
043: }
044:
045: public Statement createStatement() throws SQLException {
046: return null;
047: }
048:
049: public Statement createStatement(int resultSetType,
050: int resultSetConcurrency, int resultSetHoldability)
051: throws SQLException {
052: return null;
053: }
054:
055: public Statement createStatement(int resultSetType,
056: int resultSetConcurrency) throws SQLException {
057: return null;
058: }
059:
060: public boolean getAutoCommit() throws SQLException {
061: return false;
062: }
063:
064: public String getCatalog() throws SQLException {
065: return null;
066: }
067:
068: public int getHoldability() throws SQLException {
069: return 0;
070: }
071:
072: public DatabaseMetaData getMetaData() throws SQLException {
073: return null;
074: }
075:
076: public int getTransactionIsolation() throws SQLException {
077: return 0;
078: }
079:
080: public Map<String, Class<?>> getTypeMap() throws SQLException {
081: return null;
082: }
083:
084: public SQLWarning getWarnings() throws SQLException {
085: return null;
086: }
087:
088: public boolean isClosed() throws SQLException {
089: return false;
090: }
091:
092: public boolean isReadOnly() throws SQLException {
093: return false;
094: }
095:
096: public String nativeSQL(String sql) throws SQLException {
097: return null;
098: }
099:
100: public CallableStatement prepareCall(String sql, int resultSetType,
101: int resultSetConcurrency, int resultSetHoldability)
102: throws SQLException {
103: return null;
104: }
105:
106: public CallableStatement prepareCall(String sql, int resultSetType,
107: int resultSetConcurrency) throws SQLException {
108: return null;
109: }
110:
111: public CallableStatement prepareCall(String sql)
112: throws SQLException {
113: return null;
114: }
115:
116: public PreparedStatement prepareStatement(String sql,
117: int resultSetType, int resultSetConcurrency,
118: int resultSetHoldability) throws SQLException {
119: return null;
120: }
121:
122: public PreparedStatement prepareStatement(String sql,
123: int resultSetType, int resultSetConcurrency)
124: throws SQLException {
125: return null;
126: }
127:
128: public PreparedStatement prepareStatement(String sql,
129: int autoGeneratedKeys) throws SQLException {
130: return null;
131: }
132:
133: public PreparedStatement prepareStatement(String sql,
134: int[] columnIndexes) throws SQLException {
135: return null;
136: }
137:
138: public PreparedStatement prepareStatement(String sql,
139: String[] columnNames) throws SQLException {
140: return null;
141: }
142:
143: public PreparedStatement prepareStatement(String sql)
144: throws SQLException {
145: return null;
146: }
147:
148: public void releaseSavepoint(Savepoint savepoint)
149: throws SQLException {
150: }
151:
152: public void rollback() throws SQLException {
153: }
154:
155: public void rollback(Savepoint savepoint) throws SQLException {
156: }
157:
158: public void setAutoCommit(boolean autoCommit) throws SQLException {
159: }
160:
161: public void setCatalog(String catalog) throws SQLException {
162: }
163:
164: public void setHoldability(int holdability) throws SQLException {
165: }
166:
167: public void setReadOnly(boolean readOnly) throws SQLException {
168: }
169:
170: public Savepoint setSavepoint() throws SQLException {
171: return null;
172: }
173:
174: public Savepoint setSavepoint(String name) throws SQLException {
175: return null;
176: }
177:
178: public void setTransactionIsolation(int level) throws SQLException {
179: }
180:
181: public void setTypeMap(Map<String, Class<?>> map)
182: throws SQLException {
183: }
184: }
|