#1263 - ENH: Make Transaction API Fluid such that we can set multiple thing like batchSize and label in a fluid fashion

This commit is contained in:
Rob Bygrave
2018-02-16 14:40:35 +13:00
parent ac36172cc6
commit 3d62e84d59
10 changed files with 180 additions and 126 deletions
@@ -32,13 +32,13 @@ public class TestBatchInsertFlush extends BaseTestCase {
MetaInfoManager metaInfoManager = server.getMetaInfoManager();
metaInfoManager.collectTransactionStatistics(true);
Transaction transaction = server.beginTransaction();
try {
transaction.setPersistCascade(false);
transaction.setBatchSize(10);
transaction.setBatch(PersistBatch.ALL);
transaction.setLabel("TestBatchInsertFlush.no_cascade");
Transaction transaction = server.beginTransaction()
.setPersistCascade(false)
.setBatchSize(10)
.setBatch(PersistBatch.ALL)
.setLabel("TestBatchInsertFlush.no_cascade");
try {
LoggedSqlCollector.start();