OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / libcore / luni / src / test / java / org / apache / harmony / sql / tests / java / sql / TestHelper_Connection1.java
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
18 package org.apache.harmony.sql.tests.java.sql;
19
20 import java.sql.Array;
21 import java.sql.Blob;
22 import java.sql.CallableStatement;
23 import java.sql.Clob;
24 import java.sql.Connection;
25 import java.sql.DatabaseMetaData;
26 import java.sql.NClob;
27 import java.sql.PreparedStatement;
28 import java.sql.SQLClientInfoException;
29 import java.sql.SQLException;
30 import java.sql.SQLWarning;
31 import java.sql.SQLXML;
32 import java.sql.Savepoint;
33 import java.sql.Statement;
34 import java.sql.Struct;
35 import java.util.Map;
36 import 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  *
42  */
43 public class TestHelper_Connection1 implements Connection {
44     public void clearWarnings() throws SQLException {
45     }
46
47     public void close() throws SQLException {
48     }
49
50     public void commit() throws SQLException {
51     }
52
53     public Statement createStatement() throws SQLException {
54         return null;
55     }
56
57     public Statement createStatement(int resultSetType,
58             int resultSetConcurrency, int resultSetHoldability)
59             throws SQLException {
60         return null;
61     }
62
63     public Statement createStatement(int resultSetType, int resultSetConcurrency)
64             throws SQLException {
65         return null;
66     }
67
68     public boolean getAutoCommit() throws SQLException {
69         return false;
70     }
71
72     public String getCatalog() throws SQLException {
73         return null;
74     }
75
76     public int getHoldability() throws SQLException {
77         return 0;
78     }
79
80     public DatabaseMetaData getMetaData() throws SQLException {
81         return null;
82     }
83
84     public int getTransactionIsolation() throws SQLException {
85         return 0;
86     }
87
88     public Map<String, Class<?>> getTypeMap() throws SQLException {
89         return null;
90     }
91
92     public SQLWarning getWarnings() throws SQLException {
93         return null;
94     }
95
96     public boolean isClosed() throws SQLException {
97         return false;
98     }
99
100     public boolean isReadOnly() throws SQLException {
101         return false;
102     }
103
104     public String nativeSQL(String sql) throws SQLException {
105         return null;
106     }
107
108     public CallableStatement prepareCall(String sql, int resultSetType,
109             int resultSetConcurrency, int resultSetHoldability)
110             throws SQLException {
111         return null;
112     }
113
114     public CallableStatement prepareCall(String sql, int resultSetType,
115             int resultSetConcurrency) throws SQLException {
116         return null;
117     }
118
119     public CallableStatement prepareCall(String sql) throws SQLException {
120         return null;
121     }
122
123     public PreparedStatement prepareStatement(String sql, int resultSetType,
124             int resultSetConcurrency, int resultSetHoldability)
125             throws SQLException {
126         return null;
127     }
128
129     public PreparedStatement prepareStatement(String sql, int resultSetType,
130             int resultSetConcurrency) throws SQLException {
131         return null;
132     }
133
134     public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
135             throws SQLException {
136         return null;
137     }
138
139     public PreparedStatement prepareStatement(String sql, int[] columnIndexes)
140             throws SQLException {
141         return null;
142     }
143
144     public PreparedStatement prepareStatement(String sql, String[] columnNames)
145             throws SQLException {
146         return null;
147     }
148
149     public PreparedStatement prepareStatement(String sql) throws SQLException {
150         return null;
151     }
152
153     public void releaseSavepoint(Savepoint savepoint) throws SQLException {
154     }
155
156     public void rollback() throws SQLException {
157     }
158
159     public void rollback(Savepoint savepoint) throws SQLException {
160     }
161
162     public void setAutoCommit(boolean autoCommit) throws SQLException {
163     }
164
165     public void setCatalog(String catalog) throws SQLException {
166     }
167
168     public void setHoldability(int holdability) throws SQLException {
169     }
170
171     public void setReadOnly(boolean readOnly) throws SQLException {
172     }
173
174     public Savepoint setSavepoint() throws SQLException {
175         return null;
176     }
177
178     public Savepoint setSavepoint(String name) throws SQLException {
179         return null;
180     }
181
182     public void setTransactionIsolation(int level) throws SQLException {
183     }
184
185     public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
186     }
187
188     public boolean isWrapperFor(Class<?> iface) throws SQLException {
189         return false;
190     }
191
192     public <T> T unwrap(Class<T> iface) throws SQLException {
193         return null;
194     }
195
196     public Array createArrayOf(String typeName, Object[] elements)
197             throws SQLException {
198         return null;
199     }
200
201     public Blob createBlob() throws SQLException {
202         return null;
203     }
204
205     public Clob createClob() throws SQLException {
206         return null;
207     }
208
209     public NClob createNClob() throws SQLException {
210         return null;
211     }
212
213     public SQLXML createSQLXML() throws SQLException {
214         return null;
215     }
216
217     public Struct createStruct(String typeName, Object[] attributes)
218             throws SQLException {
219         return null;
220     }
221
222     public String getClientInfo(String name) throws SQLException {
223         return null;
224     }
225
226     public Properties getClientInfo() throws SQLException {
227         return null;
228     }
229
230     public boolean isValid(int timeout) throws SQLException {
231         return false;
232     }
233
234     public void setClientInfo(String name, String value)
235             throws SQLClientInfoException {
236
237     }
238
239     public void setClientInfo(Properties properties)
240             throws SQLClientInfoException {
241
242     }
243 }