]> jaekl.net Git - cfb.git/blob - test/net/jaekl/cfb/db/driver/ConnectionMock.java
Add support for pegging the JVM version when checking code coverage.
[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                 throw new UnsupportedOperationException("Not yet implemented");
233         }
234
235         @Override
236         public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
237                         throws SQLException {
238                 // TODO Auto-generated method stub
239                 return null;
240         }
241
242         @Override
243         public PreparedStatement prepareStatement(String sql, int[] columnIndexes)
244                         throws SQLException {
245                 // TODO Auto-generated method stub
246                 return null;
247         }
248
249         @Override
250         public PreparedStatement prepareStatement(String sql, String[] columnNames)
251                         throws SQLException {
252                 // TODO Auto-generated method stub
253                 return null;
254         }
255
256         @Override
257         public PreparedStatement prepareStatement(String sql, int resultSetType,
258                         int resultSetConcurrency) throws SQLException {
259                 // TODO Auto-generated method stub
260                 return null;
261         }
262
263         @Override
264         public PreparedStatement prepareStatement(String sql, int resultSetType,
265                         int resultSetConcurrency, int resultSetHoldability)
266                         throws SQLException {
267                 // TODO Auto-generated method stub
268                 return null;
269         }
270
271         @Override
272         public void releaseSavepoint(Savepoint savepoint) throws SQLException {
273                 // TODO Auto-generated method stub
274
275         }
276
277         @Override
278         public void rollback() throws SQLException {
279                 // TODO Auto-generated method stub
280
281         }
282
283         @Override
284         public void rollback(Savepoint savepoint) throws SQLException {
285                 // TODO Auto-generated method stub
286
287         }
288
289         @Override
290         public void setAutoCommit(boolean autoCommit) throws SQLException {
291                 // TODO Auto-generated method stub
292
293         }
294
295         @Override
296         public void setCatalog(String catalog) throws SQLException {
297                 // TODO Auto-generated method stub
298
299         }
300
301         @Override
302         public void setClientInfo(Properties properties)
303                         throws SQLClientInfoException {
304                 // TODO Auto-generated method stub
305
306         }
307
308         @Override
309         public void setClientInfo(String name, String value)
310                         throws SQLClientInfoException {
311                 // TODO Auto-generated method stub
312
313         }
314
315         @Override
316         public void setHoldability(int holdability) throws SQLException {
317                 // TODO Auto-generated method stub
318
319         }
320
321         @Override
322         public void setNetworkTimeout(Executor executor, int milliseconds)
323                         throws SQLException {
324                 // TODO Auto-generated method stub
325
326         }
327
328         @Override
329         public void setReadOnly(boolean readOnly) throws SQLException {
330                 // TODO Auto-generated method stub
331
332         }
333
334         @Override
335         public Savepoint setSavepoint() throws SQLException {
336                 // TODO Auto-generated method stub
337                 return null;
338         }
339
340         @Override
341         public Savepoint setSavepoint(String name) throws SQLException {
342                 // TODO Auto-generated method stub
343                 return null;
344         }
345
346         @Override
347         public void setSchema(String schema) throws SQLException {
348                 // TODO Auto-generated method stub
349
350         }
351
352         @Override
353         public void setTransactionIsolation(int level) throws SQLException {
354                 // TODO Auto-generated method stub
355
356         }
357
358         @Override
359         public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
360                 // TODO Auto-generated method stub
361
362         }
363
364 }