Refactor rename Transaction setGetGeneratedKeys(), setFlushOnMixed() setFlushOnQuery() ... (remove the "batch" part)

This commit is contained in:
rob bygrave
2020-03-05 01:10:41 +13:00
parent d69d96a400
commit 524e3e31f0
10 changed files with 69 additions and 37 deletions
@@ -34,7 +34,7 @@ public class TestBatchInsertSimple extends BaseTestCase {
transaction.setBatchOnCascade(true);
transaction.setBatchSize(30);
// setBatchGetGeneratedKeys MUST be turned off for MS SQL Server because :(
transaction.setBatchGetGeneratedKeys(false);
transaction.setGetGeneratedKeys(false);
for (int i = 0; i < numOfMasters; i++) {
UTMaster master = createMasterAndDetails(i, 20);
@@ -108,7 +108,7 @@ public class TestBatchInsertSimple extends BaseTestCase {
transaction.setBatchOnCascade(true);
transaction.setBatchSize(30);
// setBatchGetGeneratedKeys MUST be turned off for MS SQL Server because :(
transaction.setBatchGetGeneratedKeys(false);
transaction.setGetGeneratedKeys(false);
for (int i = 0; i < numOfMasters; i++) {
UTMaster master = createMaster(i);
@@ -49,11 +49,11 @@ public class TestSqlServerBatch extends BaseTestCase {
txn.setBatchSize(3);
// control flushing when mixing save and queries
txn.setBatchFlushOnQuery(false);
txn.setFlushOnQuery(false);
// for large batch insert processing when we do not
// ... need the generatedKeys, don't get them
txn.setBatchGetGeneratedKeys(false);
txn.setGetGeneratedKeys(false);
// explicitly flush the JDBC batch buffer
txn.flushBatch();