Add some unit testing of the CfbSchema.
[cfb.git] / test / net / jaekl / cfb / db / driver / ConnectionMock.java
1 package net.jaekl.cfb.db.driver;
2
3 import java.sql.Array;
4 import java.sql.Blob;
5 import java.sql.CallableStatement;
6 import java.sql.Clob;
7 import java.sql.Connection;
8 import java.sql.DatabaseMetaData;
9 import java.sql.NClob;
10 import java.sql.PreparedStatement;
11 import java.sql.SQLClientInfoException;
12 import java.sql.SQLException;
13 import java.sql.SQLWarning;
14 import java.sql.SQLXML;
15 import java.sql.Savepoint;
16 import java.sql.Statement;
17 import java.sql.Struct;
18 import java.util.Map;
19 import java.util.Properties;
20 import java.util.concurrent.Executor;
21
22 public class ConnectionMock implements Connection {
23
24         @Override
25         public boolean isWrapperFor(Class<?> arg0) throws SQLException {
26                 // TODO Auto-generated method stub
27                 return false;
28         }
29
30         @Override
31         public <T> T unwrap(Class<T> arg0) throws SQLException {
32                 // TODO Auto-generated method stub
33                 return null;
34         }
35
36         @Override
37         public void abort(Executor executor) throws SQLException {
38                 // TODO Auto-generated method stub
39
40         }
41
42         @Override
43         public void clearWarnings() throws SQLException {
44                 // TODO Auto-generated method stub
45
46         }
47
48         @Override
49         public void close() throws SQLException {
50                 // TODO Auto-generated method stub
51
52         }
53
54         @Override
55         public void commit() throws SQLException {
56                 // TODO Auto-generated method stub
57
58         }
59
60         @Override
61         public Array createArrayOf(String typeName, Object[] elements)
62                         throws SQLException {
63                 // TODO Auto-generated method stub
64                 return null;
65         }
66
67         @Override
68         public Blob createBlob() throws SQLException {
69                 // TODO Auto-generated method stub
70                 return null;
71         }
72
73         @Override
74         public Clob createClob() throws SQLException {
75                 // TODO Auto-generated method stub
76                 return null;
77         }
78
79         @Override
80         public NClob createNClob() throws SQLException {
81                 // TODO Auto-generated method stub
82                 return null;
83         }
84
85         @Override
86         public SQLXML createSQLXML() throws SQLException {
87                 // TODO Auto-generated method stub
88                 return null;
89         }
90
91         @Override
92         public Statement createStatement() throws SQLException {
93                 // TODO Auto-generated method stub
94                 return null;
95         }
96
97         @Override
98         public Statement createStatement(int resultSetType, int resultSetConcurrency)
99                         throws SQLException {
100                 // TODO Auto-generated method stub
101                 return null;
102         }
103
104         @Override
105         public Statement createStatement(int resultSetType,
106                         int resultSetConcurrency, int resultSetHoldability)
107                         throws SQLException {
108                 // TODO Auto-generated method stub
109                 return null;
110         }
111
112         @Override
113         public Struct createStruct(String typeName, Object[] attributes)
114                         throws SQLException {
115                 // TODO Auto-generated method stub
116                 return null;
117         }
118
119         @Override
120         public boolean getAutoCommit() throws SQLException {
121                 // TODO Auto-generated method stub
122                 return false;
123         }
124
125         @Override
126         public String getCatalog() throws SQLException {
127                 // TODO Auto-generated method stub
128                 return null;
129         }
130
131         @Override
132         public Properties getClientInfo() throws SQLException {
133                 // TODO Auto-generated method stub
134                 return null;
135         }
136
137         @Override
138         public String getClientInfo(String name) throws SQLException {
139                 // TODO Auto-generated method stub
140                 return null;
141         }
142
143         @Override
144         public int getHoldability() throws SQLException {
145                 // TODO Auto-generated method stub
146                 return 0;
147         }
148
149         @Override
150         public DatabaseMetaData getMetaData() throws SQLException {
151                 DatabaseMetaData result = new DatabaseMetaDataMock();
152                 return result;
153         }
154
155         @Override
156         public int getNetworkTimeout() throws SQLException {
157                 // TODO Auto-generated method stub
158                 return 0;
159         }
160
161         @Override
162         public String getSchema() throws SQLException {
163                 // TODO Auto-generated method stub
164                 return null;
165         }
166
167         @Override
168         public int getTransactionIsolation() throws SQLException {
169                 // TODO Auto-generated method stub
170                 return 0;
171         }
172
173         @Override
174         public Map<String, Class<?>> getTypeMap() throws SQLException {
175                 // TODO Auto-generated method stub
176                 return null;
177         }
178
179         @Override
180         public SQLWarning getWarnings() throws SQLException {
181                 // TODO Auto-generated method stub
182                 return null;
183         }
184
185         @Override
186         public boolean isClosed() throws SQLException {
187                 // TODO Auto-generated method stub
188                 return false;
189         }
190
191         @Override
192         public boolean isReadOnly() throws SQLException {
193                 // TODO Auto-generated method stub
194                 return false;
195         }
196
197         @Override
198         public boolean isValid(int timeout) throws SQLException {
199                 // TODO Auto-generated method stub
200                 return false;
201         }
202
203         @Override
204         public String nativeSQL(String sql) throws SQLException {
205                 // TODO Auto-generated method stub
206                 return null;
207         }
208
209         @Override
210         public CallableStatement prepareCall(String sql) throws SQLException {
211                 // TODO Auto-generated method stub
212                 return null;
213         }
214
215         @Override
216         public CallableStatement prepareCall(String sql, int resultSetType,
217                         int resultSetConcurrency) throws SQLException {
218                 // TODO Auto-generated method stub
219                 return null;
220         }
221
222         @Override
223         public CallableStatement prepareCall(String sql, int resultSetType,
224                         int resultSetConcurrency, int resultSetHoldability)
225                         throws SQLException {
226                 // TODO Auto-generated method stub
227                 return null;
228         }
229
230         @Override
231         public PreparedStatement prepareStatement(String sql) throws SQLException {
232                 // TODO Auto-generated method stub
233                 return null;
234         }
235
236         @Override
237         public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
238                         throws SQLException {
239                 // TODO Auto-generated method stub
240                 return null;
241         }
242
243         @Override
244         public PreparedStatement prepareStatement(String sql, int[] columnIndexes)
245                         throws SQLException {
246                 // TODO Auto-generated method stub
247                 return null;
248         }
249
250         @Override
251         public PreparedStatement prepareStatement(String sql, String[] columnNames)
252                         throws SQLException {
253                 // TODO Auto-generated method stub
254                 return null;
255         }
256
257         @Override
258         public PreparedStatement prepareStatement(String sql, int resultSetType,
259                         int resultSetConcurrency) throws SQLException {
260                 // TODO Auto-generated method stub
261                 return null;
262         }
263
264         @Override
265         public PreparedStatement prepareStatement(String sql, int resultSetType,
266                         int resultSetConcurrency, int resultSetHoldability)
267                         throws SQLException {
268                 // TODO Auto-generated method stub
269                 return null;
270         }
271
272         @Override
273         public void releaseSavepoint(Savepoint savepoint) throws SQLException {
274                 // TODO Auto-generated method stub
275
276         }
277
278         @Override
279         public void rollback() throws SQLException {
280                 // TODO Auto-generated method stub
281
282         }
283
284         @Override
285         public void rollback(Savepoint savepoint) throws SQLException {
286                 // TODO Auto-generated method stub
287
288         }
289
290         @Override
291         public void setAutoCommit(boolean autoCommit) throws SQLException {
292                 // TODO Auto-generated method stub
293
294         }
295
296         @Override
297         public void setCatalog(String catalog) throws SQLException {
298                 // TODO Auto-generated method stub
299
300         }
301
302         @Override
303         public void setClientInfo(Properties properties)
304                         throws SQLClientInfoException {
305                 // TODO Auto-generated method stub
306
307         }
308
309         @Override
310         public void setClientInfo(String name, String value)
311                         throws SQLClientInfoException {
312                 // TODO Auto-generated method stub
313
314         }
315
316         @Override
317         public void setHoldability(int holdability) throws SQLException {
318                 // TODO Auto-generated method stub
319
320         }
321
322         @Override
323         public void setNetworkTimeout(Executor executor, int milliseconds)
324                         throws SQLException {
325                 // TODO Auto-generated method stub
326
327         }
328
329         @Override
330         public void setReadOnly(boolean readOnly) throws SQLException {
331                 // TODO Auto-generated method stub
332
333         }
334
335         @Override
336         public Savepoint setSavepoint() throws SQLException {
337                 // TODO Auto-generated method stub
338                 return null;
339         }
340
341         @Override
342         public Savepoint setSavepoint(String name) throws SQLException {
343                 // TODO Auto-generated method stub
344                 return null;
345         }
346
347         @Override
348         public void setSchema(String schema) throws SQLException {
349                 // TODO Auto-generated method stub
350
351         }
352
353         @Override
354         public void setTransactionIsolation(int level) throws SQLException {
355                 // TODO Auto-generated method stub
356
357         }
358
359         @Override
360         public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
361                 // TODO Auto-generated method stub
362
363         }
364
365 }