~brian-thomason/+junk/ha-jdbc

« back to all changes in this revision

Viewing changes to test/net/sf/hajdbc/sql/MockConnection.java

  • Committer: Brian Thomason
  • Date: 2011-12-20 17:34:21 UTC
  • Revision ID: brian.thomason@canonical.com-20111220173421-p9jg95iq91jgdihh
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * HA-JDBC: High-Availability JDBC
 
3
 * Copyright (c) 2004-2007 Paul Ferraro
 
4
 * 
 
5
 * This library is free software; you can redistribute it and/or modify it 
 
6
 * under the terms of the GNU Lesser General Public License as published by the 
 
7
 * Free Software Foundation; either version 2.1 of the License, or (at your 
 
8
 * option) any later version.
 
9
 * 
 
10
 * This library is distributed in the hope that it will be useful, but WITHOUT
 
11
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
 
12
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License 
 
13
 * for more details.
 
14
 * 
 
15
 * You should have received a copy of the GNU Lesser General Public License
 
16
 * along with this library; if not, write to the Free Software Foundation, 
 
17
 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
18
 * 
 
19
 * Contact: ferraro@users.sourceforge.net
 
20
 */
 
21
package net.sf.hajdbc.sql;
 
22
 
 
23
import java.sql.Array;
 
24
import java.sql.Blob;
 
25
import java.sql.CallableStatement;
 
26
import java.sql.Clob;
 
27
import java.sql.Connection;
 
28
import java.sql.DatabaseMetaData;
 
29
import java.sql.NClob;
 
30
import java.sql.PreparedStatement;
 
31
import java.sql.ResultSet;
 
32
import java.sql.RowIdLifetime;
 
33
import java.sql.SQLWarning;
 
34
import java.sql.SQLXML;
 
35
import java.sql.Savepoint;
 
36
import java.sql.Statement;
 
37
import java.sql.Struct;
 
38
import java.util.Map;
 
39
import java.util.Properties;
 
40
 
 
41
import org.easymock.EasyMock;
 
42
 
 
43
/**
 
44
 * Mock connection that creates mock statements
 
45
 * @author  Paul Ferraro
 
46
 * @since   1.1
 
47
 */
 
48
public class MockConnection implements Connection
 
49
{
 
50
        /**
 
51
         * @see java.sql.Connection#createStatement()
 
52
         */
 
53
        public Statement createStatement()
 
54
        {
 
55
                return EasyMock.createMock(Statement.class);
 
56
        }
 
57
 
 
58
        /**
 
59
         * @see java.sql.Connection#prepareStatement(java.lang.String)
 
60
         */
 
61
        public PreparedStatement prepareStatement(String arg0)
 
62
        {
 
63
                return null;
 
64
        }
 
65
 
 
66
        /**
 
67
         * @see java.sql.Connection#prepareCall(java.lang.String)
 
68
         */
 
69
        public CallableStatement prepareCall(String arg0)
 
70
        {
 
71
                return null;
 
72
        }
 
73
 
 
74
        /**
 
75
         * @see java.sql.Connection#nativeSQL(java.lang.String)
 
76
         */
 
77
        public String nativeSQL(String arg0)
 
78
        {
 
79
                return null;
 
80
        }
 
81
 
 
82
        /**
 
83
         * @see java.sql.Connection#setAutoCommit(boolean)
 
84
         */
 
85
        public void setAutoCommit(boolean arg0)
 
86
        {
 
87
        }
 
88
 
 
89
        /**
 
90
         * @see java.sql.Connection#getAutoCommit()
 
91
         */
 
92
        public boolean getAutoCommit()
 
93
        {
 
94
                return false;
 
95
        }
 
96
 
 
97
        /**
 
98
         * @see java.sql.Connection#commit()
 
99
         */
 
100
        public void commit()
 
101
        {
 
102
        }
 
103
 
 
104
        /**
 
105
         * @see java.sql.Connection#rollback()
 
106
         */
 
107
        public void rollback()
 
108
        {
 
109
        }
 
110
 
 
111
        /**
 
112
         * @see java.sql.Connection#close()
 
113
         */
 
114
        public void close()
 
115
        {
 
116
        }
 
117
 
 
118
        /**
 
119
         * @see java.sql.Connection#isClosed()
 
120
         */
 
121
        public boolean isClosed()
 
122
        {
 
123
                return false;
 
124
        }
 
125
 
 
126
        /**
 
127
         * @see java.sql.Connection#getMetaData()
 
128
         */
 
129
        public DatabaseMetaData getMetaData()
 
130
        {
 
131
                return new DatabaseMetaData()
 
132
                {
 
133
 
 
134
                        public boolean allProceduresAreCallable()
 
135
                        {
 
136
                                return false;
 
137
                        }
 
138
 
 
139
                        public boolean allTablesAreSelectable()
 
140
                        {
 
141
                                return false;
 
142
                        }
 
143
 
 
144
                        public String getURL()
 
145
                        {
 
146
                                return null;
 
147
                        }
 
148
 
 
149
                        public String getUserName()
 
150
                        {
 
151
                                return null;
 
152
                        }
 
153
 
 
154
                        public boolean isReadOnly()
 
155
                        {
 
156
                                return false;
 
157
                        }
 
158
 
 
159
                        public boolean nullsAreSortedHigh()
 
160
                        {
 
161
                                return false;
 
162
                        }
 
163
 
 
164
                        public boolean nullsAreSortedLow()
 
165
                        {
 
166
                                return false;
 
167
                        }
 
168
 
 
169
                        public boolean nullsAreSortedAtStart()
 
170
                        {
 
171
                                return false;
 
172
                        }
 
173
 
 
174
                        public boolean nullsAreSortedAtEnd()
 
175
                        {
 
176
                                return false;
 
177
                        }
 
178
 
 
179
                        public String getDatabaseProductName()
 
180
                        {
 
181
                                return null;
 
182
                        }
 
183
 
 
184
                        public String getDatabaseProductVersion()
 
185
                        {
 
186
                                return null;
 
187
                        }
 
188
 
 
189
                        public String getDriverName()
 
190
                        {
 
191
                                return null;
 
192
                        }
 
193
 
 
194
                        public String getDriverVersion()
 
195
                        {
 
196
                                return null;
 
197
                        }
 
198
 
 
199
                        public int getDriverMajorVersion()
 
200
                        {
 
201
                                return 0;
 
202
                        }
 
203
 
 
204
                        public int getDriverMinorVersion()
 
205
                        {
 
206
                                return 0;
 
207
                        }
 
208
 
 
209
                        public boolean usesLocalFiles()
 
210
                        {
 
211
                                return false;
 
212
                        }
 
213
 
 
214
                        public boolean usesLocalFilePerTable()
 
215
                        {
 
216
                                return false;
 
217
                        }
 
218
 
 
219
                        public boolean supportsMixedCaseIdentifiers()
 
220
                        {
 
221
                                return false;
 
222
                        }
 
223
 
 
224
                        public boolean storesUpperCaseIdentifiers()
 
225
                        {
 
226
                                return false;
 
227
                        }
 
228
 
 
229
                        public boolean storesLowerCaseIdentifiers()
 
230
                        {
 
231
                                return false;
 
232
                        }
 
233
 
 
234
                        public boolean storesMixedCaseIdentifiers()
 
235
                        {
 
236
                                return false;
 
237
                        }
 
238
 
 
239
                        public boolean supportsMixedCaseQuotedIdentifiers()
 
240
                        {
 
241
                                return false;
 
242
                        }
 
243
 
 
244
                        public boolean storesUpperCaseQuotedIdentifiers()
 
245
                        {
 
246
                                return false;
 
247
                        }
 
248
 
 
249
                        public boolean storesLowerCaseQuotedIdentifiers()
 
250
                        {
 
251
                                return false;
 
252
                        }
 
253
 
 
254
                        public boolean storesMixedCaseQuotedIdentifiers()
 
255
                        {
 
256
                                return false;
 
257
                        }
 
258
 
 
259
                        public String getIdentifierQuoteString()
 
260
                        {
 
261
                                return null;
 
262
                        }
 
263
 
 
264
                        public String getSQLKeywords()
 
265
                        {
 
266
                                return ""; //$NON-NLS-1$
 
267
                        }
 
268
 
 
269
                        public String getNumericFunctions()
 
270
                        {
 
271
                                return null;
 
272
                        }
 
273
 
 
274
                        public String getStringFunctions()
 
275
                        {
 
276
                                return null;
 
277
                        }
 
278
 
 
279
                        public String getSystemFunctions()
 
280
                        {
 
281
                                return null;
 
282
                        }
 
283
 
 
284
                        public String getTimeDateFunctions()
 
285
                        {
 
286
                                return null;
 
287
                        }
 
288
 
 
289
                        public String getSearchStringEscape()
 
290
                        {
 
291
                                return null;
 
292
                        }
 
293
 
 
294
                        public String getExtraNameCharacters()
 
295
                        {
 
296
                                return ""; //$NON-NLS-1$
 
297
                        }
 
298
 
 
299
                        public boolean supportsAlterTableWithAddColumn()
 
300
                        {
 
301
                                return false;
 
302
                        }
 
303
 
 
304
                        public boolean supportsAlterTableWithDropColumn()
 
305
                        {
 
306
                                return false;
 
307
                        }
 
308
 
 
309
                        public boolean supportsColumnAliasing()
 
310
                        {
 
311
                                return false;
 
312
                        }
 
313
 
 
314
                        public boolean nullPlusNonNullIsNull()
 
315
                        {
 
316
                                return false;
 
317
                        }
 
318
 
 
319
                        public boolean supportsConvert()
 
320
                        {
 
321
                                return false;
 
322
                        }
 
323
 
 
324
                        public boolean supportsConvert(int fromType, int toType)
 
325
                        {
 
326
                                return false;
 
327
                        }
 
328
 
 
329
                        public boolean supportsTableCorrelationNames()
 
330
                        {
 
331
                                return false;
 
332
                        }
 
333
 
 
334
                        public boolean supportsDifferentTableCorrelationNames()
 
335
                        {
 
336
                                return false;
 
337
                        }
 
338
 
 
339
                        public boolean supportsExpressionsInOrderBy()
 
340
                        {
 
341
                                return false;
 
342
                        }
 
343
 
 
344
                        public boolean supportsOrderByUnrelated()
 
345
                        {
 
346
                                return false;
 
347
                        }
 
348
 
 
349
                        public boolean supportsGroupBy()
 
350
                        {
 
351
                                return false;
 
352
                        }
 
353
 
 
354
                        public boolean supportsGroupByUnrelated()
 
355
                        {
 
356
                                return false;
 
357
                        }
 
358
 
 
359
                        public boolean supportsGroupByBeyondSelect()
 
360
                        {
 
361
                                return false;
 
362
                        }
 
363
 
 
364
                        public boolean supportsLikeEscapeClause()
 
365
                        {
 
366
                                return false;
 
367
                        }
 
368
 
 
369
                        public boolean supportsMultipleResultSets()
 
370
                        {
 
371
                                return false;
 
372
                        }
 
373
 
 
374
                        public boolean supportsMultipleTransactions()
 
375
                        {
 
376
                                return false;
 
377
                        }
 
378
 
 
379
                        public boolean supportsNonNullableColumns()
 
380
                        {
 
381
                                return false;
 
382
                        }
 
383
 
 
384
                        public boolean supportsMinimumSQLGrammar()
 
385
                        {
 
386
                                return false;
 
387
                        }
 
388
 
 
389
                        public boolean supportsCoreSQLGrammar()
 
390
                        {
 
391
                                return false;
 
392
                        }
 
393
 
 
394
                        public boolean supportsExtendedSQLGrammar()
 
395
                        {
 
396
                                return false;
 
397
                        }
 
398
 
 
399
                        public boolean supportsANSI92EntryLevelSQL()
 
400
                        {
 
401
                                return false;
 
402
                        }
 
403
 
 
404
                        public boolean supportsANSI92IntermediateSQL()
 
405
                        {
 
406
                                return false;
 
407
                        }
 
408
 
 
409
                        public boolean supportsANSI92FullSQL()
 
410
                        {
 
411
                                return false;
 
412
                        }
 
413
 
 
414
                        public boolean supportsIntegrityEnhancementFacility()
 
415
                        {
 
416
                                return false;
 
417
                        }
 
418
 
 
419
                        public boolean supportsOuterJoins()
 
420
                        {
 
421
                                return false;
 
422
                        }
 
423
 
 
424
                        public boolean supportsFullOuterJoins()
 
425
                        {
 
426
                                return false;
 
427
                        }
 
428
 
 
429
                        public boolean supportsLimitedOuterJoins()
 
430
                        {
 
431
                                return false;
 
432
                        }
 
433
 
 
434
                        public String getSchemaTerm()
 
435
                        {
 
436
                                return null;
 
437
                        }
 
438
 
 
439
                        public String getProcedureTerm()
 
440
                        {
 
441
                                return null;
 
442
                        }
 
443
 
 
444
                        public String getCatalogTerm()
 
445
                        {
 
446
                                return null;
 
447
                        }
 
448
 
 
449
                        public boolean isCatalogAtStart()
 
450
                        {
 
451
                                return false;
 
452
                        }
 
453
 
 
454
                        public String getCatalogSeparator()
 
455
                        {
 
456
                                return null;
 
457
                        }
 
458
 
 
459
                        public boolean supportsSchemasInDataManipulation()
 
460
                        {
 
461
                                return false;
 
462
                        }
 
463
 
 
464
                        public boolean supportsSchemasInProcedureCalls()
 
465
                        {
 
466
                                return false;
 
467
                        }
 
468
 
 
469
                        public boolean supportsSchemasInTableDefinitions()
 
470
                        {
 
471
                                return false;
 
472
                        }
 
473
 
 
474
                        public boolean supportsSchemasInIndexDefinitions()
 
475
                        {
 
476
                                return false;
 
477
                        }
 
478
 
 
479
                        public boolean supportsSchemasInPrivilegeDefinitions()
 
480
                        {
 
481
                                return false;
 
482
                        }
 
483
 
 
484
                        public boolean supportsCatalogsInDataManipulation()
 
485
                        {
 
486
                                return false;
 
487
                        }
 
488
 
 
489
                        public boolean supportsCatalogsInProcedureCalls()
 
490
                        {
 
491
                                return false;
 
492
                        }
 
493
 
 
494
                        public boolean supportsCatalogsInTableDefinitions()
 
495
                        {
 
496
                                return false;
 
497
                        }
 
498
 
 
499
                        public boolean supportsCatalogsInIndexDefinitions()
 
500
                        {
 
501
                                return false;
 
502
                        }
 
503
 
 
504
                        public boolean supportsCatalogsInPrivilegeDefinitions()
 
505
                        {
 
506
                                return false;
 
507
                        }
 
508
 
 
509
                        public boolean supportsPositionedDelete()
 
510
                        {
 
511
                                return false;
 
512
                        }
 
513
 
 
514
                        public boolean supportsPositionedUpdate()
 
515
                        {
 
516
                                return false;
 
517
                        }
 
518
 
 
519
                        public boolean supportsSelectForUpdate()
 
520
                        {
 
521
                                return false;
 
522
                        }
 
523
 
 
524
                        public boolean supportsStoredProcedures()
 
525
                        {
 
526
                                return false;
 
527
                        }
 
528
 
 
529
                        public boolean supportsSubqueriesInComparisons()
 
530
                        {
 
531
                                return false;
 
532
                        }
 
533
 
 
534
                        public boolean supportsSubqueriesInExists()
 
535
                        {
 
536
                                return false;
 
537
                        }
 
538
 
 
539
                        public boolean supportsSubqueriesInIns()
 
540
                        {
 
541
                                return false;
 
542
                        }
 
543
 
 
544
                        public boolean supportsSubqueriesInQuantifieds()
 
545
                        {
 
546
                                return false;
 
547
                        }
 
548
 
 
549
                        public boolean supportsCorrelatedSubqueries()
 
550
                        {
 
551
                                return false;
 
552
                        }
 
553
 
 
554
                        public boolean supportsUnion()
 
555
                        {
 
556
                                return false;
 
557
                        }
 
558
 
 
559
                        public boolean supportsUnionAll()
 
560
                        {
 
561
                                return false;
 
562
                        }
 
563
 
 
564
                        public boolean supportsOpenCursorsAcrossCommit()
 
565
                        {
 
566
                                return false;
 
567
                        }
 
568
 
 
569
                        public boolean supportsOpenCursorsAcrossRollback()
 
570
                        {
 
571
                                return false;
 
572
                        }
 
573
 
 
574
                        public boolean supportsOpenStatementsAcrossCommit()
 
575
                        {
 
576
                                return false;
 
577
                        }
 
578
 
 
579
                        public boolean supportsOpenStatementsAcrossRollback()
 
580
                        {
 
581
                                return false;
 
582
                        }
 
583
 
 
584
                        public int getMaxBinaryLiteralLength()
 
585
                        {
 
586
                                return 0;
 
587
                        }
 
588
 
 
589
                        public int getMaxCharLiteralLength()
 
590
                        {
 
591
                                return 0;
 
592
                        }
 
593
 
 
594
                        public int getMaxColumnNameLength()
 
595
                        {
 
596
                                return 0;
 
597
                        }
 
598
 
 
599
                        public int getMaxColumnsInGroupBy()
 
600
                        {
 
601
                                return 0;
 
602
                        }
 
603
 
 
604
                        public int getMaxColumnsInIndex()
 
605
                        {
 
606
                                return 0;
 
607
                        }
 
608
 
 
609
                        public int getMaxColumnsInOrderBy()
 
610
                        {
 
611
                                return 0;
 
612
                        }
 
613
 
 
614
                        public int getMaxColumnsInSelect()
 
615
                        {
 
616
                                return 0;
 
617
                        }
 
618
 
 
619
                        public int getMaxColumnsInTable()
 
620
                        {
 
621
                                return 0;
 
622
                        }
 
623
 
 
624
                        public int getMaxConnections()
 
625
                        {
 
626
                                return 0;
 
627
                        }
 
628
 
 
629
                        public int getMaxCursorNameLength()
 
630
                        {
 
631
                                return 0;
 
632
                        }
 
633
 
 
634
                        public int getMaxIndexLength()
 
635
                        {
 
636
                                return 0;
 
637
                        }
 
638
 
 
639
                        public int getMaxSchemaNameLength()
 
640
                        {
 
641
                                return 0;
 
642
                        }
 
643
 
 
644
                        public int getMaxProcedureNameLength()
 
645
                        {
 
646
                                return 0;
 
647
                        }
 
648
 
 
649
                        public int getMaxCatalogNameLength()
 
650
                        {
 
651
                                return 0;
 
652
                        }
 
653
 
 
654
                        public int getMaxRowSize()
 
655
                        {
 
656
                                return 0;
 
657
                        }
 
658
 
 
659
                        public boolean doesMaxRowSizeIncludeBlobs()
 
660
                        {
 
661
                                return false;
 
662
                        }
 
663
 
 
664
                        public int getMaxStatementLength()
 
665
                        {
 
666
                                return 0;
 
667
                        }
 
668
 
 
669
                        public int getMaxStatements()
 
670
                        {
 
671
                                return 0;
 
672
                        }
 
673
 
 
674
                        public int getMaxTableNameLength()
 
675
                        {
 
676
                                return 0;
 
677
                        }
 
678
 
 
679
                        public int getMaxTablesInSelect()
 
680
                        {
 
681
                                return 0;
 
682
                        }
 
683
 
 
684
                        public int getMaxUserNameLength()
 
685
                        {
 
686
                                return 0;
 
687
                        }
 
688
 
 
689
                        public int getDefaultTransactionIsolation()
 
690
                        {
 
691
                                return 0;
 
692
                        }
 
693
 
 
694
                        public boolean supportsTransactions()
 
695
                        {
 
696
                                return false;
 
697
                        }
 
698
 
 
699
                        public boolean supportsTransactionIsolationLevel(int level)
 
700
                        {
 
701
                                return false;
 
702
                        }
 
703
 
 
704
                        public boolean supportsDataDefinitionAndDataManipulationTransactions()
 
705
                        {
 
706
                                return false;
 
707
                        }
 
708
 
 
709
                        public boolean supportsDataManipulationTransactionsOnly()
 
710
                        {
 
711
                                return false;
 
712
                        }
 
713
 
 
714
                        public boolean dataDefinitionCausesTransactionCommit()
 
715
                        {
 
716
                                return false;
 
717
                        }
 
718
 
 
719
                        public boolean dataDefinitionIgnoredInTransactions()
 
720
                        {
 
721
                                return false;
 
722
                        }
 
723
 
 
724
                        public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern)
 
725
                        {
 
726
                                return null;
 
727
                        }
 
728
 
 
729
                        public ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern)
 
730
                        {
 
731
                                return null;
 
732
                        }
 
733
 
 
734
                        public ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types)
 
735
                        {
 
736
                                return null;
 
737
                        }
 
738
 
 
739
                        public ResultSet getSchemas()
 
740
                        {
 
741
                                return null;
 
742
                        }
 
743
 
 
744
                        public ResultSet getCatalogs()
 
745
                        {
 
746
                                return null;
 
747
                        }
 
748
 
 
749
                        public ResultSet getTableTypes()
 
750
                        {
 
751
                                return null;
 
752
                        }
 
753
 
 
754
                        public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)
 
755
                        {
 
756
                                return null;
 
757
                        }
 
758
 
 
759
                        public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern)
 
760
                        {
 
761
                                return null;
 
762
                        }
 
763
 
 
764
                        public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern)
 
765
                        {
 
766
                                return null;
 
767
                        }
 
768
 
 
769
                        public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable)
 
770
                        {
 
771
                                return null;
 
772
                        }
 
773
 
 
774
                        public ResultSet getVersionColumns(String catalog, String schema, String table)
 
775
                        {
 
776
                                return null;
 
777
                        }
 
778
 
 
779
                        public ResultSet getPrimaryKeys(String catalog, String schema, String table)
 
780
                        {
 
781
                                return null;
 
782
                        }
 
783
 
 
784
                        public ResultSet getImportedKeys(String catalog, String schema, String table)
 
785
                        {
 
786
                                return null;
 
787
                        }
 
788
 
 
789
                        public ResultSet getExportedKeys(String catalog, String schema, String table)
 
790
                        {
 
791
                                return null;
 
792
                        }
 
793
 
 
794
                        public ResultSet getCrossReference(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable)
 
795
                        {
 
796
                                return null;
 
797
                        }
 
798
 
 
799
                        public ResultSet getTypeInfo()
 
800
                        {
 
801
                                return null;
 
802
                        }
 
803
 
 
804
                        public ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate)
 
805
                        {
 
806
                                return null;
 
807
                        }
 
808
 
 
809
                        public boolean supportsResultSetType(int type)
 
810
                        {
 
811
                                return false;
 
812
                        }
 
813
 
 
814
                        public boolean supportsResultSetConcurrency(int type, int concurrency)
 
815
                        {
 
816
                                return false;
 
817
                        }
 
818
 
 
819
                        public boolean ownUpdatesAreVisible(int type)
 
820
                        {
 
821
                                return false;
 
822
                        }
 
823
 
 
824
                        public boolean ownDeletesAreVisible(int type)
 
825
                        {
 
826
                                return false;
 
827
                        }
 
828
 
 
829
                        public boolean ownInsertsAreVisible(int type)
 
830
                        {
 
831
                                return false;
 
832
                        }
 
833
 
 
834
                        public boolean othersUpdatesAreVisible(int type)
 
835
                        {
 
836
                                return false;
 
837
                        }
 
838
 
 
839
                        public boolean othersDeletesAreVisible(int type)
 
840
                        {
 
841
                                return false;
 
842
                        }
 
843
 
 
844
                        public boolean othersInsertsAreVisible(int type)
 
845
                        {
 
846
                                return false;
 
847
                        }
 
848
 
 
849
                        public boolean updatesAreDetected(int type)
 
850
                        {
 
851
                                return false;
 
852
                        }
 
853
 
 
854
                        public boolean deletesAreDetected(int type)
 
855
                        {
 
856
                                return false;
 
857
                        }
 
858
 
 
859
                        public boolean insertsAreDetected(int type)
 
860
                        {
 
861
                                return false;
 
862
                        }
 
863
 
 
864
                        public boolean supportsBatchUpdates()
 
865
                        {
 
866
                                return false;
 
867
                        }
 
868
 
 
869
                        public ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types)
 
870
                        {
 
871
                                return null;
 
872
                        }
 
873
 
 
874
                        public Connection getConnection()
 
875
                        {
 
876
                                return null;
 
877
                        }
 
878
 
 
879
                        public boolean supportsSavepoints()
 
880
                        {
 
881
                                return false;
 
882
                        }
 
883
 
 
884
                        public boolean supportsNamedParameters()
 
885
                        {
 
886
                                return false;
 
887
                        }
 
888
 
 
889
                        public boolean supportsMultipleOpenResults()
 
890
                        {
 
891
                                return false;
 
892
                        }
 
893
 
 
894
                        public boolean supportsGetGeneratedKeys()
 
895
                        {
 
896
                                return false;
 
897
                        }
 
898
 
 
899
                        public ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern)
 
900
                        {
 
901
                                return null;
 
902
                        }
 
903
 
 
904
                        public ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern)
 
905
                        {
 
906
                                return null;
 
907
                        }
 
908
 
 
909
                        public ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern)
 
910
                        {
 
911
                                return null;
 
912
                        }
 
913
 
 
914
                        public boolean supportsResultSetHoldability(int holdability)
 
915
                        {
 
916
                                return false;
 
917
                        }
 
918
 
 
919
                        public int getResultSetHoldability()
 
920
                        {
 
921
                                return 0;
 
922
                        }
 
923
 
 
924
                        public int getDatabaseMajorVersion()
 
925
                        {
 
926
                                return 0;
 
927
                        }
 
928
 
 
929
                        public int getDatabaseMinorVersion()
 
930
                        {
 
931
                                return 0;
 
932
                        }
 
933
 
 
934
                        public int getJDBCMajorVersion()
 
935
                        {
 
936
                                return 0;
 
937
                        }
 
938
 
 
939
                        public int getJDBCMinorVersion()
 
940
                        {
 
941
                                return 0;
 
942
                        }
 
943
 
 
944
                        public int getSQLStateType()
 
945
                        {
 
946
                                return 0;
 
947
                        }
 
948
 
 
949
                        public boolean locatorsUpdateCopy()
 
950
                        {
 
951
                                return false;
 
952
                        }
 
953
 
 
954
                        public boolean supportsStatementPooling()
 
955
                        {
 
956
                                return false;
 
957
                        }
 
958
 
 
959
                        @Override
 
960
                        public boolean autoCommitFailureClosesAllResultSets()
 
961
                        {
 
962
                                return false;
 
963
                        }
 
964
 
 
965
                        @Override
 
966
                        public ResultSet getClientInfoProperties()
 
967
                        {
 
968
                                return null;
 
969
                        }
 
970
 
 
971
                        @Override
 
972
                        public ResultSet getFunctionColumns(String arg0, String arg1, String arg2, String arg3)
 
973
                        {
 
974
                                return null;
 
975
                        }
 
976
 
 
977
                        @Override
 
978
                        public ResultSet getFunctions(String arg0, String arg1, String arg2)
 
979
                        {
 
980
                                return null;
 
981
                        }
 
982
 
 
983
                        @Override
 
984
                        public RowIdLifetime getRowIdLifetime()
 
985
                        {
 
986
                                return null;
 
987
                        }
 
988
 
 
989
                        @Override
 
990
                        public ResultSet getSchemas(String arg0, String arg1)
 
991
                        {
 
992
                                return null;
 
993
                        }
 
994
 
 
995
                        @Override
 
996
                        public boolean supportsStoredFunctionsUsingCallSyntax()
 
997
                        {
 
998
                                return false;
 
999
                        }
 
1000
 
 
1001
                        @Override
 
1002
                        public boolean isWrapperFor(Class<?> arg0)
 
1003
                        {
 
1004
                                return false;
 
1005
                        }
 
1006
 
 
1007
                        @Override
 
1008
                        public <T> T unwrap(Class<T> arg0)
 
1009
                        {
 
1010
                                return null;
 
1011
                        }
 
1012
                        
 
1013
                };
 
1014
        }
 
1015
 
 
1016
        /**
 
1017
         * @see java.sql.Connection#setReadOnly(boolean)
 
1018
         */
 
1019
        public void setReadOnly(boolean arg0)
 
1020
        {
 
1021
        }
 
1022
 
 
1023
        /**
 
1024
         * @see java.sql.Connection#isReadOnly()
 
1025
         */
 
1026
        public boolean isReadOnly()
 
1027
        {
 
1028
                return false;
 
1029
        }
 
1030
 
 
1031
        /**
 
1032
         * @see java.sql.Connection#setCatalog(java.lang.String)
 
1033
         */
 
1034
        public void setCatalog(String arg0)
 
1035
        {
 
1036
        }
 
1037
 
 
1038
        /**
 
1039
         * @see java.sql.Connection#getCatalog()
 
1040
         */
 
1041
        public String getCatalog()
 
1042
        {
 
1043
                return null;
 
1044
        }
 
1045
 
 
1046
        /**
 
1047
         * @see java.sql.Connection#setTransactionIsolation(int)
 
1048
         */
 
1049
        public void setTransactionIsolation(int arg0)
 
1050
        {
 
1051
        }
 
1052
 
 
1053
        /**
 
1054
         * @see java.sql.Connection#getTransactionIsolation()
 
1055
         */
 
1056
        public int getTransactionIsolation()
 
1057
        {
 
1058
                return 0;
 
1059
        }
 
1060
 
 
1061
        /**
 
1062
         * @see java.sql.Connection#getWarnings()
 
1063
         */
 
1064
        public SQLWarning getWarnings()
 
1065
        {
 
1066
                return null;
 
1067
        }
 
1068
 
 
1069
        /**
 
1070
         * @see java.sql.Connection#clearWarnings()
 
1071
         */
 
1072
        public void clearWarnings()
 
1073
        {
 
1074
        }
 
1075
 
 
1076
        /**
 
1077
         * @see java.sql.Connection#createStatement(int, int)
 
1078
         */
 
1079
        public Statement createStatement(int arg0, int arg1)
 
1080
        {
 
1081
                return null;
 
1082
        }
 
1083
 
 
1084
        /**
 
1085
         * @see java.sql.Connection#prepareStatement(java.lang.String, int, int)
 
1086
         */
 
1087
        public PreparedStatement prepareStatement(String arg0, int arg1, int arg2)
 
1088
        {
 
1089
                return null;
 
1090
        }
 
1091
 
 
1092
        /**
 
1093
         * @see java.sql.Connection#prepareCall(java.lang.String, int, int)
 
1094
         */
 
1095
        public CallableStatement prepareCall(String arg0, int arg1, int arg2)
 
1096
        {
 
1097
                return null;
 
1098
        }
 
1099
 
 
1100
        /**
 
1101
         * @see java.sql.Connection#getTypeMap()
 
1102
         */
 
1103
        public Map<String, Class<?>> getTypeMap()
 
1104
        {
 
1105
                return null;
 
1106
        }
 
1107
 
 
1108
        /**
 
1109
         * @see java.sql.Connection#setHoldability(int)
 
1110
         */
 
1111
        public void setHoldability(int arg0)
 
1112
        {
 
1113
        }
 
1114
 
 
1115
        /**
 
1116
         * @see java.sql.Connection#getHoldability()
 
1117
         */
 
1118
        public int getHoldability()
 
1119
        {
 
1120
                return 0;
 
1121
        }
 
1122
 
 
1123
        /**
 
1124
         * @see java.sql.Connection#setSavepoint()
 
1125
         */
 
1126
        public Savepoint setSavepoint()
 
1127
        {
 
1128
                return null;
 
1129
        }
 
1130
 
 
1131
        /**
 
1132
         * @see java.sql.Connection#setSavepoint(java.lang.String)
 
1133
         */
 
1134
        public Savepoint setSavepoint(String arg0)
 
1135
        {
 
1136
                return null;
 
1137
        }
 
1138
 
 
1139
        /**
 
1140
         * @see java.sql.Connection#rollback(java.sql.Savepoint)
 
1141
         */
 
1142
        public void rollback(Savepoint arg0)
 
1143
        {
 
1144
        }
 
1145
 
 
1146
        /**
 
1147
         * @see java.sql.Connection#releaseSavepoint(java.sql.Savepoint)
 
1148
         */
 
1149
        public void releaseSavepoint(Savepoint arg0)
 
1150
        {
 
1151
        }
 
1152
 
 
1153
        /**
 
1154
         * @see java.sql.Connection#createStatement(int, int, int)
 
1155
         */
 
1156
        public Statement createStatement(int arg0, int arg1, int arg2)
 
1157
        {
 
1158
                return null;
 
1159
        }
 
1160
 
 
1161
        /**
 
1162
         * @see java.sql.Connection#prepareStatement(java.lang.String, int, int, int)
 
1163
         */
 
1164
        public PreparedStatement prepareStatement(String arg0, int arg1, int arg2, int arg3)
 
1165
        {
 
1166
                return null;
 
1167
        }
 
1168
 
 
1169
        /**
 
1170
         * @see java.sql.Connection#prepareCall(java.lang.String, int, int, int)
 
1171
         */
 
1172
        public CallableStatement prepareCall(String arg0, int arg1, int arg2, int arg3)
 
1173
        {
 
1174
                return null;
 
1175
        }
 
1176
 
 
1177
        /**
 
1178
         * @see java.sql.Connection#prepareStatement(java.lang.String, int)
 
1179
         */
 
1180
        public PreparedStatement prepareStatement(String arg0, int arg1)
 
1181
        {
 
1182
                return null;
 
1183
        }
 
1184
 
 
1185
        /**
 
1186
         * @see java.sql.Connection#prepareStatement(java.lang.String, int[])
 
1187
         */
 
1188
        public PreparedStatement prepareStatement(String arg0, int[] arg1)
 
1189
        {
 
1190
                return null;
 
1191
        }
 
1192
 
 
1193
        /**
 
1194
         * @see java.sql.Connection#prepareStatement(java.lang.String, java.lang.String[])
 
1195
         */
 
1196
        public PreparedStatement prepareStatement(String arg0, String[] arg1)
 
1197
        {
 
1198
                return null;
 
1199
        }
 
1200
 
 
1201
        /**
 
1202
         * @see java.sql.Connection#createArrayOf(java.lang.String, java.lang.Object[])
 
1203
         */
 
1204
        @Override
 
1205
        public Array createArrayOf(String arg0, Object[] arg1)
 
1206
        {
 
1207
                return null;
 
1208
        }
 
1209
 
 
1210
        /**
 
1211
         * @see java.sql.Connection#createBlob()
 
1212
         */
 
1213
        @Override
 
1214
        public Blob createBlob()
 
1215
        {
 
1216
                return null;
 
1217
        }
 
1218
 
 
1219
        /**
 
1220
         * @see java.sql.Connection#createClob()
 
1221
         */
 
1222
        @Override
 
1223
        public Clob createClob()
 
1224
        {
 
1225
                return null;
 
1226
        }
 
1227
 
 
1228
        /**
 
1229
         * @see java.sql.Connection#createNClob()
 
1230
         */
 
1231
        @Override
 
1232
        public NClob createNClob()
 
1233
        {
 
1234
                return null;
 
1235
        }
 
1236
 
 
1237
        /**
 
1238
         * @see java.sql.Connection#createSQLXML()
 
1239
         */
 
1240
        @Override
 
1241
        public SQLXML createSQLXML()
 
1242
        {
 
1243
                return null;
 
1244
        }
 
1245
 
 
1246
        /**
 
1247
         * @see java.sql.Connection#createStruct(java.lang.String, java.lang.Object[])
 
1248
         */
 
1249
        @Override
 
1250
        public Struct createStruct(String arg0, Object[] arg1)
 
1251
        {
 
1252
                return null;
 
1253
        }
 
1254
 
 
1255
        /**
 
1256
         * @see java.sql.Connection#getClientInfo()
 
1257
         */
 
1258
        @Override
 
1259
        public Properties getClientInfo()
 
1260
        {
 
1261
                return null;
 
1262
        }
 
1263
 
 
1264
        /**
 
1265
         * @see java.sql.Connection#getClientInfo(java.lang.String)
 
1266
         */
 
1267
        @Override
 
1268
        public String getClientInfo(String arg0)
 
1269
        {
 
1270
                return null;
 
1271
        }
 
1272
 
 
1273
        /**
 
1274
         * @see java.sql.Connection#isValid(int)
 
1275
         */
 
1276
        @Override
 
1277
        public boolean isValid(int arg0)
 
1278
        {
 
1279
                return false;
 
1280
        }
 
1281
 
 
1282
        /**
 
1283
         * @see java.sql.Connection#setClientInfo(java.util.Properties)
 
1284
         */
 
1285
        @Override
 
1286
        public void setClientInfo(Properties arg0)
 
1287
        {
 
1288
        }
 
1289
 
 
1290
        /**
 
1291
         * @see java.sql.Connection#setClientInfo(java.lang.String, java.lang.String)
 
1292
         */
 
1293
        @Override
 
1294
        public void setClientInfo(String arg0, String arg1)
 
1295
        {
 
1296
        }
 
1297
 
 
1298
        /**
 
1299
         * @see java.sql.Connection#setTypeMap(java.util.Map)
 
1300
         */
 
1301
        @Override
 
1302
        public void setTypeMap(Map<String, Class<?>> arg0)
 
1303
        {
 
1304
        }
 
1305
 
 
1306
        /**
 
1307
         * @see java.sql.Wrapper#isWrapperFor(java.lang.Class)
 
1308
         */
 
1309
        @Override
 
1310
        public boolean isWrapperFor(Class<?> arg0)
 
1311
        {
 
1312
                return false;
 
1313
        }
 
1314
 
 
1315
        /**
 
1316
         * @see java.sql.Wrapper#unwrap(java.lang.Class)
 
1317
         */
 
1318
        @Override
 
1319
        public <T> T unwrap(Class<T> arg0)
 
1320
        {
 
1321
                return null;
 
1322
        }
 
1323
}