-
Notifications
You must be signed in to change notification settings - Fork 418
/
RequestBoundaryMethodsTest.java
530 lines (488 loc) · 27.3 KB
/
RequestBoundaryMethodsTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
/*
* Microsoft JDBC Driver for SQL Server Copyright(c) Microsoft Corporation All rights reserved. This program is made
* available under the terms of the MIT License. See the LICENSE file in the project root for more information.
*/
package com.microsoft.sqlserver.jdbc.connection;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.fail;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.RunWith;
import com.microsoft.sqlserver.jdbc.RandomUtil;
import com.microsoft.sqlserver.jdbc.SQLServerConnection;
import com.microsoft.sqlserver.jdbc.TestUtils;
import com.microsoft.sqlserver.testframework.AbstractSQLGenerator;
import com.microsoft.sqlserver.testframework.AbstractTest;
import com.microsoft.sqlserver.testframework.Constants;
/**
* A class for testing Request Boundary Methods.
*/
@RunWith(JUnitPlatform.class)
@Tag(Constants.xAzureSQLDW)
@Tag(Constants.xAzureSQLDB)
public class RequestBoundaryMethodsTest extends AbstractTest {
static String tableName = RandomUtil.getIdentifier("RequestBoundaryTable");
@BeforeAll
public static void setupTests() throws Exception {
setConnection();
}
/**
* Tests Request Boundary methods with SQLServerConnection properties that are modifiable through public APIs.
*
* @throws SQLException
*/
@Test
public void testModifiableConnectionProperties() throws SQLException {
// List of SQLServerConnection fields that can be modified through public APIs.
boolean autoCommitMode1 = true;
int transactionIsolationLevel1 = SQLServerConnection.TRANSACTION_READ_COMMITTED;
int networkTimeout1 = 5000;
int holdability1 = ResultSet.HOLD_CURSORS_OVER_COMMIT;
boolean sendTimeAsDatetime1 = true;
int statementPoolingCacheSize1 = 0;
boolean disableStatementPooling1 = true;
int serverPreparedStatementDiscardThreshold1 = 10;
boolean enablePrepareOnFirstPreparedStatementCall1 = false;
String sCatalog1 = "master";
boolean useBulkCopyForBatchInsert1 = true;
boolean useFmtOnly1 = true;
boolean delayLoadingLobs1 = false;
boolean ignoreOffsetOnDateTimeOffsetConversion1 = true;
boolean autoCommitMode2 = false;
int transactionIsolationLevel2 = SQLServerConnection.TRANSACTION_SERIALIZABLE;
int networkTimeout2 = 10000;
int holdability2 = ResultSet.CLOSE_CURSORS_AT_COMMIT;
boolean sendTimeAsDatetime2 = false;
int statementPoolingCacheSize2 = 10;
boolean disableStatementPooling2 = false;
int serverPreparedStatementDiscardThreshold2 = 100;
boolean enablePrepareOnFirstPreparedStatementCall2 = true;
String sCatalog2 = RandomUtil.getIdentifier("RequestBoundaryDatabase");
boolean useBulkCopyForBatchInsert2 = false;
boolean useFmtOnly2 = false;
boolean delayLoadingLobs2 = true;
boolean ignoreOffsetOnDateTimeOffsetConversion2 = false;
try (SQLServerConnection con = getConnection(); Statement stmt = con.createStatement()) {
if (TestUtils.isJDBC43OrGreater(con)) {
// Second database
stmt.executeUpdate("CREATE DATABASE [" + sCatalog2 + "]");
// First set of values.
setConnectionFields(con, autoCommitMode1, transactionIsolationLevel1, networkTimeout1, holdability1,
sendTimeAsDatetime1, statementPoolingCacheSize1, disableStatementPooling1,
serverPreparedStatementDiscardThreshold1, enablePrepareOnFirstPreparedStatementCall1, sCatalog1,
useBulkCopyForBatchInsert1, useFmtOnly1, delayLoadingLobs1,
ignoreOffsetOnDateTimeOffsetConversion1);
con.beginRequest();
// Call setters with the second set of values inside beginRequest()/endRequest() block.
setConnectionFields(con, autoCommitMode2, transactionIsolationLevel2, networkTimeout2, holdability2,
sendTimeAsDatetime2, statementPoolingCacheSize2, disableStatementPooling2,
serverPreparedStatementDiscardThreshold2, enablePrepareOnFirstPreparedStatementCall2, sCatalog2,
useBulkCopyForBatchInsert2, useFmtOnly2, delayLoadingLobs2,
ignoreOffsetOnDateTimeOffsetConversion2);
con.endRequest();
// Test if endRequest() resets the SQLServerConnection properties back to the first set of values.
compareValuesAgainstConnection(con, autoCommitMode1, transactionIsolationLevel1, networkTimeout1,
holdability1, sendTimeAsDatetime1, statementPoolingCacheSize1, disableStatementPooling1,
serverPreparedStatementDiscardThreshold1, enablePrepareOnFirstPreparedStatementCall1, sCatalog1,
useBulkCopyForBatchInsert1, useFmtOnly1, delayLoadingLobs1,
ignoreOffsetOnDateTimeOffsetConversion1);
// Multiple calls to beginRequest() without an intervening call to endRequest() are no-op.
setConnectionFields(con, autoCommitMode2, transactionIsolationLevel2, networkTimeout2, holdability2,
sendTimeAsDatetime2, statementPoolingCacheSize2, disableStatementPooling2,
serverPreparedStatementDiscardThreshold2, enablePrepareOnFirstPreparedStatementCall2, sCatalog2,
useBulkCopyForBatchInsert2, useFmtOnly2, delayLoadingLobs2,
ignoreOffsetOnDateTimeOffsetConversion2);
con.beginRequest();
setConnectionFields(con, autoCommitMode1, transactionIsolationLevel1, networkTimeout1, holdability1,
sendTimeAsDatetime1, statementPoolingCacheSize1, disableStatementPooling1,
serverPreparedStatementDiscardThreshold1, enablePrepareOnFirstPreparedStatementCall1, sCatalog1,
useBulkCopyForBatchInsert1, useFmtOnly1, delayLoadingLobs1,
ignoreOffsetOnDateTimeOffsetConversion1);
con.beginRequest();
con.endRequest();
// Same values as before the first beginRequest()
compareValuesAgainstConnection(con, autoCommitMode2, transactionIsolationLevel2, networkTimeout2,
holdability2, sendTimeAsDatetime2, statementPoolingCacheSize2, disableStatementPooling2,
serverPreparedStatementDiscardThreshold2, enablePrepareOnFirstPreparedStatementCall2, sCatalog2,
useBulkCopyForBatchInsert2, useFmtOnly2, delayLoadingLobs2,
ignoreOffsetOnDateTimeOffsetConversion2);
// A call to endRequest() without an intervening call to beginRequest() is no-op.
setConnectionFields(con, autoCommitMode1, transactionIsolationLevel1, networkTimeout1, holdability1,
sendTimeAsDatetime1, statementPoolingCacheSize1, disableStatementPooling1,
serverPreparedStatementDiscardThreshold1, enablePrepareOnFirstPreparedStatementCall1, sCatalog1,
useBulkCopyForBatchInsert1, useFmtOnly1, delayLoadingLobs1,
ignoreOffsetOnDateTimeOffsetConversion1);
setConnectionFields(con, autoCommitMode2, transactionIsolationLevel2, networkTimeout2, holdability2,
sendTimeAsDatetime2, statementPoolingCacheSize2, disableStatementPooling2,
serverPreparedStatementDiscardThreshold2, enablePrepareOnFirstPreparedStatementCall2, sCatalog2,
useBulkCopyForBatchInsert2, useFmtOnly2, delayLoadingLobs2,
ignoreOffsetOnDateTimeOffsetConversion2);
con.endRequest();
// No change.
compareValuesAgainstConnection(con, autoCommitMode2, transactionIsolationLevel2, networkTimeout2,
holdability2, sendTimeAsDatetime2, statementPoolingCacheSize2, disableStatementPooling2,
serverPreparedStatementDiscardThreshold2, enablePrepareOnFirstPreparedStatementCall2, sCatalog2,
useBulkCopyForBatchInsert2, useFmtOnly2, delayLoadingLobs2,
ignoreOffsetOnDateTimeOffsetConversion2);
}
} finally {
TestUtils.dropDatabaseIfExists(sCatalog2, connectionString);
}
}
/**
* Tests Request Boundary methods with warnings.
*
* @throws SQLException
*/
@Test
public void testWarnings() throws SQLException {
try (Connection con = getConnection()) {
if (TestUtils.isJDBC43OrGreater(con)) {
con.beginRequest();
generateWarning(con);
assertNotNull(con.getWarnings());
con.endRequest();
assertNull(con.getWarnings());
generateWarning(con);
con.endRequest();
assertNotNull(con.getWarnings());
con.clearWarnings();
con.beginRequest();
generateWarning(con);
con.beginRequest();
con.endRequest();
assertNull(con.getWarnings());
}
}
}
/**
* Tests Request Boundary methods when there are open transactions.
*
* @throws SQLException
*/
@Test
public void testOpenTransactions() throws SQLException {
try (Connection con = getConnection(); Statement stmt = con.createStatement()) {
if (TestUtils.isJDBC43OrGreater(con)) {
TestUtils.dropTableIfExists(AbstractSQLGenerator.escapeIdentifier(tableName), stmt);
stmt.executeUpdate("CREATE TABLE " + AbstractSQLGenerator.escapeIdentifier(tableName) + " (col int)");
con.beginRequest();
con.setAutoCommit(false);
stmt.executeUpdate("INSERT INTO " + AbstractSQLGenerator.escapeIdentifier(tableName) + " values(5)");
// endRequest() does a rollback here, the value does not get inserted into the table.
con.endRequest();
con.commit();
try (ResultSet rs = con.createStatement()
.executeQuery("SELECT * from " + AbstractSQLGenerator.escapeIdentifier(tableName))) {
assertTrue(!rs.isBeforeFirst(), "Should not have returned a result set.");
} finally {
if (null != tableName) {
TestUtils.dropTableIfExists(AbstractSQLGenerator.escapeIdentifier(tableName), stmt);
}
}
}
} catch (Exception e) {
fail(e.getMessage());
}
}
/**
* Tests Request Boundary methods with statements.
*
* @throws SQLException
*/
@Test
public void testStatements() throws SQLException {
try (Connection con = getConnection();) {
if (TestUtils.isJDBC43OrGreater(con)) {
try (Statement stmt1 = con.createStatement()) {
con.beginRequest();
try (Statement stmt = con.createStatement()) {
try (ResultSet rs = stmt.executeQuery("SELECT 1")) {
rs.next();
assertEquals(1, rs.getInt(1));
con.endRequest();
assertTrue(!stmt1.isClosed(),
"Statement created outside of beginRequest()/endRequest() block should not be closed.");
assertTrue(stmt.isClosed(),
"Statement created inside beginRequest()/endRequest() block should be closed after endRequest().");
assertTrue(rs.isClosed(), "ResultSet should be closed after endRequest().");
}
}
}
// Multiple statements inside beginRequest()/endRequest() block
con.beginRequest();
try (Statement stmt = con.createStatement()) {
TestUtils.dropTableIfExists(AbstractSQLGenerator.escapeIdentifier(tableName), stmt);
stmt.executeUpdate(
"CREATE TABLE " + AbstractSQLGenerator.escapeIdentifier(tableName) + " (col int)");
try (PreparedStatement ps = con.prepareStatement(
"INSERT INTO " + AbstractSQLGenerator.escapeIdentifier(tableName) + " values (?)")) {
ps.setInt(1, 2);
ps.executeUpdate();
try (Statement stmt1 = con.createStatement(); ResultSet rs = stmt1
.executeQuery("SELECT * FROM " + AbstractSQLGenerator.escapeIdentifier(tableName))) {
rs.next();
assertEquals(2, rs.getInt(1));
TestUtils.dropTableIfExists(AbstractSQLGenerator.escapeIdentifier(tableName), stmt);
try (CallableStatement cs = con.prepareCall("{call sp_server_info}")) {
cs.execute();
con.endRequest();
assertTrue(stmt.isClosed());
assertTrue(ps.isClosed());
assertTrue(stmt1.isClosed());
assertTrue(cs.isClosed());
assertTrue(rs.isClosed());
}
}
}
} finally {
if (null != tableName) {
try (Statement stmt = con.createStatement()) {
TestUtils.dropTableIfExists(AbstractSQLGenerator.escapeIdentifier(tableName), stmt);
}
}
}
}
}
}
/**
* Tests Request Boundary methods in a multi-threaded environment.
*
* @throws SQLException
*/
@Test
public void testThreads() throws SQLException {
class Variables {
volatile Connection con = null;
volatile Statement stmt = null;
volatile PreparedStatement pstmt = null;
}
final Variables sharedVariables = new Variables();
final CountDownLatch latch = new CountDownLatch(3);
try {
sharedVariables.con = getConnection();
if (TestUtils.isJDBC43OrGreater(sharedVariables.con)) {
Thread thread1 = new Thread() {
public void run() {
try {
sharedVariables.con.setNetworkTimeout(null, 100);
sharedVariables.con.setHoldability(ResultSet.CLOSE_CURSORS_AT_COMMIT);
latch.countDown();
} catch (SQLException e) {
e.printStackTrace();
Thread.currentThread().interrupt();
}
}
};
Thread thread2 = new Thread() {
public void run() {
try {
sharedVariables.stmt = sharedVariables.con.createStatement();
try (ResultSet rs = sharedVariables.stmt.executeQuery("SELECT 1")) {
rs.next();
assertEquals(1, rs.getInt(1));
latch.countDown();
}
} catch (SQLException e) {
e.printStackTrace();
Thread.currentThread().interrupt();
}
}
};
Thread thread3 = new Thread() {
public void run() {
try {
sharedVariables.pstmt = sharedVariables.con.prepareStatement("SELECT 1");
try (ResultSet rs = sharedVariables.pstmt.executeQuery()) {
rs.next();
assertEquals(1, rs.getInt(1));
latch.countDown();
}
} catch (SQLException e) {
e.printStackTrace();
Thread.currentThread().interrupt();
}
}
};
int originalNetworkTimeout = sharedVariables.con.getNetworkTimeout();
int originalHoldability = sharedVariables.con.getHoldability();
sharedVariables.con.beginRequest();
thread1.start();
thread2.start();
thread3.start();
latch.await();
sharedVariables.con.endRequest();
assertEquals(originalNetworkTimeout, sharedVariables.con.getNetworkTimeout());
assertEquals(originalHoldability, sharedVariables.con.getHoldability());
assertTrue(sharedVariables.stmt.isClosed());
assertTrue(sharedVariables.pstmt.isClosed());
}
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
fail(e.getMessage());
} finally {
if (null != sharedVariables.stmt) {
sharedVariables.stmt.close();
}
if (null != sharedVariables.pstmt) {
sharedVariables.pstmt.close();
}
if (null != sharedVariables.con) {
sharedVariables.con.close();
}
}
}
/**
* This is not really a test. The goal is to make the build fail if there are new public non-static methods in
* SQLServerConnection and notify the developer to decide whether it needs to be handled by
* beginRequest()/endRequest().
*
* To fix the failure, you first need to check if the new method can modify connection local state after connection
* has been created. (See beginRequestInternal()/endRequestInternal() in SQLServerConnection). If yes, make sure it
* is handled by beginRequest()/endRequest() and then add it to <code>verifiedMethodNames</code>. If not, just
* adding the new method's name to the same list of verified methods is enough.
*/
@Test
public void testNewMethods() {
Method[] methods = SQLServerConnection.class.getDeclaredMethods();
for (Method method : methods) {
assertTrue(isVerified(method),
"A failure is expected if you are adding a new public non-static method to SQLServerConnection."
+ " See the test for instructions on how to fix the failure. ");
}
}
private void setConnectionFields(SQLServerConnection con, boolean autoCommitMode, int transactionIsolationLevel,
int networkTimeout, int holdability, boolean sendTimeAsDatetime, int statementPoolingCacheSize,
boolean disableStatementPooling, int serverPreparedStatementDiscardThreshold,
boolean enablePrepareOnFirstPreparedStatementCall, String sCatalog, boolean useBulkCopyForBatchInsert,
boolean useFmtOnly, boolean delayLoadingLobs,
boolean ignoreOffsetOnDateTimeOffsetConversion) throws SQLException {
con.setAutoCommit(autoCommitMode);
con.setTransactionIsolation(transactionIsolationLevel);
con.setNetworkTimeout(null, networkTimeout);
con.setHoldability(holdability);
con.setSendTimeAsDatetime(sendTimeAsDatetime);
con.setStatementPoolingCacheSize(statementPoolingCacheSize);
con.setDisableStatementPooling(disableStatementPooling);
con.setServerPreparedStatementDiscardThreshold(serverPreparedStatementDiscardThreshold);
con.setEnablePrepareOnFirstPreparedStatementCall(enablePrepareOnFirstPreparedStatementCall);
con.setCatalog(sCatalog);
con.setUseBulkCopyForBatchInsert(useBulkCopyForBatchInsert);
con.setUseFmtOnly(useFmtOnly);
con.setDelayLoadingLobs(delayLoadingLobs);
con.setIgnoreOffsetOnDateTimeOffsetConversion(ignoreOffsetOnDateTimeOffsetConversion);
}
private void compareValuesAgainstConnection(SQLServerConnection con, boolean autoCommitMode,
int transactionIsolationLevel, int networkTimeout, int holdability, boolean sendTimeAsDatetime,
int statementPoolingCacheSize, boolean disableStatementPooling, int serverPreparedStatementDiscardThreshold,
boolean enablePrepareOnFirstPreparedStatementCall, String sCatalog, boolean useBulkCopyForBatchInsert,
boolean useFmtOnly, boolean delayLoadingLobs,
boolean ignoreOffsetOnDateTimeOffsetConversion) throws SQLException {
final String description = " values do not match.";
assertEquals(autoCommitMode, con.getAutoCommit(), "autoCommitmode" + description);
assertEquals(transactionIsolationLevel, con.getTransactionIsolation(),
"transactionIsolationLevel" + description);
assertEquals(networkTimeout, con.getNetworkTimeout(), "networkTimeout" + description);
assertEquals(holdability, con.getHoldability(), "holdability" + description);
assertEquals(sendTimeAsDatetime, con.getSendTimeAsDatetime(), "sendTimeAsDatetime" + description);
assertEquals(statementPoolingCacheSize, con.getStatementPoolingCacheSize(),
"statementPoolingCacheSize" + description);
assertEquals(disableStatementPooling, con.getDisableStatementPooling(),
"disableStatementPooling" + description);
assertEquals(serverPreparedStatementDiscardThreshold, con.getServerPreparedStatementDiscardThreshold(),
"serverPreparedStatementDiscardThreshold" + description);
assertEquals(enablePrepareOnFirstPreparedStatementCall, con.getEnablePrepareOnFirstPreparedStatementCall(),
"enablePrepareOnFirstPreparedStatementCall" + description);
assertEquals(sCatalog, con.getCatalog(), "sCatalog" + description);
assertEquals(useBulkCopyForBatchInsert, con.getUseBulkCopyForBatchInsert(),
"useBulkCopyForBatchInsert" + description);
assertEquals(useFmtOnly, con.getUseFmtOnly(), "useFmtOnly" + description);
assertEquals(delayLoadingLobs, con.getDelayLoadingLobs(), "delayLoadingLobs" + description);
assertEquals(ignoreOffsetOnDateTimeOffsetConversion, con.getIgnoreOffsetOnDateTimeOffsetConversion(),
"ignoreOffsetOnDateTimeOffsetConversion" + description);
}
private void generateWarning(Connection con) throws SQLException {
con.setClientInfo("name", "value");
}
private boolean isVerified(Method method) {
return (!Modifier.isPublic(method.getModifiers()) || Modifier.isStatic(method.getModifiers())
|| method.getName().startsWith("get") || getVerifiedMethodNames().contains(method.getName()));
}
private List<String> getVerifiedMethodNames() {
List<String> verifiedMethodNames = new ArrayList<String>();
verifiedMethodNames.add("toString");
verifiedMethodNames.add("setReadOnly");
verifiedMethodNames.add("close");
verifiedMethodNames.add("unwrap");
verifiedMethodNames.add("isReadOnly");
verifiedMethodNames.add("abort");
verifiedMethodNames.add("isValid");
verifiedMethodNames.add("setServerPreparedStatementDiscardThreshold");
verifiedMethodNames.add("setEnablePrepareOnFirstPreparedStatementCall");
verifiedMethodNames.add("isClosed");
verifiedMethodNames.add("setSendTimeAsDatetime");
verifiedMethodNames.add("setDatetimeParameterType");
verifiedMethodNames.add("setStatementPoolingCacheSize");
verifiedMethodNames.add("setDisableStatementPooling");
verifiedMethodNames.add("setTransactionIsolation");
verifiedMethodNames.add("setUseBulkCopyForBatchInsert");
verifiedMethodNames.add("commit");
verifiedMethodNames.add("clearWarnings");
verifiedMethodNames.add("prepareStatement");
verifiedMethodNames.add("prepareCall");
verifiedMethodNames.add("setCatalog");
verifiedMethodNames.add("setAutoCommit");
verifiedMethodNames.add("createStatement");
verifiedMethodNames.add("setClientInfo");
verifiedMethodNames.add("setNetworkTimeout");
verifiedMethodNames.add("setHoldability");
verifiedMethodNames.add("closeUnreferencedPreparedStatementHandles");
verifiedMethodNames.add("isStatementPoolingEnabled");
verifiedMethodNames.add("rollback");
verifiedMethodNames.add("releaseSavepoint");
verifiedMethodNames.add("createStruct");
verifiedMethodNames.add("createSQLXML");
verifiedMethodNames.add("setSchema");
verifiedMethodNames.add("createNClob");
verifiedMethodNames.add("nativeSQL");
verifiedMethodNames.add("setSavepoint");
verifiedMethodNames.add("createClob");
verifiedMethodNames.add("createBlob");
verifiedMethodNames.add("isWrapperFor");
verifiedMethodNames.add("setTypeMap");
verifiedMethodNames.add("createArrayOf");
verifiedMethodNames.add("setUseFmtOnly");
verifiedMethodNames.add("setDelayLoadingLobs");
verifiedMethodNames.add("setIgnoreOffsetOnDateTimeOffsetConversion");
verifiedMethodNames.add("registerColumnEncryptionKeyStoreProvidersOnConnection");
verifiedMethodNames.add("getPrepareMethod");
verifiedMethodNames.add("setPrepareMethod");
verifiedMethodNames.add("getIPAddressPreference");
verifiedMethodNames.add("setIPAddressPreference");
verifiedMethodNames.add("getMsiTokenCacheTtl");
verifiedMethodNames.add("setMsiTokenCacheTtl");
verifiedMethodNames.add("getAccessTokenCallbackClass");
verifiedMethodNames.add("setAccessTokenCallbackClass");
verifiedMethodNames.add("getUseFlexibleCallableStatements");
verifiedMethodNames.add("setUseFlexibleCallableStatements");
verifiedMethodNames.add("getCalcBigDecimalPrecision");
verifiedMethodNames.add("setCalcBigDecimalPrecision");
return verifiedMethodNames;
}
}